From 64c72a1326cb82357a9e4209fd2d37e74ae66bf4 Mon Sep 17 00:00:00 2001 From: Yue Zhao Date: Fri, 2 Aug 2019 13:30:11 +0800 Subject: [PATCH] update documentation --- combo/models/base.py | 6 ++---- docs/index.rst | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/combo/models/base.py b/combo/models/base.py index 825ab48..196edd1 100644 --- a/combo/models/base.py +++ b/combo/models/base.py @@ -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 ---------- @@ -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): diff --git a/docs/index.rst b/docs/index.rst index bddc6d6..b5e23f8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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`