Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhao062 committed Aug 2, 2019
1 parent 8f7063f commit 64c72a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions combo/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ def _detector_predict_proba(self, X, proba_method='linear'):
'is not a valid probability conversion method')

def _set_n_classes(self, y):
"""Set the number of classes if `y` is presented, which is not
expected. It could be useful for multi-class outlier detection.
"""Set the number of classes if `y` is presented.
Parameters
----------
Expand All @@ -209,8 +208,7 @@ def _set_n_classes(self, y):
if y is not None:
check_classification_targets(y)
self._classes = len(np.unique(y))
warnings.warn(
"y should not be presented in unsupervised learning.")

return self

def __len__(self):
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ fundamental ones which can be applied to various tasks.
Task Algorithm Year Ref Class/Function
=================== ====================================================================================================== ===== =========================================== ==================================================================
General Purpose Average & Weighted Average: average across all scores/prediction results, maybe with weights N/A :cite:`a-zhou2012ensemble` :mod:`combo.models.score_comb.average`
General Purpose Maximization: simple combination by taking the maximum scores N/A :cite:`a-zhou2012ensemble` :mod:`combo.models.score_comb.max`
General Purpose Maximization: simple combination by taking the maximum scores N/A :cite:`a-zhou2012ensemble` :mod:`combo.models.score_comb.maximization`
General Purpose Median: take the median value across all scores/prediction results N/A :cite:`a-zhou2012ensemble` :mod:`combo.models.score_comb.median`
General Purpose Majority Vote & Weighted Majority Vote N/A :cite:`a-zhou2012ensemble` :mod:`combo.models.score_comb.majority_vote`
Classification SimpleClassifierAggregator: combining classifiers by general purpose methods above N/A N/A :class:`combo.models.classifier_comb.SimpleClassifierAggregator`
Expand Down

0 comments on commit 64c72a1

Please sign in to comment.