+1 vote
in Programming Languages by (6.2k 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

0 votes
by (11.7k points)
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.
...