data_modeler 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_modeler/dataset.rb +4 -3
- data/lib/data_modeler/dataset_gen.rb +8 -7
- data/lib/data_modeler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3daf6a98719d10349658f22bda03ae9763dfe2fd
|
4
|
+
data.tar.gz: e7ce8d15928b20dbfda50ea2fafc910bb4f43451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a8135391faa041a1ac876c77f06add9311a9c58b0a300d774b28cff0bb9a7ce6e27d11e7bdcf1f085e545f755b82580b38eecf0a898ee29027c376abc95c289
|
7
|
+
data.tar.gz: dfaad0abc476b8cee5b357a319be2427b97fe6e69ca10cd7a304ac7993b65df936801ea4df78860478780c9946f42a57629515d40d102bdceaf01161e472fe50
|
data/lib/data_modeler/dataset.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
2
|
+
# Build complex inputs and targets from the data to train the model.
|
3
|
+
#
|
4
|
+
# @note checks to validate if enough data is present (given `ntimes`, `tspread`
|
5
|
+
# and `look_ahead`) should be done on the caller (typically `DatasetGen`)
|
5
6
|
class DataModeler::Dataset
|
6
7
|
|
7
8
|
attr_reader :data, :input_series, :target_series, :first_idx, :end_idx,
|
@@ -1,11 +1,12 @@
|
|
1
1
|
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
2
|
+
# Build train and test datasets for each run of the training.
|
3
|
+
#
|
4
|
+
# This diagram should help understanding how it works
|
5
|
+
# (win is the input+look_ahead window for first training target)
|
6
|
+
# ----------------------------------------> data (time)
|
7
|
+
# |win|train1|t1| -> train starts after window, test after training
|
8
|
+
# |train2|t2| -> train starts after window + 1 tset
|
9
|
+
# |train3|t3| -> train starts after window + 2 tset
|
9
10
|
# Note how the test sets line up. This allows the testing results plots
|
10
11
|
# to be continuous, no model is tested on data on which *itself* has been
|
11
12
|
# trained, and all data is used multiple times
|
data/lib/data_modeler/version.rb
CHANGED