Skip to content

Commit

Permalink
Merge pull request #26 from perib/patch-1
Browse files Browse the repository at this point in the history
fix get_metric_score to get_metric_fn
  • Loading branch information
joaquinvanschoren authored Jun 25, 2024
2 parents a92550d + fd70b30 commit b7579b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ First, the list of tasks is downloaded as already illustrated above. Next, a spe

task = openml.tasks.get_task(task_id) # download the OpenML task
run = openml.runs.run_model_on_task(clf, task) # run the classifier on the task
score = run.get_metric_score(sklearn.metrics.accuracy_score) # print accuracy score
score = run.get_metric_fn(sklearn.metrics.accuracy_score) # print accuracy score
print('Data set: %s; Accuracy: %0.2f' % (task.get_dataset().name,score.mean()))
run.publish() # publish the experiment on OpenML (optional, requires internet and an API key)
print('URL for run: %s/run/%d' %(openml.config.server,run.run_id))
Expand Down

0 comments on commit b7579b0

Please sign in to comment.