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
3c05a5bd
Commit
3c05a5bd
authored
5 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
added min_length parameter to data handling, currently only supported for test set
parent
b146b12b
No related branches found
No related tags found
3 merge requests
!90
WIP: new release update
,
!89
Resolve "release branch / CI on gpu"
,
!68
Resolve "Minimal sample size in train-, val, test-set"
Pipeline
#31754
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/data_handling/data_preparation.py
+3
-1
3 additions, 1 deletion
src/data_handling/data_preparation.py
src/run_modules/experiment_setup.py
+3
-1
3 additions, 1 deletion
src/run_modules/experiment_setup.py
src/run_modules/pre_processing.py
+1
-1
1 addition, 1 deletion
src/run_modules/pre_processing.py
with
7 additions
and
3 deletions
src/data_handling/data_preparation.py
+
3
−
1
View file @
3c05a5bd
...
...
@@ -353,7 +353,9 @@ class DataPrep(object):
non_nan_observation
=
self
.
observation
.
dropna
(
dim
=
dim
)
intersect
=
reduce
(
np
.
intersect1d
,
(
non_nan_history
.
coords
[
dim
].
values
,
non_nan_label
.
coords
[
dim
].
values
,
non_nan_observation
.
coords
[
dim
].
values
))
if
len
(
intersect
)
==
0
:
min_length
=
self
.
kwargs
.
get
(
"
min_length
"
,
0
)
length
=
len
(
intersect
)
if
len
(
intersect
)
<
max
(
min_length
,
1
):
self
.
history
=
None
self
.
label
=
None
self
.
observation
=
None
...
...
This diff is collapsed.
Click to expand it.
src/run_modules/experiment_setup.py
+
3
−
1
View file @
3c05a5bd
...
...
@@ -34,7 +34,8 @@ class ExperimentSetup(RunEnvironment):
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
=
None
,
fraction_of_train
=
None
,
experiment_path
=
None
,
plot_path
=
None
,
forecast_path
=
None
,
overwrite_local_data
=
None
,
sampling
=
"
daily
"
,
create_new_model
=
None
,
bootstrap_path
=
None
,
permute_data_on_training
=
None
,
transformation
=
None
):
create_new_model
=
None
,
bootstrap_path
=
None
,
permute_data_on_training
=
None
,
transformation
=
None
,
test_min_length
=
None
):
# create run framework
super
().
__init__
()
...
...
@@ -107,6 +108,7 @@ class ExperimentSetup(RunEnvironment):
# test set parameters
self
.
_set_param
(
"
start
"
,
test_start
,
default
=
"
2010-01-01
"
,
scope
=
"
general.test
"
)
self
.
_set_param
(
"
end
"
,
test_end
,
default
=
"
2017-12-31
"
,
scope
=
"
general.test
"
)
self
.
_set_param
(
"
min_length
"
,
test_min_length
,
default
=
30
,
scope
=
"
general.test
"
)
# train_val set parameters
self
.
_set_param
(
"
start
"
,
self
.
data_store
.
get
(
"
start
"
,
"
general.train
"
),
scope
=
"
general.train_val
"
)
...
...
This diff is collapsed.
Click to expand it.
src/run_modules/pre_processing.py
+
1
−
1
View file @
3c05a5bd
...
...
@@ -11,7 +11,7 @@ from src.join import EmptyQueryResult
from
src.run_modules.run_environment
import
RunEnvironment
DEFAULT_ARGS_LIST
=
[
"
data_path
"
,
"
network
"
,
"
stations
"
,
"
variables
"
,
"
interpolate_dim
"
,
"
target_dim
"
,
"
target_var
"
]
DEFAULT_KWARGS_LIST
=
[
"
limit_nan_fill
"
,
"
window_history_size
"
,
"
window_lead_time
"
,
"
statistics_per_var
"
,
DEFAULT_KWARGS_LIST
=
[
"
limit_nan_fill
"
,
"
window_history_size
"
,
"
window_lead_time
"
,
"
statistics_per_var
"
,
"
min_length
"
,
"
station_type
"
,
"
overwrite_local_data
"
,
"
start
"
,
"
end
"
,
"
sampling
"
,
"
transformation
"
]
...
...
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