Commit b3148fd8 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files
parents 750b6a8c b09e2d1d
Pipeline #6496 passed with stages
in 7 minutes and 4 seconds
...@@ -40,6 +40,7 @@ pages: ...@@ -40,6 +40,7 @@ pages:
script: script:
- export LC_ALL=$(locale -a | grep en_US) - export LC_ALL=$(locale -a | grep en_US)
- export LANG=$(locale -a | grep en_US) - export LANG=$(locale -a | grep en_US)
- python3 setup.py install
- python3 setup.py build_sphinx - python3 setup.py build_sphinx
- cp -r build/sphinx/html public - cp -r build/sphinx/html public
artifacts: artifacts:
......
...@@ -450,6 +450,7 @@ class MuComboClassifier(BaseEnsemble, ClassifierMixin, UBoosting): ...@@ -450,6 +450,7 @@ class MuComboClassifier(BaseEnsemble, ClassifierMixin, UBoosting):
self.n_classes_ = len(self.classes_) self.n_classes_ = len(self.classes_)
self.n_views_ = n_views self.n_views_ = n_views
self.n_features_ = self.X_.shape[1] self.n_features_ = self.X_.shape[1]
self.n_features_in_ = self.n_features_
if self.n_classes_ == 1: if self.n_classes_ == 1:
# This case would lead to division by 0 when computing the cost # This case would lead to division by 0 when computing the cost
# matrix so it needs special handling (but it is an obvious case as # matrix so it needs special handling (but it is an obvious case as
......
...@@ -377,6 +377,7 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting): ...@@ -377,6 +377,7 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting):
self.classes_, y = np.unique(y, return_inverse=True) self.classes_, y = np.unique(y, return_inverse=True)
self.n_classes_ = len(self.classes_) self.n_classes_ = len(self.classes_)
self.n_features_ = self.X_.shape[1] self.n_features_ = self.X_.shape[1]
self.n_features_in_ = self.n_features_
if self.n_classes_ == 1: if self.n_classes_ == 1:
# This case would lead to division by 0 when computing the cost # This case would lead to division by 0 when computing the cost
# matrix so it needs special handling (but it is an obvious case as # matrix so it needs special handling (but it is an obvious case as
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment