Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhao062 committed Aug 1, 2019
1 parent 58e7c64 commit 8f7063f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
12 changes: 4 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ combo is featured for:
.. code-block:: python
from combo.models.stacking import Stacking
from combo.models.classifier_stacking import Stacking
# initialize a group of base classifiers
classifiers = [DecisionTreeClassifier(), LogisticRegression(),
KNeighborsClassifier(), RandomForestClassifier(),
Expand Down Expand Up @@ -258,11 +258,7 @@ For Jupyter Notebooks, please navigate to **"/notebooks/compare_selected_classif
for more information.


Example of Stacking
^^^^^^^^^^^^^^^^^^^


`"examples/stacking_example.py" <https://github.com/yzhao062/combo/blob/master/examples/stacking_example.py>`_
`"examples/classifier_stacking_example.py" <https://github.com/yzhao062/combo/blob/master/examples/classifier_stacking_example.py>`_
demonstrates the basic API of stacking (meta ensembling).


Expand All @@ -284,7 +280,7 @@ demonstrates the basic API of stacking (meta ensembling).
.. code-block:: python
from combo.models.stacking import Stacking
from combo.models.classifier_stacking import Stacking
clf = Stacking(base_estimators=classifiers, n_folds=4, shuffle_data=False,
keep_original=True, use_proba=False, random_state=random_state)
Expand All @@ -294,7 +290,7 @@ demonstrates the basic API of stacking (meta ensembling).
evaluate_print('Stacking | ', y_test, y_test_predict)
#. See a sample output of stacking_example.py
#. See a sample output of classifier_stacking_example.py

.. code-block:: bash
Expand Down
6 changes: 3 additions & 3 deletions docs/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Example of Stacking
^^^^^^^^^^^^^^^^^^^


`"examples/stacking_example.py" <https://github.com/yzhao062/combo/blob/master/examples/stacking_example.py>`_
`"examples/classifier_stacking_example.py" <https://github.com/yzhao062/combo/blob/master/examples/classifier_stacking_example.py>`_
demonstrates the basic API of stacking (meta ensembling).


Expand All @@ -36,7 +36,7 @@ demonstrates the basic API of stacking (meta ensembling).
.. code-block:: python
from combo.models.stacking import Stacking
from combo.models.classifier_stacking import Stacking
clf = Stacking(base_estimators=classifiers, n_folds=4, shuffle_data=False,
keep_original=True, use_proba=False, random_state=random_state)
Expand All @@ -46,7 +46,7 @@ demonstrates the basic API of stacking (meta ensembling).
evaluate_print('Stacking | ', y_test, y_test_predict)
#. See a sample output of stacking_example.py
#. See a sample output of classifier_stacking_example.py

.. code-block:: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ combo is featured for:
.. code-block:: python
from combo.models.stacking import Stacking
from combo.models.classifier_stacking import Stacking
# initialize a group of base classifiers
classifiers = [DecisionTreeClassifier(), LogisticRegression(),
KNeighborsClassifier(), RandomForestClassifier(),
Expand Down
File renamed without changes.

0 comments on commit 8f7063f

Please sign in to comment.