Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix example fetch_evaluations
  • Loading branch information
sahithyaravi committed Sep 2, 2019
commit 454f2973bf561ffb72ffae6778a6e0d885b57b3c
12 changes: 7 additions & 5 deletions examples/fetch_evaluations_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,23 @@ def plot_flow_compare(evaluations, top_n=10, metric='predictive_accuracy'):
for i in range(top_n):
print((flow_ids[i], flow_names[i]))

###############################################################################
#############################################################################
# Obtaining evaluations with hyperparameter settings
# ==========================================
# ==================================================
# We'll now obtain the evaluations of a task and a flow with the hyperparameters

# List evaluations in desc order based on predictive_accuracy with hyperparameters
# List evaluations in descending order based on predictive_accuracy with
# hyperparameters
evals_setups = openml.evaluations.list_evaluations_setups(function='predictive_accuracy', task=[31],
size=100, sort_order='desc')

""
print(evals_setups.head())

""
# Return evaluations for flow_id in desc order based on predictive_accuracy with hyperparameters
# parameters_in_separate_columns returns parameters in separate columns
# Return evaluations for flow_id in descending order based on predictive_accuracy
# with hyperparameters. parameters_in_separate_columns returns parameters in
# separate columns
evals_setups = openml.evaluations.list_evaluations_setups(function='predictive_accuracy',
flow=[6767],
size=100,
Expand Down