Skip to content
Merged
Changes from all commits
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
Fix typo, use log10 as specified in axis labels.
  • Loading branch information
PGijsbers committed Nov 26, 2019
commit c710a3e2c9dd3a3c35bb67ef20fe6c7ea9555bcc
4 changes: 2 additions & 2 deletions examples/30_extended/plot_svm_hyperparameters_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
####################################################################################################
# First step - obtaining the data
# ===============================
# First, we nood to choose an SVM flow, for example 8353, and a task. Finding the IDs of them are
# First, we need to choose an SVM flow, for example 8353, and a task. Finding the IDs of them are
# not part of this tutorial, this could for example be done via the website.
#
# For this we use the function ``list_evaluations_setup`` which can automatically join
Expand All @@ -38,7 +38,7 @@
# Next, we cast and transform the hyperparameters of interest (``C`` and ``gamma``) so that we
# can nicely plot them.
hyperparameters = ['sklearn.svm.classes.SVC(16)_C', 'sklearn.svm.classes.SVC(16)_gamma']
df[hyperparameters] = df[hyperparameters].astype(float).apply(np.log)
df[hyperparameters] = df[hyperparameters].astype(float).apply(np.log10)

####################################################################################################
# Option 1 - plotting via the pandas helper functions
Expand Down