Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dev
scikit-multimodallearn
Commits
a83236d8
Commit
a83236d8
authored
Mar 04, 2021
by
Baptiste Bauvin
Browse files
Changed name in test and removed a print in mumbo
parent
32ab7a9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
multimodal/boosting/mumbo.py
View file @
a83236d8
...
...
@@ -178,7 +178,6 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting):
"""Check the estimator and set the base_estimator_ attribute."""
super
(
MumboClassifier
,
self
).
_validate_estimator
(
default
=
DecisionTreeClassifier
(
max_depth
=
1
))
print
()
if
not
has_fit_parameter
(
self
.
base_estimator_
,
"sample_weight"
):
raise
ValueError
(
"%s doesn't support sample_weight."
%
self
.
base_estimator_
.
__class__
.
__name__
)
...
...
multimodal/tests/test_mumbo.py
View file @
a83236d8
...
...
@@ -59,7 +59,7 @@ from multimodal.boosting.mumbo import MumboClassifier
from
multimodal.tests.test_combo
import
NoSampleWeightLasso
class
TestMu
Cu
mboClassifier
(
unittest
.
TestCase
):
class
TestMumboClassifier
(
unittest
.
TestCase
):
@
classmethod
def
setUpClass
(
clf
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment