Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhao062 committed Jul 29, 2019
1 parent a605365 commit c271830
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,23 +419,23 @@ demonstrates the basic API of combining multiple base outlier detectors.
#. Evaluate the prediction using ROC and Precision @ Rank n.

.. code-block:: python
.. code-block:: python
# evaluate and print the results
print("\nOn Training Data:")
evaluate_print(clf_name, y_train, y_train_scores)
print("\nOn Test Data:")
evaluate_print(clf_name, y_test, y_test_scores)
# evaluate and print the results
print("\nOn Training Data:")
evaluate_print(clf_name, y_train, y_train_scores)
print("\nOn Test Data:")
evaluate_print(clf_name, y_test, y_test_scores)
#. See sample outputs on both training and test data.

.. code-block:: bash
.. code-block:: bash
On Training Data:
Aggregation by Averaging ROC:0.9994, precision @ rank n:0.95
On Training Data:
Aggregation by Averaging ROC:0.9994, precision @ rank n:0.95
On Test Data:
Aggregation by Averaging ROC:1.0, precision @ rank n:1.0
On Test Data:
Aggregation by Averaging ROC:1.0, precision @ rank n:1.0
----
Expand Down
22 changes: 11 additions & 11 deletions docs/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,22 +195,22 @@ demonstrates the basic API of combining multiple base outlier detectors.
#. Evaluate the prediction using ROC and Precision @ Rank n.

.. code-block:: python
.. code-block:: python
# evaluate and print the results
print("\nOn Training Data:")
evaluate_print(clf_name, y_train, y_train_scores)
print("\nOn Test Data:")
evaluate_print(clf_name, y_test, y_test_scores)
# evaluate and print the results
print("\nOn Training Data:")
evaluate_print(clf_name, y_train, y_train_scores)
print("\nOn Test Data:")
evaluate_print(clf_name, y_test, y_test_scores)
#. See sample outputs on both training and test data.

.. code-block:: bash
.. code-block:: bash
On Training Data:
Aggregation by Averaging ROC:0.9994, precision @ rank n:0.95
On Training Data:
Aggregation by Averaging ROC:0.9994, precision @ rank n:0.95
On Test Data:
Aggregation by Averaging ROC:1.0, precision @ rank n:1.0
On Test Data:
Aggregation by Averaging ROC:1.0, precision @ rank n:1.0

0 comments on commit c271830

Please sign in to comment.