dsipts 1.1.20__tar.gz → 1.1.22__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.

Potentially problematic release.


This version of dsipts might be problematic. Click here for more details.

Files changed (96) hide show
  1. {dsipts-1.1.20 → dsipts-1.1.22}/LONG_DESCRIPTION.md +4 -0
  2. {dsipts-1.1.20 → dsipts-1.1.22}/PKG-INFO +6 -3
  3. {dsipts-1.1.20 → dsipts-1.1.22}/pyproject.toml +4 -4
  4. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_structure/data_structure.py +31 -18
  5. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/base_v2.py +4 -1
  6. dsipts-1.1.22/src/dsipts/version.py +1 -0
  7. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts.egg-info/PKG-INFO +6 -3
  8. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts.egg-info/requires.txt +1 -2
  9. dsipts-1.1.20/src/dsipts/version.py +0 -1
  10. {dsipts-1.1.20 → dsipts-1.1.22}/README.md +0 -0
  11. {dsipts-1.1.20 → dsipts-1.1.22}/setup.cfg +0 -0
  12. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/__init__.py +0 -0
  13. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_management/__init__.py +0 -0
  14. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_management/monash.py +0 -0
  15. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_management/public_datasets.py +0 -0
  16. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_structure/__init__.py +0 -0
  17. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_structure/modifiers.py +0 -0
  18. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/data_structure/utils.py +0 -0
  19. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Autoformer.py +0 -0
  20. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/CrossFormer.py +0 -0
  21. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/D3VAE.py +0 -0
  22. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Diffusion.py +0 -0
  23. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/DilatedConv.py +0 -0
  24. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/DilatedConvED.py +0 -0
  25. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Duet.py +0 -0
  26. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ITransformer.py +0 -0
  27. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Informer.py +0 -0
  28. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/LinearTS.py +0 -0
  29. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/PatchTST.py +0 -0
  30. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Persistent.py +0 -0
  31. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/RNN.py +0 -0
  32. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Samformer.py +0 -0
  33. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/Simple.py +0 -0
  34. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TFT.py +0 -0
  35. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TIDE.py +0 -0
  36. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TTM.py +0 -0
  37. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TimeKAN.py +0 -0
  38. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TimeXER.py +0 -0
  39. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/TimesNet.py +0 -0
  40. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/VQVAEA.py +0 -0
  41. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/VVA.py +0 -0
  42. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/__init__.py +0 -0
  43. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/autoformer/__init__.py +0 -0
  44. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/autoformer/layers.py +0 -0
  45. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/base.py +0 -0
  46. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/crossformer/__init__.py +0 -0
  47. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/crossformer/attn.py +0 -0
  48. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/crossformer/cross_decoder.py +0 -0
  49. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/crossformer/cross_embed.py +0 -0
  50. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/crossformer/cross_encoder.py +0 -0
  51. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/__init__.py +0 -0
  52. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/diffusion_process.py +0 -0
  53. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/embedding.py +0 -0
  54. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/encoder.py +0 -0
  55. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/model.py +0 -0
  56. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/neural_operations.py +0 -0
  57. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/resnet.py +0 -0
  58. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/d3vae/utils.py +0 -0
  59. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/duet/__init__.py +0 -0
  60. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/duet/layers.py +0 -0
  61. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/duet/masked.py +0 -0
  62. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/informer/__init__.py +0 -0
  63. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/informer/attn.py +0 -0
  64. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/informer/decoder.py +0 -0
  65. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/informer/embed.py +0 -0
  66. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/informer/encoder.py +0 -0
  67. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/itransformer/Embed.py +0 -0
  68. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/itransformer/SelfAttention_Family.py +0 -0
  69. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/itransformer/Transformer_EncDec.py +0 -0
  70. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/itransformer/__init__.py +0 -0
  71. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/patchtst/__init__.py +0 -0
  72. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/patchtst/layers.py +0 -0
  73. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/samformer/__init__.py +0 -0
  74. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/samformer/utils.py +0 -0
  75. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/tft/__init__.py +0 -0
  76. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/tft/sub_nn.py +0 -0
  77. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timekan/Layers.py +0 -0
  78. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timekan/__init__.py +0 -0
  79. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timesnet/Layers.py +0 -0
  80. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timesnet/__init__.py +0 -0
  81. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timexer/Layers.py +0 -0
  82. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/timexer/__init__.py +0 -0
  83. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ttm/__init__.py +0 -0
  84. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ttm/configuration_tinytimemixer.py +0 -0
  85. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ttm/consts.py +0 -0
  86. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ttm/modeling_tinytimemixer.py +0 -0
  87. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/ttm/utils.py +0 -0
  88. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/utils.py +0 -0
  89. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/vva/__init__.py +0 -0
  90. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/vva/minigpt.py +0 -0
  91. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/vva/vqvae.py +0 -0
  92. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/xlstm/__init__.py +0 -0
  93. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts/models/xlstm/xLSTM.py +0 -0
  94. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts.egg-info/SOURCES.txt +0 -0
  95. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts.egg-info/dependency_links.txt +0 -0
  96. {dsipts-1.1.20 → dsipts-1.1.22}/src/dsipts.egg-info/top_level.txt +0 -0
@@ -398,6 +398,10 @@ and then open the url (http://127.0.0.1:43800)[http://127.0.0.1:43800]. It will
398
398
 
399
399
 
400
400
 
401
+ ## 1.1.21-22 (2026-02-02)
402
+ - fixing lightening version support (not yet solved for version >2.6)
403
+ - removed aim (compatibility)
404
+
401
405
  ## 1.1.20 (2026-02-01)
402
406
  - automation of tags, version etc using only the makefile
403
407
  - update newer version of python
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsipts
3
- Version: 1.1.20
3
+ Version: 1.1.22
4
4
  Summary: Unified library for timeseries modelling
5
5
  Author-email: Andrea Gobbi <agobbi@fbk.eu>
6
6
  Project-URL: Homepage, https://github.com/DSIP-FBK/DSIPTS
7
7
  Project-URL: Docs, https://dsip-fbk.github.io/DSIPTS/
8
8
  Requires-Python: >=3.12
9
9
  Description-Content-Type: text/markdown
10
- Requires-Dist: aim
11
10
  Requires-Dist: beautifulsoup4==4.12.0
12
11
  Requires-Dist: bumpver>=2025.1131
13
12
  Requires-Dist: einops>=0.8.1
@@ -18,7 +17,7 @@ Requires-Dist: hydra-joblib-launcher>=1.2.0
18
17
  Requires-Dist: hydra-optuna-sweeper>=1.2.0
19
18
  Requires-Dist: hydra-submitit-launcher>=1.2.0
20
19
  Requires-Dist: ipykernel>=6.30.1
21
- Requires-Dist: lightning>=2.5.4
20
+ Requires-Dist: lightning==2.5.5
22
21
  Requires-Dist: matplotlib>=3.10.6
23
22
  Requires-Dist: nbformat>=5.10.4
24
23
  Requires-Dist: numba>=0.61.2
@@ -431,6 +430,10 @@ and then open the url (http://127.0.0.1:43800)[http://127.0.0.1:43800]. It will
431
430
 
432
431
 
433
432
 
433
+ ## 1.1.21-22 (2026-02-02)
434
+ - fixing lightening version support (not yet solved for version >2.6)
435
+ - removed aim (compatibility)
436
+
434
437
  ## 1.1.20 (2026-02-01)
435
438
  - automation of tags, version etc using only the makefile
436
439
  - update newer version of python
@@ -1,12 +1,12 @@
1
1
 
2
2
  [project]
3
3
  name = "dsipts"
4
- version = "1.1.20"
4
+ version = "1.1.22"
5
5
  description = "Unified library for timeseries modelling"
6
6
  readme = { file = "LONG_DESCRIPTION.md", content-type = "text/markdown" }
7
7
  requires-python = ">=3.12"
8
8
  dependencies = [
9
- "aim",
9
+ #"aim",
10
10
  "beautifulsoup4==4.12.0",
11
11
  "bumpver>=2025.1131",
12
12
  "einops>=0.8.1",
@@ -17,7 +17,7 @@ dependencies = [
17
17
  "hydra-optuna-sweeper>=1.2.0",
18
18
  "hydra-submitit-launcher>=1.2.0",
19
19
  "ipykernel>=6.30.1",
20
- "lightning>=2.5.4",
20
+ "lightning==2.5.5",
21
21
  "matplotlib>=3.10.6",
22
22
  "nbformat>=5.10.4",
23
23
  "numba>=0.61.2",
@@ -40,7 +40,7 @@ Homepage = "https://github.com/DSIP-FBK/DSIPTS"
40
40
  Docs = "https://dsip-fbk.github.io/DSIPTS/"
41
41
 
42
42
  [tool.bumpver]
43
- current_version = "1.1.20"
43
+ current_version = "1.1.22"
44
44
  version_pattern = "MAJOR.MINOR.PATCH"
45
45
  commit = false
46
46
  tag = false
@@ -32,7 +32,10 @@ from datetime import datetime
32
32
  from ..models.utils import weight_init_zeros,weight_init
33
33
  import logging
34
34
  from .modifiers import *
35
- from aim.pytorch_lightning import AimLogger
35
+ disable_aim = True
36
+
37
+ if disable_aim is False:
38
+ from aim.pytorch_lightning import AimLogger
36
39
  import time
37
40
  debug_prediction = False
38
41
  class DummyScaler():
@@ -774,6 +777,7 @@ class TimeSeries():
774
777
  train_dl = DataLoader(train, batch_size = batch_size , shuffle=True,drop_last=True,num_workers=num_workers,persistent_workers=persistent_workers)
775
778
  valid_dl = DataLoader(validation, batch_size = batch_size , shuffle=False,drop_last=True,num_workers=num_workers,persistent_workers=persistent_workers)
776
779
 
780
+ beauty_string(f'train:{len(train_dl)}, validation:{len(valid_dl)}','section',self.verbose)
777
781
 
778
782
  if debug_prediction:
779
783
  dl = DataLoader(test, batch_size = batch_size , shuffle=False,drop_last=True,num_workers=num_workers,persistent_workers=persistent_workers)
@@ -801,11 +805,8 @@ class TimeSeries():
801
805
 
802
806
 
803
807
  #logger = CSVLogger("logs", name=dirpath)
804
- aim_logger = AimLogger(
805
- experiment=self.name,
806
- train_metric_prefix='train_',
807
- val_metric_prefix='val_',
808
- )
808
+ beauty_string(f'Init aim','section',self.verbose)
809
+
809
810
 
810
811
  #https://stackoverflow.com/questions/49201236/check-the-total-number-of-parameters-in-a-pytorch-model
811
812
  n_params = sum(dict((p.data_ptr(), p.numel()) for p in self.model.parameters()).values())
@@ -819,17 +820,25 @@ class TimeSeries():
819
820
  buffer_size += buffer.nelement() * buffer.element_size()
820
821
 
821
822
  size_all_mb = (param_size + buffer_size) / 1024**2
822
- #aim_logger.experiment.track(self.model.name,name='model_name')
823
-
824
- aim_logger.experiment.track(n_params,name='N-parameters')
825
- aim_logger.experiment.track(size_all_mb,name='dim-model-MB')
826
- aim_logger.experiment.track(len(train_dl.dataset),name='len-train')
827
- aim_logger.experiment.track(len(valid_dl.dataset),name='len-valid')
828
- #aim_logger.experiment.track(self.config,name=None)
829
823
  tmp = self.config.copy()
830
824
  tmp['model_name'] = self.model.name
831
- aim_logger._run['hyperparameters'] = tmp
832
825
 
826
+ #aim_logger.experiment.track(self.model.name,name='model_name')
827
+ if disable_aim is False:
828
+ aim_logger = AimLogger(
829
+ experiment=self.name,
830
+ train_metric_prefix='train_',
831
+ val_metric_prefix='val_',
832
+ )
833
+ aim_logger.experiment.track(n_params,name='N-parameters')
834
+ aim_logger.experiment.track(size_all_mb,name='dim-model-MB')
835
+ aim_logger.experiment.track(len(train_dl.dataset),name='len-train')
836
+ aim_logger.experiment.track(len(valid_dl.dataset),name='len-valid')
837
+ #aim_logger.experiment.track(self.config,name=None)
838
+
839
+ aim_logger._run['hyperparameters'] = tmp
840
+ else:
841
+ aim_logger = None
833
842
  mc = MetricsCallback(dirpath)
834
843
  ## TODO se ci sono 2 o piu gpu MetricsCallback non funziona (secondo me fa una istanza per ogni dataparallel che lancia e poi non riesce a recuperare info)
835
844
  pl.seed_everything(seed, workers=True)
@@ -884,7 +893,8 @@ class TimeSeries():
884
893
  tot_seconds = time.time()
885
894
 
886
895
 
887
-
896
+ beauty_string(f'tuning lr','section',self.verbose)
897
+
888
898
 
889
899
  if auto_lr_find and (weight_exists is False):
890
900
  try:
@@ -902,7 +912,8 @@ class TimeSeries():
902
912
  self.model.optim_config['lr'] = lr_finder.suggestion() ## we are using it as optim key
903
913
  except Exception as e:
904
914
  beauty_string(f'There is a problem with the finding LR routine {e}','section',self.verbose)
905
-
915
+ beauty_string(f'Start fitting','section',self.verbose)
916
+
906
917
  if OLD_PL:
907
918
  if weight_exists:
908
919
  trainer.fit(self.model, train_dl,valid_dl,ckpt_path=os.path.join(dirpath,'last.ckpt'))
@@ -994,8 +1005,10 @@ class TimeSeries():
994
1005
 
995
1006
  beauty_string('END of the training process','block',self.verbose)
996
1007
 
997
- aim_logger.experiment.track((time.time()-tot_seconds),name='seconds-training')
998
- aim_logger.experiment.track(val_loss,name='val-loss-end-train')
1008
+
1009
+ if disable_aim is False:
1010
+ aim_logger.experiment.track((time.time()-tot_seconds),name='seconds-training')
1011
+ aim_logger.experiment.track(val_loss,name='val-loss-end-train')
999
1012
 
1000
1013
 
1001
1014
 
@@ -360,7 +360,10 @@ class Base(pl.LightningModule):
360
360
  ax.plot(pred,'o-',label='pred')
361
361
  ax.legend()
362
362
  ax.set_title(f'Channel {i} first element first batch validation {int(100*self.count_epoch/self.trainer.max_epochs)}%')
363
- self.logger.experiment.track(Image(fig), name='cm_training_end')
363
+ try:
364
+ self.logger.experiment.track(Image(fig), name='cm_training_end')
365
+ except:
366
+ pass ##no aim probably
364
367
  #self.log(f"example_{i}", np.stack([real, pred]).T,sync_dist=True)
365
368
  plt.close(fig)
366
369
 
@@ -0,0 +1 @@
1
+ __version__ = "1.1.22"
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsipts
3
- Version: 1.1.20
3
+ Version: 1.1.22
4
4
  Summary: Unified library for timeseries modelling
5
5
  Author-email: Andrea Gobbi <agobbi@fbk.eu>
6
6
  Project-URL: Homepage, https://github.com/DSIP-FBK/DSIPTS
7
7
  Project-URL: Docs, https://dsip-fbk.github.io/DSIPTS/
8
8
  Requires-Python: >=3.12
9
9
  Description-Content-Type: text/markdown
10
- Requires-Dist: aim
11
10
  Requires-Dist: beautifulsoup4==4.12.0
12
11
  Requires-Dist: bumpver>=2025.1131
13
12
  Requires-Dist: einops>=0.8.1
@@ -18,7 +17,7 @@ Requires-Dist: hydra-joblib-launcher>=1.2.0
18
17
  Requires-Dist: hydra-optuna-sweeper>=1.2.0
19
18
  Requires-Dist: hydra-submitit-launcher>=1.2.0
20
19
  Requires-Dist: ipykernel>=6.30.1
21
- Requires-Dist: lightning>=2.5.4
20
+ Requires-Dist: lightning==2.5.5
22
21
  Requires-Dist: matplotlib>=3.10.6
23
22
  Requires-Dist: nbformat>=5.10.4
24
23
  Requires-Dist: numba>=0.61.2
@@ -431,6 +430,10 @@ and then open the url (http://127.0.0.1:43800)[http://127.0.0.1:43800]. It will
431
430
 
432
431
 
433
432
 
433
+ ## 1.1.21-22 (2026-02-02)
434
+ - fixing lightening version support (not yet solved for version >2.6)
435
+ - removed aim (compatibility)
436
+
434
437
  ## 1.1.20 (2026-02-01)
435
438
  - automation of tags, version etc using only the makefile
436
439
  - update newer version of python
@@ -1,4 +1,3 @@
1
- aim
2
1
  beautifulsoup4==4.12.0
3
2
  bumpver>=2025.1131
4
3
  einops>=0.8.1
@@ -9,7 +8,7 @@ hydra-joblib-launcher>=1.2.0
9
8
  hydra-optuna-sweeper>=1.2.0
10
9
  hydra-submitit-launcher>=1.2.0
11
10
  ipykernel>=6.30.1
12
- lightning>=2.5.4
11
+ lightning==2.5.5
13
12
  matplotlib>=3.10.6
14
13
  nbformat>=5.10.4
15
14
  numba>=0.61.2
@@ -1 +0,0 @@
1
- __version__ = "1.1.20"
File without changes
File without changes
File without changes