In the Q3.ipynb file (Classification task), the accuracy score is calculated as
acc = accuracy_score(predictions,g_ts)
It should be acc = accuracy_score(g_ts,predictions) as sklearn documentation states to use y_true as first argument and y_pred as second argument.
In the Q3.ipynb file (Classification task), the accuracy score is calculated as
acc = accuracy_score(predictions,g_ts)It should be
acc = accuracy_score(g_ts,predictions)as sklearn documentation states to use y_true as first argument and y_pred as second argument.