tk_
tk_

Reputation: 17328

Difference between classification and regression score in Python scikit learn

I'm kind a new for python scikit learning i develop a data mining algorithm using scikit learn classification methods and now i need to find its accuracy. first just need to know,

What is difference between classification and regression score in Python scikit learn?

Is there any other way that i can calculate accuracy of my prediction algorithm?

r2_score(y_test,predictions)
f1_score(y_test,predictions)

Regression score (%)== 66%
Classification score (%) == 75%

Upvotes: 1

Views: 1666

Answers (1)

tk_
tk_

Reputation: 17328

Regression: the output variable takes continuous values.

Classification: the output variable takes class labels.

score will be calculated according to the result against continuous values and class labels

Upvotes: 1

Related Questions