Skip to content

report.plot.classification.py - questions #562

Answered by mahshidaln
rjavadi asked this question in Q&A
Discussion options

You must be logged in to vote

@rjavadi To answer your questions:

  1. Yes that's right the length of metric_data should be the same as the number of classes/labels.
  2. No there is no boundary on the number of slices and what needs to be changed is the value we compare the length of colorway with. In the code block starting with if len(self.template.layout.colorway) >= self.class_num, we need to replace class_num with length of slice_metrics.
  3. Yes it makes sense the line 871 needs to be updated to metric_values = [metrics[metric_name]]

I can also make the changes If you want me to. Thanks.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

rjavadi
Feb 26, 2024
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rjavadi
Comment options

rjavadi
Mar 1, 2024
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants