Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

How to evaluate your model

Daniel Severo edited this page Oct 21, 2019 · 4 revisions

Evaluation must be done be calling evaluate_regression from challenge._internal on your prediction data.

from challenge._internal import evaluate_regression

...

data = pd.read_csv('data/data.csv')
test = pd.read_csv('data/test.csv')

model = train_my_model(data, ...)
y_pred = model(test)
metrics = evaluate_regression(y_pred)
Clone this wiki locally