I ran the decision tree algorithm with the X_test.csv and Y_test.csv in /testdata folder, but I got this error
File "C:\JackyXu\GT\Spring 2022\Junior Design\code\mlr_backend\run.py", line 90, in trainData
dtree_accuracy = metrics.calculateAccuracy(prediction, Ytest)
File "C:\JackyXu\GT\Spring 2022\Junior Design\code\mlr_backend\metrics.py", line 6, in calculateAccuracy
model_output = [int(row[0]) for row in y.tolist()]
File "C:\JackyXu\GT\Spring 2022\Junior Design\code\mlr_backend\metrics.py", line 6, in <listcomp>
model_output = [int(row[0]) for row in y.tolist()]
TypeError: 'float' object is not subscriptable
I ran the decision tree algorithm with the X_test.csv and Y_test.csv in /testdata folder, but I got this error
Can you take a look at it @ruokun-niu