+2 votes
in Programming Languages by (73.8k points)

I have the following line in my code, but it gives error - "ValueError: too many values to unpack"

(mcc_for_plot, auc_for_plot, recovery_rate_for_plot) = ([1.0, 1.0, 1.0, 1.0, 1.0], [0.9999802820472439, 0.9999482572696832, 0.9999852149158189, 0.9999310041490989, 0.9999605781749754], [1.0, 1.0, 1.0, 0.9999999872561431, 0.9999999684437832], [1, 2, 3, 4, 5])

How to fix it?

1 Answer

+1 vote
by (348k points)
selected by
 
Best answer
You have only 3 variables on the left side whereas there are 4 values on the right side. Therefore, you are getting this error. You need to add one more variable on the left side and you will not get the error.

...