Shahid Jamal
Shahid Jamal

Reputation: 13

Difference between score and predict

What is the difference between .score and .predict? As I recall we input two parameters in score which are(features, target) while in predict we give only (X_train). What is the main difference and what to use when?

Upvotes: 1

Views: 1798

Answers (1)

Arun Joy Thekkiniyath
Arun Joy Thekkiniyath

Reputation: 884

score is used for evaluating the quality of a model’s predictions

predict is used to predict the output for a given input

Upvotes: 2

Related Questions