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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Baptiste Bauvin
Supervised MultiModal Integration Tool
Commits
61be49dc
Commit
61be49dc
authored
5 years ago
by
Baptiste Bauvin
Browse files
Options
Downloads
Patches
Plain Diff
private_algos test_digit
parent
266a05bb
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
config_files/config_private_algos.yml
+1
-1
1 addition, 1 deletion
config_files/config_private_algos.yml
multiview_platform/mono_multi_view_classifiers/monoview_classifiers/imbalance_bagging.py
+7
-4
7 additions, 4 deletions
...iew_classifiers/monoview_classifiers/imbalance_bagging.py
with
8 additions
and
5 deletions
config_files/config_private_algos.yml
+
1
−
1
View file @
61be49dc
...
...
@@ -28,4 +28,4 @@ stats_iter: 10
metrics
:
[
"
accuracy_score"
,
"
f1_score"
]
metric_princ
:
"
accuracy_score"
hps_type
:
"
randomized_search-equiv"
hps_iter
:
30
\ No newline at end of file
hps_iter
:
5
\ No newline at end of file
This diff is collapsed.
Click to expand it.
multiview_platform/mono_multi_view_classifiers/monoview_classifiers/imbalance_bagging.py
+
7
−
4
View file @
61be49dc
...
...
@@ -2,14 +2,17 @@ from imblearn.ensemble import BalancedBaggingClassifier
from
sklearn.tree
import
DecisionTreeClassifier
from
..monoview.monoview_utils
import
BaseMonoviewClassifier
,
CustomRandint
,
CustomUniform
from
..utils.base
import
base_boosting_estimators
classifier_class_name
=
"
ImbalanceBagging
"
class
ImbalanceBagging
(
BaseMonoviewClassifier
,
BalancedBaggingClassifier
):
def
__init__
(
self
,
random_state
=
None
,
base_estimator
=
DecisionTreeClassifier
(
max_depth
=
1
),
n_estimators
=
10
,
sampling_strategy
=
"
auto
"
,
replacement
=
False
,):
def
__init__
(
self
,
random_state
=
None
,
base_estimator
=
"
DecisionTreeClassifier
"
,
n_estimators
=
10
,
sampling_strategy
=
"
auto
"
,
replacement
=
False
,
base_estimator_config
=
None
):
base_estimator
=
self
.
get_base_estimator
(
base_estimator
,
base_estimator_config
)
super
(
ImbalanceBagging
,
self
).
__init__
(
random_state
=
random_state
,
base_estimator
=
base_estimator
,
n_estimators
=
n_estimators
,
sampling_strategy
=
sampling_strategy
,
...
...
@@ -18,7 +21,7 @@ class ImbalanceBagging(BaseMonoviewClassifier, BalancedBaggingClassifier):
self
.
param_names
=
[
"
n_estimators
"
,
"
base_estimator
"
,
"
sampling_strategy
"
,]
self
.
classed_params
=
[
"
base_estimator
"
]
self
.
distribs
=
[
CustomRandint
(
low
=
1
,
high
=
50
),
[
DecisionTreeClassifier
(
max_depth
=
1
)]
,
base_boosting_estimators
,
[
"
auto
"
]]
self
.
weird_strings
=
{
"
base_estimator
"
:
"
class_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