fABBA 1.2.2__tar.gz → 1.2.3__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.
- {fABBA-1.2.2 → fABBA-1.2.3}/PKG-INFO +1 -1
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/__init__.py +1 -1
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/jabba.py +25 -1
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA.egg-info/PKG-INFO +1 -1
- {fABBA-1.2.2 → fABBA-1.2.3}/setup.py +1 -1
- {fABBA-1.2.2 → fABBA-1.2.3}/LICENSE +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/README.rst +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/chainApproximation.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/digitization.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/__init__.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/chainApproximation_c.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/chainApproximation_cm.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/fabba_agg_c.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/fabba_agg_cm.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/fabba_agg_cm_win.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/extmod/inverse_tc.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/fabba.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/fabba_agg.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/inverse_t.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/__init__.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/agg.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/aggmem.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/aggwin.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/comp.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/compmem.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/AtrialFibrillation_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/AtrialFibrillation_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/BasicMotions_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/BasicMotions_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/CharacterTrajectories_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/CharacterTrajectories_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/Epilepsy_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/Epilepsy_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/JapaneseVowels_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/JapaneseVowels_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/LSST_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/LSST_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/NATOPS_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/NATOPS_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/UWaveGestureLibrary_TEST.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/UWaveGestureLibrary_TRAIN.arff +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/beef_test.npy +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/data/beef_train.npy +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/fkmns.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/inverset.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/inversetc.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/jabba/preprocessing.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/load_datasets.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/separate/__init__.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/separate/aggregation.py +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/separate/aggregation_c.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA/separate/aggregation_cm.pyx +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA.egg-info/SOURCES.txt +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA.egg-info/dependency_links.txt +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA.egg-info/requires.txt +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/fABBA.egg-info/top_level.txt +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/pyproject.toml +0 -0
- {fABBA-1.2.2 → fABBA-1.2.3}/setup.cfg +0 -0
|
@@ -10,7 +10,7 @@ except (ModuleNotFoundError, ValueError):
|
|
|
10
10
|
from .separate.aggregation import aggregate
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
__version__ = '1.2.
|
|
13
|
+
__version__ = '1.2.3'
|
|
14
14
|
from .load_datasets import load_images, loadData
|
|
15
15
|
from .fabba import (image_compress, image_decompress, ABBAbase, ABBA,
|
|
16
16
|
get_patches, patched_reconstruction, fABBA,
|
|
@@ -517,8 +517,23 @@ class JABBA(object):
|
|
|
517
517
|
if series.dtype != 'float64':
|
|
518
518
|
series = series.astype('float64')
|
|
519
519
|
|
|
520
|
+
if isinstance(series, np.ndarray):
|
|
521
|
+
if len(series.shape) == 1:
|
|
522
|
+
uni_dim = True
|
|
523
|
+
else:
|
|
524
|
+
uni_dim = False
|
|
525
|
+
|
|
526
|
+
elif isinstance(series, list):
|
|
527
|
+
if not isinstance(series[0], list):
|
|
528
|
+
uni_dim = True
|
|
529
|
+
else:
|
|
530
|
+
uni_dim = False
|
|
531
|
+
else:
|
|
532
|
+
raise ValueError('Please enter time series with correct shape.')
|
|
533
|
+
|
|
520
534
|
n_jobs = self.n_jobs_init(n_jobs)
|
|
521
|
-
|
|
535
|
+
|
|
536
|
+
if uni_dim:
|
|
522
537
|
# Partition time series for parallelism (for n_jobs > 1 or = -1) if it is univarite
|
|
523
538
|
self.return_series_univariate = True # means the series is univariate,
|
|
524
539
|
# so the reconstruction can automatically
|
|
@@ -530,6 +545,15 @@ class JABBA(object):
|
|
|
530
545
|
else:
|
|
531
546
|
self.return_series_univariate = False
|
|
532
547
|
|
|
548
|
+
if self.recap_shape is not None:
|
|
549
|
+
if not isinstance(series, np.ndarray):
|
|
550
|
+
series = np.asarray(series)
|
|
551
|
+
|
|
552
|
+
if series.shape != self.recap_shape:
|
|
553
|
+
raise ValueError('Please enter the input with consistent dimensions.')
|
|
554
|
+
|
|
555
|
+
series = series.reshape(-1, int(np.prod(self.recap_shape[1:])))
|
|
556
|
+
|
|
533
557
|
string_sequences = list()
|
|
534
558
|
start_set = list()
|
|
535
559
|
if n_jobs != 1:
|
|
@@ -26,7 +26,7 @@ class CustomBuildExtCommand(build_ext):
|
|
|
26
26
|
|
|
27
27
|
setup_args = {'name':"fABBA",
|
|
28
28
|
'packages':setuptools.find_packages(),
|
|
29
|
-
'version':"1.2.
|
|
29
|
+
'version':"1.2.3",
|
|
30
30
|
'cmdclass': {'build_ext': CustomBuildExtCommand},
|
|
31
31
|
'install_requires':["numpy>=1.3.0", "scipy>=0.7.0",
|
|
32
32
|
"requests", "pandas",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|