Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
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
esde
machine-learning
MLAir
Commits
587f606d
Commit
587f606d
authored
5 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
prepare experiment to use bootstraps
parent
ebc4ff73
No related branches found
No related tags found
3 merge requests
!59
Develop
,
!52
implemented bootstraps
,
!34
Pair issue048 feat create shuffled data
Pipeline
#29190
passed with warnings
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/helpers.py
+7
-0
7 additions, 0 deletions
src/helpers.py
src/run_modules/experiment_setup.py
+5
-1
5 additions, 1 deletion
src/run_modules/experiment_setup.py
with
12 additions
and
1 deletion
src/helpers.py
+
7
−
0
View file @
587f606d
...
@@ -145,6 +145,13 @@ def set_experiment_name(experiment_date=None, experiment_path=None):
...
@@ -145,6 +145,13 @@ def set_experiment_name(experiment_date=None, experiment_path=None):
return
experiment_name
,
experiment_path
return
experiment_name
,
experiment_path
def
set_bootstrap_path
(
bootstrap_path
,
data_path
,
sampling
):
if
bootstrap_path
is
None
:
bootstrap_path
=
os
.
path
.
join
(
data_path
,
"
..
"
,
f
"
bootstrap_
{
sampling
}
"
)
check_path_and_create
(
bootstrap_path
)
return
bootstrap_path
class
PyTestRegex
:
class
PyTestRegex
:
"""
Assert that a given string meets some expectations.
"""
"""
Assert that a given string meets some expectations.
"""
...
...
This diff is collapsed.
Click to expand it.
src/run_modules/experiment_setup.py
+
5
−
1
View file @
587f606d
...
@@ -33,13 +33,17 @@ class ExperimentSetup(RunEnvironment):
...
@@ -33,13 +33,17 @@ class ExperimentSetup(RunEnvironment):
window_lead_time
=
None
,
dimensions
=
None
,
interpolate_dim
=
None
,
interpolate_method
=
None
,
window_lead_time
=
None
,
dimensions
=
None
,
interpolate_dim
=
None
,
interpolate_method
=
None
,
limit_nan_fill
=
None
,
train_start
=
None
,
train_end
=
None
,
val_start
=
None
,
val_end
=
None
,
test_start
=
None
,
limit_nan_fill
=
None
,
train_start
=
None
,
train_end
=
None
,
val_start
=
None
,
val_end
=
None
,
test_start
=
None
,
test_end
=
None
,
use_all_stations_on_all_data_sets
=
True
,
trainable
=
False
,
fraction_of_train
=
None
,
test_end
=
None
,
use_all_stations_on_all_data_sets
=
True
,
trainable
=
False
,
fraction_of_train
=
None
,
experiment_path
=
None
,
plot_path
=
None
,
forecast_path
=
None
,
overwrite_local_data
=
None
):
experiment_path
=
None
,
plot_path
=
None
,
forecast_path
=
None
,
overwrite_local_data
=
None
,
sampling
=
"
daily
"
,
bootstrap_path
=
None
):
# create run framework
# create run framework
super
().
__init__
()
super
().
__init__
()
# experiment setup
# experiment setup
self
.
_set_param
(
"
data_path
"
,
helpers
.
prepare_host
())
self
.
_set_param
(
"
data_path
"
,
helpers
.
prepare_host
())
data_path
=
self
.
data_store
.
get
(
"
data_path
"
,
"
general
"
)
bootstrap_path
=
helpers
.
set_bootstrap_path
(
bootstrap_path
,
data_path
,
sampling
)
self
.
_set_param
(
"
bootstrap_path
"
,
bootstrap_path
)
self
.
_set_param
(
"
trainable
"
,
trainable
,
default
=
False
)
self
.
_set_param
(
"
trainable
"
,
trainable
,
default
=
False
)
self
.
_set_param
(
"
fraction_of_training
"
,
fraction_of_train
,
default
=
0.8
)
self
.
_set_param
(
"
fraction_of_training
"
,
fraction_of_train
,
default
=
0.8
)
...
...
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