Commit Graph

394 Commits

Author SHA1 Message Date
Kashif Rasul bfbb223cc0 fix install requires 2021-02-15 13:28:12 +01:00
Kashif Rasul 86c89c4f58 disable wandb by default 2021-02-15 11:53:10 +01:00
Kashif Rasul 908945b422 Time grad (#28)
* initial uncond image gaussian diff

TODO make it work for multivariate vector
add conditioning

* remove tqdm

* initial unet

TODO convert to 1d conv

* initial time grad estimator

* initial training

* initial sampling

* added huber loss

* use SinusoidalPosEmb from wavegrad

* use time diff network

* fix reshaping

* fix missing property

* clip false

* updated api

* added padding

* added circular padding

* use linear schedule

* added more schedules

* added back cosine schedule

* Delete Solar-time-grad.ipynb

* updated estimator API

* not tuple

* renamed to EpsilonTheta

* removed

* added example notebook

* removed some output

* fix requirements

* formatting

* added more options to time-grad

* added article
2021-02-11 10:09:25 +01:00
Kashif Rasul 512b968b13 formatting 2021-02-10 18:20:05 +01:00
Kashif Rasul e55dacf644 use dep link 2021-02-10 18:17:06 +01:00
Kashif Rasul 4ab44cbe80 use master 2021-02-10 18:00:18 +01:00
Kashif Rasul 23b2377e7a use https 2021-02-10 17:56:08 +01:00
Kashif Rasul 85149b57af fixed typo 2021-02-10 17:46:38 +01:00
Kashif Rasul a353a6d5a7 use master for now 2021-02-10 17:43:04 +01:00
Kashif Rasul e017536973 update README 2021-02-08 15:13:40 +01:00
Kashif Rasul 88b6709b47 Gluon master (#30)
* Estimator needs an create_instance_splitter now

* updated estimators and tests

* fix test

* validated

* not a tuple
2021-02-07 18:11:16 +01:00
Kashif Rasul ea9b2b7df5 Gluon master (#29)
* Estimator needs an create_instance_splitter now

* updated estimators and tests

* fix test

* validated
2021-02-07 17:43:07 +01:00
Dr. Kashif Rasul d5cef439af Merge branch 'gluon-ts' 2021-01-04 12:32:14 +01:00
Dr. Kashif Rasul 315301d922 update the version to 0.3.0 2021-01-04 12:20:46 +01:00
Dr. Kashif Rasul e656337f17 trying adam 2021-01-04 11:38:34 +01:00
Dr. Kashif Rasul 0988331368 fix api 2021-01-04 10:05:16 +01:00
Dr. Kashif Rasul dee1478463 stick with one cycle for now 2021-01-03 21:51:27 +01:00
Dr. Kashif Rasul 4a90f84c16 try one cycle lr 2021-01-03 21:36:47 +01:00
Dr. Kashif Rasul a025fa77d7 update schedular after each epoch 2021-01-03 21:21:44 +01:00
Dr. Kashif Rasul 827b496240 added schedular and gradient clipping 2021-01-03 21:11:41 +01:00
Dr. Kashif Rasul 637fa6d2ab typos 2021-01-02 11:02:18 +01:00
Dr. Kashif Rasul eeeb96335a updated tempflow 2021-01-02 10:59:50 +01:00
Dr. Kashif Rasul e79166f444 updated LSTNet 2021-01-02 10:48:45 +01:00
Dr. Kashif Rasul 4fc70dc7b5 updated nbeats 2021-01-01 22:33:40 +01:00
Dr. Kashif Rasul c7e603be3e fix deepvar test 2021-01-01 13:25:46 +01:00
Dr. Kashif Rasul d5577a2c9e fix some tests 2020-12-30 19:17:54 +01:00
Edrin Basha 1be0a7b305 add cross platform training and inference (#27)
Adapt model deserialization to support between cpu training and gpu inference and viceversa
2020-12-29 17:06:13 +01:00
Kashif Rasul a9ea61153f removed all transforms 2020-12-29 16:16:31 +01:00
Kashif Rasul 25dcfe9f1a simple feedforward 2020-12-29 16:15:02 +01:00
Kashif Rasul 45126c2046 updated transformer model 2020-12-28 18:44:18 +01:00
Kashif Rasul c32d362c7b fixed deepvar 2020-12-28 13:48:15 +01:00
Kashif Rasul 46c76410dc added back fourier date feature 2020-12-28 12:26:31 +01:00
Kashif Rasul 39d58d688c added back fourier date feature 2020-12-28 12:25:49 +01:00
Dr. Kashif Rasul 1ac4bf70d9 added wandb 2020-12-23 16:15:50 +01:00
Dr. Kashif Rasul 7a3f5d2961 fix api 2020-12-23 12:42:57 +01:00
Dr. Kashif Rasul b9679a8f7e fixed trainer api 2020-12-23 12:20:26 +01:00
Kashif Rasul 883da58f14 updated README 2020-12-23 11:49:55 +01:00
Dr. Kashif Rasul 20bc7d4e04 return iter 2020-12-19 12:09:22 +01:00
Dr. Kashif Rasul bf0a199191 return __iter__ 2020-12-18 13:35:45 +01:00
Dr. Kashif Rasul 98201c223b use class 2020-12-18 13:25:24 +01:00
Dr. Kashif Rasul 2929678305 fix import 2020-12-18 13:06:51 +01:00
Dr. Kashif Rasul 2726bc94ec added back TransformedIterableDataset 2020-12-18 13:02:26 +01:00
Dr. Kashif Rasul b072ab227b initial gluonts dependency 2020-12-17 17:04:56 +01:00
Dr. Kashif Rasul ecc31f6082 upstream fix for transform chain 2020-11-20 09:11:17 +01:00
Kashif Rasul af9d809730 fix pandas dep. warning and version 2020-11-05 14:02:03 +01:00
Edrin Basha 50683efdc6 Update DeepARPredictionNetwork (#25)
Set default value of num_parallel_samples to 100
2020-10-27 12:37:11 +01:00
Edrin Basha 2b957e89e3 FourierDateFeatures fix (#24)
FourierDateFeatures fix
2020-10-27 09:43:38 +01:00
Dr. Kashif Rasul 149a35a7f8 Revert "add gate_logits to zero inflated"
This reverts commit 7415a15256.
2020-10-21 16:44:44 +02:00
Dr. Kashif Rasul 7415a15256 add gate_logits to zero inflated 2020-10-19 16:04:43 +02:00
Adele Gouttes e3b8de5da9 ASF-3099 Implement IQN in pytorch-ts (#21)
* ASF-3099 Bootstrap: write backbones of test, distribution and distribution output

* ASF-3099 First proposition for IQN distribution output
Mostly for backbones, the functions themselves are far from final

* ASF-3099 Add sample() to ImplicitQuantile and its test

* ASF-3099 Test prediction, sampling and convergence logic for IQN

* ASF-3099 IQN module takes the data input and taus in

* ASF-3099 Add torch.no_grad in the sampling

* ASF-3099 Add tests on quantiles (10%, 90%), for both normal and uniform

* ASF-3099 Improve feeting of quantile function:
Increase depth of quantile network, change activation to PReLU

* ASF-3099 Fix distribution attributes and module imports

* ASF-3099 Fix implicit quantile init

* ASF-3099 Add integration test with deepAR

* ASF-3099 Add a transformed distribution

* ASF-3099 Fix init of ImplicitQuantile

* ASF-3099 Make iqn distribution compatible with forecast-length>1

* ASF-3099 Fix device for new tensors

* ASF-3099 Fix device for new tensors: device is not a function...

* ASF-3099 Fix output size of the network

* ASF-3099 Define torch network in the DistributionOutput only
Distribution takes only the predicted quantiles, or the parameters
of the trained model to define a new quantile function

* ASF-3099 Test: create quantile function on compatible device
Attempt: class method might force the module to be created only once,
not necessarily with the right device

* ASF-3099 Second attempt: create quantile function on compatible device

* ASF-3099 Sampling returns a tensor of the correct shape
Shape is (num_sample, batch_size, forecast_length)

* ASF-3099 Handle empty sample shapes

* ASF-3099 Fix tau device at inference time

* ASF-3099 Fix device of the layer

* ASF-3099 Handle empty sample shapes (fix output)

* ASF-3099 Last activation of quantile layer should be removed
That way, embedded quantiles are symetrically distributed around the 0.5
quantile. Otherwise we distort part of their distribution before applying
it to the forecasted quantities

* ASF-3099 (test) Add a bunch of layers

* ASF-3099 [test] reduce the embedding size of tau

* ASF-3099 [test] Use same IQN version as in sales forecaster

* ASF-3099 Put original parameters back

* use @torch.no_grad() decorator

* ASF-3099 [test, to be reverted] Remove - in front of the loss

* ASF-3099 Revert former commit: put - back in the loss

* ASF-3099 [fix] Add log_prob method in piecewise linear

* ASF-3099 [test] ImplicitQuantileModule should be instanciated only once
Current problem: it's instanciated once at training and once at prediction,
as if the model was never trained. Thus it is now defined as a
global variable. However, this can only be a temporary hack: it means that
only one model can be trained during a session.

* ASF-3099 [test] ImplicitQuantileModule should be instanciated only once
Current problem: it's instanciated once at training and once at prediction,
as if the model was never trained.
However here, if the same model is retrained in the same session,
the module is not reset.

* ASF-3099 Add notebooks for experiments

* ASF-3099 [test] Move module to the distribution

* ASF-3099 Class method for args_proj

* ASF-3099 Clean up

* ASF-3099 More clean up

* ASF-3099 Define options for domain of preditected quantiles
Predicted quantiles can be either positive, either real

* ASF-3099 Set quantile_arg_proj in the init of the distribution output
Before it was instanciated once per python session, thus when retraining
the same models, the previously trained module was used, and not a fresh
one

* ASF-3099 Add test on number of instantiation of the quantile_arg_proj

* ASF-3099 Add an example notebook

* ASF-3099 Remove some notebooks

* ASF-3099 Remove diff vs master

Co-authored-by: Kashif Rasul <kashif.rasul@zalando.de>
Co-authored-by: Mateusz Koren <mateusz.koren@zalando.de>
Co-authored-by: Adele Gouttes <agouttes@bm1-lxslurmctl01.corp.ad.zalando.net>
2020-10-01 15:52:04 +02:00