nnts 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nnts-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Gareth Davies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
nnts-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.1
2
+ Name: nnts
3
+ Version: 0.1.0
4
+ Summary: Lightweight pytorch time series forecasting
5
+ License: MIT
6
+ Author: Gareth Davies
7
+ Author-email: garethmd@googlemail.com
8
+ Requires-Python: >=3.11,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Dist: gluonts (>=0.15.1,<0.16.0)
14
+ Requires-Dist: matplotlib (>=3.9.1,<4.0.0)
15
+ Requires-Dist: pandas (>=2.2.2,<3.0.0)
16
+ Requires-Dist: plotly (>=5.22.0,<6.0.0)
17
+ Requires-Dist: scipy (>=1.14.0,<2.0.0)
18
+ Requires-Dist: seaborn (>=0.13.2,<0.14.0)
19
+ Requires-Dist: torch (>=2.3.1,<3.0.0)
20
+ Requires-Dist: wandb (>=0.17.4,<0.18.0)
21
+ Description-Content-Type: text/markdown
22
+
23
+ # nnts
24
+
25
+ ==============================
26
+
27
+ Neural Networks For Time Series applications
28
+
29
+ Project Organization
30
+ ------------
31
+
32
+ ├── LICENSE
33
+ ├── Makefile <- Makefile with commands like `make data` or `make train`
34
+ ├── README.md <- The top-level README for developers using this project.
35
+ ├── data
36
+ │   ├── external <- Data from third party sources.
37
+ │   ├── interim <- Intermediate data that has been transformed.
38
+ │   ├── processed <- The final, canonical data sets for modeling.
39
+ │   └── raw <- The original, immutable data dump.
40
+ │
41
+ ├── docs <- A default Sphinx project; see sphinx-doc.org for details
42
+ │
43
+ ├── models <- Trained and serialized models, model predictions, or model summaries
44
+ │
45
+ ├── notebooks <- Jupyter notebooks. Naming convention is a number (for ordering),
46
+ │ the creator's initials, and a short `-` delimited description, e.g.
47
+ │ `1.0-jqp-initial-data-exploration`.
48
+ │
49
+ ├── references <- Data dictionaries, manuals, and all other explanatory materials.
50
+ │
51
+ ├── reports <- Generated analysis as HTML, PDF, LaTeX, etc.
52
+ │   └── figures <- Generated graphics and figures to be used in reporting
53
+ │
54
+ ├── requirements.txt <- The requirements file for reproducing the analysis environment, e.g.
55
+ │ generated with `pip freeze > requirements.txt`
56
+ │
57
+ ├── setup.py <- makes project pip installable (pip install -e .) so src can be imported
58
+ ├── src <- Source code for use in this project.
59
+ │   ├── __init__.py <- Makes src a Python module
60
+ │ │
61
+ │   ├── data <- Scripts to download or generate data
62
+ │   │   └── make_dataset.py
63
+ │ │
64
+ │   ├── features <- Scripts to turn raw data into features for modeling
65
+ │   │   └── build_features.py
66
+ │ │
67
+ │   ├── models <- Scripts to train models and then use trained models to make
68
+ │ │ │ predictions
69
+ │   │   ├── predict_model.py
70
+ │   │   └── train_model.py
71
+ │ │
72
+ │   └── visualization <- Scripts to create exploratory and results oriented visualizations
73
+ │   └── visualize.py
74
+ │
75
+ └── tox.ini <- tox file with settings for running tox; see tox.readthedocs.io
76
+
77
+
78
+ --------
79
+
80
+ <p><small>Project based on the <a target="_blank" href="https://drivendata.github.io/cookiecutter-data-science/">cookiecutter data science project template</a>. #cookiecutterdatascience</small></p>
81
+
nnts-0.1.0/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # nnts
2
+
3
+ ==============================
4
+
5
+ Neural Networks For Time Series applications
6
+
7
+ Project Organization
8
+ ------------
9
+
10
+ ├── LICENSE
11
+ ├── Makefile <- Makefile with commands like `make data` or `make train`
12
+ ├── README.md <- The top-level README for developers using this project.
13
+ ├── data
14
+ │   ├── external <- Data from third party sources.
15
+ │   ├── interim <- Intermediate data that has been transformed.
16
+ │   ├── processed <- The final, canonical data sets for modeling.
17
+ │   └── raw <- The original, immutable data dump.
18
+ │
19
+ ├── docs <- A default Sphinx project; see sphinx-doc.org for details
20
+ │
21
+ ├── models <- Trained and serialized models, model predictions, or model summaries
22
+ │
23
+ ├── notebooks <- Jupyter notebooks. Naming convention is a number (for ordering),
24
+ │ the creator's initials, and a short `-` delimited description, e.g.
25
+ │ `1.0-jqp-initial-data-exploration`.
26
+ │
27
+ ├── references <- Data dictionaries, manuals, and all other explanatory materials.
28
+ │
29
+ ├── reports <- Generated analysis as HTML, PDF, LaTeX, etc.
30
+ │   └── figures <- Generated graphics and figures to be used in reporting
31
+ │
32
+ ├── requirements.txt <- The requirements file for reproducing the analysis environment, e.g.
33
+ │ generated with `pip freeze > requirements.txt`
34
+ │
35
+ ├── setup.py <- makes project pip installable (pip install -e .) so src can be imported
36
+ ├── src <- Source code for use in this project.
37
+ │   ├── __init__.py <- Makes src a Python module
38
+ │ │
39
+ │   ├── data <- Scripts to download or generate data
40
+ │   │   └── make_dataset.py
41
+ │ │
42
+ │   ├── features <- Scripts to turn raw data into features for modeling
43
+ │   │   └── build_features.py
44
+ │ │
45
+ │   ├── models <- Scripts to train models and then use trained models to make
46
+ │ │ │ predictions
47
+ │   │   ├── predict_model.py
48
+ │   │   └── train_model.py
49
+ │ │
50
+ │   └── visualization <- Scripts to create exploratory and results oriented visualizations
51
+ │   └── visualize.py
52
+ │
53
+ └── tox.ini <- tox file with settings for running tox; see tox.readthedocs.io
54
+
55
+
56
+ --------
57
+
58
+ <p><small>Project based on the <a target="_blank" href="https://drivendata.github.io/cookiecutter-data-science/">cookiecutter data science project template</a>. #cookiecutterdatascience</small></p>
@@ -0,0 +1,3 @@
1
+ import logging
2
+
3
+ logging.getLogger(__name__).addHandler(logging.NullHandler())
File without changes
@@ -0,0 +1,371 @@
1
+ {
2
+ "m1_monthly": {
3
+ "filename": "m1_monthly_dataset.tsf",
4
+ "dataset": "m1_monthly",
5
+ "context_length": 15,
6
+ "prediction_length": 18,
7
+ "freq": "M",
8
+ "seasonality": 12,
9
+ "url": "https://zenodo.org/records/4656159/files/m1_monthly_dataset.zip"
10
+ },
11
+ "m1_quarterly": {
12
+ "filename": "m1_quarterly_dataset.tsf",
13
+ "dataset": "m1_quarterly",
14
+ "context_length": 5,
15
+ "prediction_length": 8,
16
+ "freq": "Q",
17
+ "seasonality": 4,
18
+ "url": "https://zenodo.org/records/4656154/files/m1_quarterly_dataset.zip"
19
+ },
20
+ "m1_yearly": {
21
+ "filename": "m1_yearly_dataset.tsf",
22
+ "dataset": "m1_yearly",
23
+ "context_length": 2,
24
+ "prediction_length": 6,
25
+ "freq": "1Y",
26
+ "seasonality": 1,
27
+ "url": "https://zenodo.org/records/4656193/files/m1_yearly_dataset.zip"
28
+ },
29
+ "m3_monthly": {
30
+ "filename": "m3_monthly_dataset.tsf",
31
+ "dataset": "m3_monthly",
32
+ "context_length": 15,
33
+ "prediction_length": 18,
34
+ "freq": "M",
35
+ "seasonality": 12,
36
+ "url": "https://zenodo.org/records/4656298/files/m3_monthly_dataset.zip"
37
+ },
38
+ "m3_quarterly": {
39
+ "filename": "m3_quarterly_dataset.tsf",
40
+ "dataset": "m3_quarterly",
41
+ "context_length": 5,
42
+ "prediction_length": 8,
43
+ "freq": "Q",
44
+ "seasonality": 4,
45
+ "url": "https://zenodo.org/records/4656262/files/m3_quarterly_dataset.zip"
46
+ },
47
+ "m3_yearly": {
48
+ "filename": "m3_yearly_dataset.tsf",
49
+ "dataset": "m3_yearly",
50
+ "context_length": 2,
51
+ "prediction_length": 6,
52
+ "freq": "1Y",
53
+ "seasonality": 1,
54
+ "url": "https://zenodo.org/records/4656222/files/m3_yearly_dataset.zip"
55
+ },
56
+ "m4_hourly": {
57
+ "filename": "m4_hourly_dataset.tsf",
58
+ "dataset": "m4_hourly",
59
+ "context_length": 210,
60
+ "prediction_length": 48,
61
+ "freq": "1H",
62
+ "seasonality": 24,
63
+ "url": "https://zenodo.org/records/4656589/files/m4_hourly_dataset.zip"
64
+ },
65
+ "m4_daily": {
66
+ "filename": "m4_daily_dataset.tsf",
67
+ "dataset": "m4_daily",
68
+ "context_length": 9,
69
+ "prediction_length": 14,
70
+ "freq": "1D",
71
+ "seasonality": 7,
72
+ "url": "https://zenodo.org/records/4656548/files/m4_daily_dataset.zip"
73
+ },
74
+ "m4_weekly": {
75
+ "filename": "m4_weekly_dataset.tsf",
76
+ "dataset": "m4_weekly",
77
+ "context_length": 65,
78
+ "prediction_length": 13,
79
+ "freq": "1W",
80
+ "seasonality": 52,
81
+ "url": "https://zenodo.org/records/4656522/files/m4_weekly_dataset.zip"
82
+ },
83
+ "m4_monthly": {
84
+ "filename": "m4_monthly_dataset.tsf",
85
+ "dataset": "m4_monthly",
86
+ "context_length": 15,
87
+ "prediction_length": 18,
88
+ "freq": "M",
89
+ "seasonality": 12,
90
+ "url": "https://zenodo.org/records/4656480/files/m4_monthly_dataset.zip"
91
+ },
92
+ "m4_quarterly": {
93
+ "filename": "m4_quarterly_dataset.tsf",
94
+ "dataset": "m4_quarterly",
95
+ "context_length": 5,
96
+ "prediction_length": 8,
97
+ "freq": "Q",
98
+ "seasonality": 4,
99
+ "url": "https://zenodo.org/records/4656410/files/m4_quarterly_dataset.zip"
100
+ },
101
+ "m4_yearly": {
102
+ "filename": "m4_yearly_dataset.tsf",
103
+ "dataset": "m4_yearly",
104
+ "context_length": 2,
105
+ "prediction_length": 6,
106
+ "freq": "1Y",
107
+ "seasonality": 1,
108
+ "url": "https://zenodo.org/records/4656379/files/m4_yearly_dataset.zip"
109
+ },
110
+ "tourism_monthly": {
111
+ "filename": "tourism_monthly_dataset.tsf",
112
+ "dataset": "tourism_monthly",
113
+ "context_length": 15,
114
+ "prediction_length": 24,
115
+ "freq": "M",
116
+ "seasonality": 12,
117
+ "url": "https://zenodo.org/records/4656096/files/tourism_monthly_dataset.zip"
118
+ },
119
+ "tourism_quarterly": {
120
+ "filename": "tourism_quarterly_dataset.tsf",
121
+ "dataset": "tourism_quarterly",
122
+ "context_length": 5,
123
+ "prediction_length": 8,
124
+ "freq": "Q",
125
+ "seasonality": 4,
126
+ "url": "https://zenodo.org/records/4656093/files/tourism_quarterly_dataset.zip"
127
+ },
128
+ "tourism_yearly": {
129
+ "filename": "tourism_yearly_dataset.tsf",
130
+ "dataset": "tourism_yearly",
131
+ "context_length": 2,
132
+ "prediction_length": 4,
133
+ "freq": "1Y",
134
+ "seasonality": 1,
135
+ "url": "https://zenodo.org/records/4656103/files/tourism_yearly_dataset.zip"
136
+ },
137
+ "cif_2016": {
138
+ "filename": "cif_2016_dataset.tsf",
139
+ "dataset": "cif_2016",
140
+ "context_length": 15,
141
+ "prediction_length": 12,
142
+ "freq": "M",
143
+ "seasonality": 12,
144
+ "url": "https://zenodo.org/records/4656042/files/cif_2016_dataset.zip"
145
+ },
146
+ "australian_electricity_demand": {
147
+ "filename": "australian_electricity_demand_dataset.tsf",
148
+ "dataset": "australian_electricity_demand",
149
+ "context_length": 420,
150
+ "prediction_length": 336,
151
+ "freq": "30min",
152
+ "seasonality": 48,
153
+ "url": "https://zenodo.org/records/4659727/files/australian_electricity_demand_dataset.zip"
154
+ },
155
+ "dominick": {
156
+ "filename": "dominick_dataset.tsf",
157
+ "dataset": "dominick",
158
+ "context_length": 10,
159
+ "prediction_length": 8,
160
+ "freq": "1W",
161
+ "seasonality": 52,
162
+ "url": "https://zenodo.org/records/4654802/files/dominick_dataset.zip"
163
+ },
164
+ "bitcoin": {
165
+ "filename": "bitcoin_dataset_without_missing_values.tsf",
166
+ "dataset": "bitcoin",
167
+ "context_length": 9,
168
+ "prediction_length": 30,
169
+ "freq": "1D",
170
+ "seasonality": 7,
171
+ "uri": "https://zenodo.org/records/5122101/files/bitcoin_dataset_without_missing_values.zip"
172
+ },
173
+ "pedestrian_counts": {
174
+ "filename": "pedestrian_counts_dataset.tsf",
175
+ "dataset": "pedestrian_counts",
176
+ "context_length": 210,
177
+ "prediction_length": 24,
178
+ "freq": "1H",
179
+ "seasonality": 24,
180
+ "url": "https://zenodo.org/records/4656626/files/pedestrian_counts_dataset.zip"
181
+ },
182
+ "vehicle_trips": {
183
+ "filename": "vehicle_trips_dataset_without_missing_values.tsf",
184
+ "dataset": "vehicle_trips",
185
+ "context_length": 9,
186
+ "prediction_length": 30,
187
+ "freq": "1D",
188
+ "seasonality": 7,
189
+ "url": "https://zenodo.org/records/5122537/files/vehicle_trips_dataset_without_missing_values.zip"
190
+ },
191
+ "kdd_cup": {
192
+ "filename": "kdd_cup_2018_dataset_without_missing_values.tsf",
193
+ "dataset": "kdd_cup",
194
+ "context_length": 210,
195
+ "prediction_length": 168,
196
+ "freq": "1H",
197
+ "seasonality": 24,
198
+ "url": "https://zenodo.org/records/4656756/files/kdd_cup_2018_dataset_without_missing_values.zip"
199
+ },
200
+ "weather": {
201
+ "filename": "weather_dataset.tsf",
202
+ "dataset": "weather",
203
+ "context_length": 9,
204
+ "prediction_length": 30,
205
+ "freq": "1D",
206
+ "seasonality": 7,
207
+ "url": "https://zenodo.org/records/4654822/files/weather_dataset.zip"
208
+ },
209
+ "nn5_daily": {
210
+ "filename": "nn5_daily_dataset_without_missing_values.tsf",
211
+ "dataset": "nn5_daily",
212
+ "context_length": 9,
213
+ "prediction_length": 56,
214
+ "freq": "1D",
215
+ "seasonality": 7,
216
+ "url": "https://zenodo.org/records/4656117/files/nn5_daily_dataset_without_missing_values.zip"
217
+ },
218
+ "nn5_weekly": {
219
+ "filename": "nn5_weekly_dataset.tsf",
220
+ "dataset": "nn5_weekly",
221
+ "context_length": 65,
222
+ "prediction_length": 8,
223
+ "freq": "1W",
224
+ "seasonality": 52,
225
+ "url": "https://zenodo.org/records/4656125/files/nn5_weekly_dataset.zip"
226
+ },
227
+ "kaggle_web_traffic": {
228
+ "filename": "kaggle_web_traffic_weekly_dataset.tsf",
229
+ "dataset": "kaggle_web_traffic",
230
+ "context_length": 10,
231
+ "prediction_length": 8,
232
+ "freq": "1W",
233
+ "seasonality": 52,
234
+ "url": "https://zenodo.org/records/4656664/files/kaggle_web_traffic_weekly_dataset.zip"
235
+ },
236
+ "solar_10_minutes": {
237
+ "filename": "solar_10_minutes_dataset.tsf",
238
+ "dataset": "solar_10_minutes",
239
+ "context_length": 50,
240
+ "prediction_length": 1008,
241
+ "freq": "10min",
242
+ "seasonality": 144,
243
+ "url": "https://zenodo.org/records/4656144/files/solar_10_minutes_dataset.zip"
244
+ },
245
+ "solar_weekly": {
246
+ "filename": "solar_weekly_dataset.tsf",
247
+ "dataset": "solar_weekly",
248
+ "context_length": 6,
249
+ "prediction_length": 5,
250
+ "freq": "1W",
251
+ "seasonality": 52,
252
+ "url": "https://zenodo.org/records/4656151/files/solar_weekly_dataset.zip"
253
+ },
254
+ "electricity_hourly": {
255
+ "filename": "electricity_hourly_dataset.tsf",
256
+ "dataset": "electricity_hourly",
257
+ "context_length": 30,
258
+ "prediction_length": 168,
259
+ "freq": "1H",
260
+ "seasonality": 24,
261
+ "url": "https://zenodo.org/records/4656140/files/electricity_hourly_dataset.zip"
262
+ },
263
+ "electricity_weekly": {
264
+ "filename": "electricity_weekly_dataset.tsf",
265
+ "dataset": "electricity_weekly",
266
+ "context_length": 65,
267
+ "prediction_length": 8,
268
+ "freq": "1W",
269
+ "seasonality": 52,
270
+ "url": "https://zenodo.org/records/4656141/files/electricity_weekly_dataset.zip"
271
+ },
272
+ "car_parts": {
273
+ "filename": "car_parts_dataset_without_missing_values.tsf",
274
+ "dataset": "car_parts",
275
+ "context_length": 15,
276
+ "prediction_length": 12,
277
+ "freq": "M",
278
+ "seasonality": 12,
279
+ "url": "https://zenodo.org/records/4656021/files/car_parts_dataset_without_missing_values.zip"
280
+ },
281
+ "fred_md": {
282
+ "filename": "fred_md_dataset.tsf",
283
+ "dataset": "fred_md",
284
+ "context_length": 15,
285
+ "prediction_length": 12,
286
+ "freq": "M",
287
+ "seasonality": 12,
288
+ "url": "https://zenodo.org/records/4654833/files/fred_md_dataset.zip"
289
+ },
290
+ "traffic_weekly": {
291
+ "filename": "traffic_weekly_dataset.tsf",
292
+ "dataset": "traffic_weekly",
293
+ "context_length": 65,
294
+ "prediction_length": 8,
295
+ "freq": "1W",
296
+ "seasonality": 52,
297
+ "url": "https://zenodo.org/records/4656135/files/traffic_weekly_dataset.zip"
298
+ },
299
+ "traffic_hourly": {
300
+ "filename": "traffic_hourly_dataset.tsf",
301
+ "dataset": "traffic_hourly",
302
+ "context_length": 30,
303
+ "prediction_length": 168,
304
+ "freq": "1H",
305
+ "seasonality": 24,
306
+ "url": "https://zenodo.org/records/4656132/files/traffic_hourly_dataset.zip"
307
+ },
308
+ "rideshare": {
309
+ "filename": "rideshare_dataset_without_missing_values.tsf",
310
+ "dataset": "rideshare",
311
+ "context_length": 210,
312
+ "prediction_length": 168,
313
+ "freq": "1H",
314
+ "seasonality": 24,
315
+ "url": "https://zenodo.org/records/5122232/files/rideshare_dataset_without_missing_values.zip"
316
+ },
317
+ "hospital": {
318
+ "filename": "hospital_dataset.tsf",
319
+ "dataset": "hospital",
320
+ "context_length": 15,
321
+ "prediction_length": 12,
322
+ "freq": "M",
323
+ "seasonality": 12,
324
+ "url": "https://zenodo.org/records/4656014/files/hospital_dataset.zip"
325
+ },
326
+ "covid_deaths": {
327
+ "filename": "covid_deaths_dataset.tsf",
328
+ "dataset": "covid_deaths",
329
+ "context_length": 9,
330
+ "prediction_length": 30,
331
+ "freq": "1D",
332
+ "seasonality": 7,
333
+ "url": "https://zenodo.org/records/4656009/files/covid_deaths_dataset.zip"
334
+ },
335
+ "temperature_rain": {
336
+ "filename": "temperature_rain_dataset_without_missing_values.tsf",
337
+ "dataset": "temperature_rain",
338
+ "context_length": 9,
339
+ "prediction_length": 30,
340
+ "freq": "1D",
341
+ "seasonality": 7,
342
+ "url": "https://zenodo.org/records/5129091/files/temperature_rain_dataset_without_missing_values.zip"
343
+ },
344
+ "sunspot": {
345
+ "filename": "sunspot_dataset_without_missing_values.tsf",
346
+ "dataset": "sunspot",
347
+ "context_length": 9,
348
+ "prediction_length": 30,
349
+ "freq": "1D",
350
+ "seasonality": 7,
351
+ "url": "https://zenodo.org/records/4654722/files/sunspot_dataset_without_missing_values.zip"
352
+ },
353
+ "saugeen_river_flow": {
354
+ "filename": "saugeenday_dataset.tsf",
355
+ "dataset": "saugeen_river_flow",
356
+ "context_length": 9,
357
+ "prediction_length": 30,
358
+ "freq": "1D",
359
+ "seasonality": 7,
360
+ "url": "https://zenodo.org/records/4656058/files/saugeenday_dataset.zip"
361
+ },
362
+ "us_births": {
363
+ "filename": "us_births_dataset.tsf",
364
+ "dataset": "us_births",
365
+ "context_length": 9,
366
+ "prediction_length": 30,
367
+ "freq": "1D",
368
+ "seasonality": 7,
369
+ "url": "https://zenodo.org/records/4656049/files/us_births_dataset.zip"
370
+ }
371
+ }