Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bolsonaro
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
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Luc Giffon
bolsonaro
Merge requests
!21
Resolve "Add some tests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add some tests"
19-add-some-tests
into
master
Overview
6
Commits
7
Pipelines
4
Changes
3
Merged
Leo Bouscarrat
requested to merge
19-add-some-tests
into
master
5 years ago
Overview
6
Commits
7
Pipelines
4
Changes
3
Expand
Closes
#19 (closed)
Edited
5 years ago
by
Leo Bouscarrat
0
0
Merge request reports
Compare
master
version 6
5cf23c9b
5 years ago
version 5
a98dfa87
5 years ago
version 4
8b2bf908
5 years ago
version 3
1337cc4e
5 years ago
version 2
e1af1ded
5 years ago
version 1
f9d50914
5 years ago
master (base)
and
latest version
latest version
f077de3c
7 commits,
5 years ago
version 6
5cf23c9b
6 commits,
5 years ago
version 5
a98dfa87
5 commits,
5 years ago
version 4
8b2bf908
4 commits,
5 years ago
version 3
1337cc4e
3 commits,
5 years ago
version 2
e1af1ded
2 commits,
5 years ago
version 1
f9d50914
1 commit,
5 years ago
3 files
+
73
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
code/bolsonaro/models/model_parameters.py
+
14
−
0
Options
@@ -7,6 +7,20 @@ class ModelParameters(object):
def
__init__
(
self
,
extracted_forest_size
,
normalize_D
,
subsets_used
,
normalize_weights
,
seed
,
hyperparameters
,
extraction_strategy
):
"""
Init of ModelParameters.
Args:
extracted_forest_size (list): list of all the extracted forest
size.
normalize_D (bool): true normalize the distribution, false no
subsets_used (list): which dataset use for randomForest and for OMP
'
train
'
,
'
dev
'
or
'
train+dev
'
and combination of two of this.
normalize_weights (bool): if we normalize the weights or no.
seed (int): the seed used for the randomization.
hyperparameters (dict): dict of the hyperparameters of RandomForest
in scikit-learn.
extraction_strategy (str): either
'
none
'
,
'
random
'
,
'
omp
'
"""
self
.
_extracted_forest_size
=
extracted_forest_size
self
.
_normalize_D
=
normalize_D
self
.
_subsets_used
=
subsets_used
Loading