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
Commits
254e846e
Commit
254e846e
authored
5 years ago
by
Charly Lamothe
Browse files
Options
Downloads
Patches
Plain Diff
By default, compute the hyperparams of the whole dataset list.
parent
f61314f3
No related branches found
No related tags found
1 merge request
!9
Resolve "Experiment pipeline"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/bolsonaro/data/dataset_loader.py
+4
-0
4 additions, 0 deletions
code/bolsonaro/data/dataset_loader.py
code/compute_hyperparameters.py
+1
-3
1 addition, 3 deletions
code/compute_hyperparameters.py
with
5 additions
and
3 deletions
code/bolsonaro/data/dataset_loader.py
+
4
−
0
View file @
254e846e
...
...
@@ -26,6 +26,10 @@ class DatasetLoader(object):
DEFAULT_SUBSETS_USED
=
'
train,dev
'
DEFAULT_NORMALIZE_WEIGHTS
=
False
dataset_names
=
[
'
boston
'
,
'
iris
'
,
'
diabetes
'
,
'
digits
'
,
'
linnerud
'
,
'
wine
'
,
'
breast_cancer
'
,
'
olivetti_faces
'
,
'
20newsgroups_vectorized
'
,
'
lfw_people
'
,
'
lfw_pairs
'
,
'
covtype
'
,
'
rcv1
'
,
'
california_housing
'
]
@staticmethod
def
load
(
dataset_parameters
):
name
=
dataset_parameters
.
name
...
...
This diff is collapsed.
Click to expand it.
code/compute_hyperparameters.py
+
1
−
3
View file @
254e846e
...
...
@@ -45,14 +45,12 @@ if __name__ == "__main__":
'
min_samples_leaf
'
:
Integer
(
1
,
1000
),
'
max_depth
'
:
Integer
(
1
,
20
),
'
max_features
'
:
Categorical
([
'
auto
'
,
'
sqrt
'
,
'
log2
'
],
[
0.5
,
0.25
,
0.25
])}
DATASET_LIST
=
[
'
boston
'
,
'
iris
'
,
'
diabetes
'
]
# , 'digits', 'linnerud', 'wine']
parser
=
argparse
.
ArgumentParser
(
formatter_class
=
argparse
.
ArgumentDefaultsHelpFormatter
)
parser
.
add_argument
(
'
--cv
'
,
nargs
=
'
?
'
,
type
=
int
,
default
=
DEFAULT_CV
,
help
=
'
Specify the size of the cross-validation.
'
)
parser
.
add_argument
(
'
--n_iter
'
,
nargs
=
'
?
'
,
type
=
int
,
default
=
DEFAULT_N_ITER
,
help
=
'
Specify the number of iterations for the bayesian search.
'
)
parser
.
add_argument
(
'
--seed
'
,
nargs
=
'
?
'
,
type
=
int
,
default
=
None
,
help
=
'
Specify a seed instead of generate it randomly.
'
)
parser
.
add_argument
(
'
--datasets
'
,
nargs
=
'
+
'
,
type
=
str
,
default
=
D
ATASET_LIST
,
help
=
'
Specify the dataset used by the estimator.
'
)
parser
.
add_argument
(
'
--datasets
'
,
nargs
=
'
+
'
,
type
=
str
,
default
=
D
atasetLoader
.
dataset_names
,
help
=
'
Specify the dataset used by the estimator.
'
)
parser
.
add_argument
(
'
--verbose
'
,
action
=
'
store_true
'
,
default
=
False
,
help
=
'
Print information during the bayesian search.
'
)
args
=
parser
.
parse_args
()
...
...
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