- 2

Bug in DS with Python project

Hi. There is a bug in classification module (35 - project about confusion matrix). My confusion matrix is correct (all tp, fp, tn and fn are counted right), but app still consider it as incorrect because there is no dot after a number. I think it should be fixed!

30th Jan 2021, 6:42 PM
Aleksandr Bundyuk
Aleksandr Bundyuk - avatar
6 ответов
+ 3
You can report to Sololearn. Using info@sololearn.com
31st Jan 2021, 12:06 AM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
+ 2
It sounds like the two matrices only have different data types (one seems to represent the values as integer, the other as float) Did you try to convert the data types? edit: example https://code.sololearn.com/caYmqyI8duO9/?ref=app
30th Jan 2021, 6:52 PM
Lisa
Lisa - avatar
+ 1
Alexandr Bundyuk You can report to SoloLearn on info@sololearn.com
30th Jan 2021, 6:52 PM
A͢J
A͢J - avatar
0
it is not float/int case... my answer is something like [[1 0], [1 2]]. But they want [[1. 0.], [1. 2.]]
30th Jan 2021, 6:55 PM
Aleksandr Bundyuk
Aleksandr Bundyuk - avatar
0
1. is for 1.0, that's why I thought it's about type. What do you get for your array when you print their dtype?
30th Jan 2021, 7:04 PM
Lisa
Lisa - avatar
0
ofcourse int :)
30th Jan 2021, 7:11 PM
Aleksandr Bundyuk
Aleksandr Bundyuk - avatar