Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Supervised MultiModal Integration Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Baptiste Bauvin
Supervised MultiModal Integration Tool
Commits
f056ce44
Commit
f056ce44
authored
4 years ago
by
Baptiste Bauvin
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into private_algos
parents
832d5450
57500543
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
summit/multiview_platform/monoview_classifiers/adaboost.py
+1
-0
1 addition, 0 deletions
summit/multiview_platform/monoview_classifiers/adaboost.py
summit/multiview_platform/utils/base.py
+2
-0
2 additions, 0 deletions
summit/multiview_platform/utils/base.py
with
3 additions
and
0 deletions
summit/multiview_platform/monoview_classifiers/adaboost.py
+
1
−
0
View file @
f056ce44
...
@@ -40,6 +40,7 @@ class Adaboost(AdaBoostClassifier, BaseMonoviewClassifier):
...
@@ -40,6 +40,7 @@ class Adaboost(AdaBoostClassifier, BaseMonoviewClassifier):
self
.
weird_strings
=
{
"
base_estimator
"
:
"
class_name
"
}
self
.
weird_strings
=
{
"
base_estimator
"
:
"
class_name
"
}
self
.
plotted_metric
=
metrics
.
zero_one_loss
self
.
plotted_metric
=
metrics
.
zero_one_loss
self
.
plotted_metric_name
=
"
zero_one_loss
"
self
.
plotted_metric_name
=
"
zero_one_loss
"
self
.
base_estimator_config
=
base_estimator_config
self
.
step_predictions
=
None
self
.
step_predictions
=
None
def
fit
(
self
,
X
,
y
,
sample_weight
=
None
):
def
fit
(
self
,
X
,
y
,
sample_weight
=
None
):
...
...
This diff is collapsed.
Click to expand it.
summit/multiview_platform/utils/base.py
+
2
−
0
View file @
f056ce44
...
@@ -99,6 +99,8 @@ class BaseClassifier(BaseEstimator, ):
...
@@ -99,6 +99,8 @@ class BaseClassifier(BaseEstimator, ):
if
"
config
"
in
self
.
weird_strings
[
param_name
]:
if
"
config
"
in
self
.
weird_strings
[
param_name
]:
string
+=
"
( with
"
+
self
.
get_params
()[
string
+=
"
( with
"
+
self
.
get_params
()[
param_name
].
params_to_string
()
+
"
)
"
param_name
].
params_to_string
()
+
"
)
"
elif
self
.
get_params
()[
param_name
]
is
None
:
return
"
None
"
else
:
else
:
return
str
(
self
.
get_params
()[
param_name
])
return
str
(
self
.
get_params
()[
param_name
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment