This commit is contained in:
parent
0bd1982754
commit
e8fffb09d4
@ -48,7 +48,7 @@ model = LogisticRegressionModel(input_dim, output_dim)
|
||||
pred = model(fTest)
|
||||
accuracy = accuracy_score(tTest, np.argmax(pred.detach().numpy(), axis = 1))
|
||||
f1 = f1_score(tTest, np.argmax(pred.detach().numpy(), axis = 1), average = None)
|
||||
rmse = mean_squared_error(tTest, np.argmax(pred.detach().numpy()))
|
||||
rmse = mean_squared_error(tTest, pred.detach().numpy())
|
||||
|
||||
print(f'Accuracy: {accuracy}')
|
||||
print(f'F1: {f1_score}')
|
||||
|
Loading…
Reference in New Issue
Block a user