Skip to content

Commit

Permalink
added missing test split to binary classification example
Browse files Browse the repository at this point in the history
  • Loading branch information
lshpaner committed Aug 27, 2024
1 parent 1e5ffe4 commit 7bcb3d9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/usage_guide.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions docs/_sources/usage_guide.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ Step 8: Fit the Model
# Get the training and validation data
X_train, y_train = model_tuner.get_train_data(X, y)
X_valid, y_valid = model_tuner.get_valid_data(X, y)
X_test, y_test = model_tuner.get_test_data(X, y)
# Fit the model with the validation data
model_tuner.fit(
Expand Down
1 change: 1 addition & 0 deletions docs/usage_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ <h3>Step 8: Fit the Model<a class="headerlink" href="#step-8-fit-the-model" titl
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Get the training and validation data</span>
<span class="n">X_train</span><span class="p">,</span> <span class="n">y_train</span> <span class="o">=</span> <span class="n">model_tuner</span><span class="o">.</span><span class="n">get_train_data</span><span class="p">(</span><span class="n">X</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>
<span class="n">X_valid</span><span class="p">,</span> <span class="n">y_valid</span> <span class="o">=</span> <span class="n">model_tuner</span><span class="o">.</span><span class="n">get_valid_data</span><span class="p">(</span><span class="n">X</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>
<span class="n">X_test</span><span class="p">,</span> <span class="n">y_test</span> <span class="o">=</span> <span class="n">model_tuner</span><span class="o">.</span><span class="n">get_test_data</span><span class="p">(</span><span class="n">X</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>

<span class="c1"># Fit the model with the validation data</span>
<span class="n">model_tuner</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span>
Expand Down
1 change: 1 addition & 0 deletions source/usage_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ Step 8: Fit the Model
# Get the training and validation data
X_train, y_train = model_tuner.get_train_data(X, y)
X_valid, y_valid = model_tuner.get_valid_data(X, y)
X_test, y_test = model_tuner.get_test_data(X, y)
# Fit the model with the validation data
model_tuner.fit(
Expand Down

0 comments on commit 7bcb3d9

Please sign in to comment.