eegdash 0.2.1.dev178237806__tar.gz → 0.3.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.

Potentially problematic release.


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

Files changed (40) hide show
  1. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/PKG-INFO +13 -2
  2. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/__init__.py +1 -1
  3. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/api.py +0 -2
  4. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/data_utils.py +5 -7
  5. eegdash-0.3.0/eegdash/features/__init__.py +148 -0
  6. eegdash-0.3.0/eegdash/features/feature_bank/__init__.py +110 -0
  7. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/serialization.py +1 -4
  8. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/preprocessing.py +1 -3
  9. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash.egg-info/PKG-INFO +13 -2
  10. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash.egg-info/requires.txt +12 -1
  11. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/pyproject.toml +15 -3
  12. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/tests/test_correctness.py +5 -0
  13. eegdash-0.2.1.dev178237806/eegdash/features/__init__.py +0 -53
  14. eegdash-0.2.1.dev178237806/eegdash/features/feature_bank/__init__.py +0 -6
  15. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/LICENSE +0 -0
  16. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/README.md +0 -0
  17. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/data_config.py +0 -0
  18. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/dataset.py +0 -0
  19. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/datasets.py +0 -0
  20. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/decorators.py +0 -0
  21. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/extractors.py +0 -0
  22. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/complexity.py +0 -0
  23. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/connectivity.py +0 -0
  24. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/csp.py +0 -0
  25. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/dimensionality.py +0 -0
  26. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/signal.py +0 -0
  27. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/spectral.py +0 -0
  28. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/feature_bank/utils.py +0 -0
  29. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/inspect.py +0 -0
  30. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/features/utils.py +0 -0
  31. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/mongodb.py +0 -0
  32. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash/utils.py +0 -0
  33. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash.egg-info/SOURCES.txt +0 -0
  34. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash.egg-info/dependency_links.txt +0 -0
  35. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/eegdash.egg-info/top_level.txt +0 -0
  36. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/setup.cfg +0 -0
  37. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/tests/test_dataset.py +0 -0
  38. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/tests/test_eegdash.py +0 -0
  39. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/tests/test_init.py +0 -0
  40. {eegdash-0.2.1.dev178237806 → eegdash-0.3.0}/tests/test_mongo_connection.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eegdash
3
- Version: 0.2.1.dev178237806
3
+ Version: 0.3.0
4
4
  Summary: EEG data for machine learning
5
5
  Author-email: Young Truong <dt.young112@gmail.com>, Arnaud Delorme <adelorme@gmail.com>, Bruno Aristimunha <b.aristimunha@gmail.com>
6
6
  License: GNU General Public License
@@ -68,19 +68,30 @@ Provides-Extra: dev
68
68
  Requires-Dist: pre-commit; extra == "dev"
69
69
  Provides-Extra: docs
70
70
  Requires-Dist: sphinx; extra == "docs"
71
+ Requires-Dist: sphinx_design; extra == "docs"
71
72
  Requires-Dist: sphinx_gallery; extra == "docs"
72
73
  Requires-Dist: sphinx_rtd_theme; extra == "docs"
74
+ Requires-Dist: pydata-sphinx-theme; extra == "docs"
73
75
  Requires-Dist: numpydoc; extra == "docs"
76
+ Requires-Dist: memory_profiler; extra == "docs"
77
+ Requires-Dist: ipython; extra == "docs"
78
+ Requires-Dist: lightgbm; extra == "docs"
74
79
  Provides-Extra: all
80
+ Requires-Dist: pre-commit; extra == "all"
75
81
  Requires-Dist: pytest; extra == "all"
76
82
  Requires-Dist: pytest-cov; extra == "all"
77
83
  Requires-Dist: codecov; extra == "all"
78
84
  Requires-Dist: pytest_cases; extra == "all"
79
- Requires-Dist: pre-commit; extra == "all"
85
+ Requires-Dist: pytest-benchmark; extra == "all"
80
86
  Requires-Dist: sphinx; extra == "all"
87
+ Requires-Dist: sphinx_design; extra == "all"
81
88
  Requires-Dist: sphinx_gallery; extra == "all"
82
89
  Requires-Dist: sphinx_rtd_theme; extra == "all"
90
+ Requires-Dist: pydata-sphinx-theme; extra == "all"
83
91
  Requires-Dist: numpydoc; extra == "all"
92
+ Requires-Dist: memory_profiler; extra == "all"
93
+ Requires-Dist: ipython; extra == "all"
94
+ Requires-Dist: lightgbm; extra == "all"
84
95
  Dynamic: license-file
85
96
 
86
97
  # EEG-Dash
@@ -5,4 +5,4 @@ from .utils import __init__mongo_client
5
5
  __init__mongo_client()
6
6
 
7
7
  __all__ = ["EEGDash", "EEGDashDataset", "EEGChallengeDataset"]
8
- __version__ = "0.2.1.dev178237806"
8
+ __version__ = "0.3.0"
@@ -34,8 +34,6 @@ class EEGDash:
34
34
 
35
35
  """
36
36
 
37
- AWS_BUCKET = "s3://openneuro.org"
38
-
39
37
  def __init__(self, *, is_public: bool = True, is_staging: bool = False) -> None:
40
38
  """Create new instance of the EEGDash Database client.
41
39
 
@@ -14,9 +14,7 @@ from bids import BIDSLayout
14
14
  from joblib import Parallel, delayed
15
15
  from mne._fiff.utils import _read_segments_file
16
16
  from mne.io import BaseRaw
17
- from mne_bids import (
18
- BIDSPath,
19
- )
17
+ from mne_bids import BIDSPath
20
18
 
21
19
  from braindecode.datasets import BaseDataset
22
20
 
@@ -30,7 +28,7 @@ class EEGDashBaseDataset(BaseDataset):
30
28
  conjunction with the preprocessing and training pipelines of braindecode.
31
29
  """
32
30
 
33
- AWS_BUCKET = "s3://openneuro.org"
31
+ _AWS_BUCKET = "s3://openneuro.org"
34
32
 
35
33
  def __init__(
36
34
  self,
@@ -64,7 +62,7 @@ class EEGDashBaseDataset(BaseDataset):
64
62
  suffix="eeg",
65
63
  **bids_kwargs,
66
64
  )
67
- self.s3_bucket = s3_bucket if s3_bucket else self.AWS_BUCKET
65
+ self.s3_bucket = s3_bucket if s3_bucket else self._AWS_BUCKET
68
66
  self.s3file = self.get_s3path(record["bidspath"])
69
67
  self.filecache = self.cache_dir / record["bidspath"]
70
68
  self.bids_dependencies = record["bidsdependencies"]
@@ -176,7 +174,7 @@ class EEGDashBaseRaw(BaseRaw):
176
174
 
177
175
  """
178
176
 
179
- AWS_BUCKET = "s3://openneuro.org"
177
+ _AWS_BUCKET = "s3://openneuro.org"
180
178
 
181
179
  def __init__(
182
180
  self,
@@ -218,7 +216,7 @@ class EEGDashBaseRaw(BaseRaw):
218
216
  )
219
217
 
220
218
  def get_s3path(self, filepath):
221
- return f"{self.AWS_BUCKET}/{filepath}"
219
+ return f"{self._AWS_BUCKET}/{filepath}"
222
220
 
223
221
  def _download_s3(self):
224
222
  self.filecache.parent.mkdir(parents=True, exist_ok=True)
@@ -0,0 +1,148 @@
1
+ from .datasets import FeaturesConcatDataset, FeaturesDataset
2
+ from .decorators import (
3
+ FeatureKind,
4
+ FeaturePredecessor,
5
+ bivariate_feature,
6
+ multivariate_feature,
7
+ univariate_feature,
8
+ )
9
+ from .extractors import (
10
+ BivariateFeature,
11
+ DirectedBivariateFeature,
12
+ FeatureExtractor,
13
+ MultivariateFeature,
14
+ TrainableFeature,
15
+ UnivariateFeature,
16
+ )
17
+ from .feature_bank import ( # Complexity; Connectivity; CSP; Dimensionality; Signal; Spectral
18
+ CoherenceFeatureExtractor,
19
+ CommonSpatialPattern,
20
+ DBSpectralFeatureExtractor,
21
+ EntropyFeatureExtractor,
22
+ HilbertFeatureExtractor,
23
+ NormalizedSpectralFeatureExtractor,
24
+ SpectralFeatureExtractor,
25
+ complexity_approx_entropy,
26
+ complexity_lempel_ziv,
27
+ complexity_sample_entropy,
28
+ complexity_svd_entropy,
29
+ connectivity_imaginary_coherence,
30
+ connectivity_lagged_coherence,
31
+ connectivity_magnitude_square_coherence,
32
+ dimensionality_detrended_fluctuation_analysis,
33
+ dimensionality_higuchi_fractal_dim,
34
+ dimensionality_hurst_exp,
35
+ dimensionality_katz_fractal_dim,
36
+ dimensionality_petrosian_fractal_dim,
37
+ signal_decorrelation_time,
38
+ signal_hjorth_activity,
39
+ signal_hjorth_complexity,
40
+ signal_hjorth_mobility,
41
+ signal_kurtosis,
42
+ signal_line_length,
43
+ signal_mean,
44
+ signal_peak_to_peak,
45
+ signal_quantile,
46
+ signal_root_mean_square,
47
+ signal_skewness,
48
+ signal_std,
49
+ signal_variance,
50
+ signal_zero_crossings,
51
+ spectral_bands_power,
52
+ spectral_edge,
53
+ spectral_entropy,
54
+ spectral_hjorth_activity,
55
+ spectral_hjorth_complexity,
56
+ spectral_hjorth_mobility,
57
+ spectral_moment,
58
+ spectral_root_total_power,
59
+ spectral_slope,
60
+ )
61
+ from .inspect import (
62
+ get_all_feature_extractors,
63
+ get_all_feature_kinds,
64
+ get_all_features,
65
+ get_feature_kind,
66
+ get_feature_predecessors,
67
+ )
68
+ from .serialization import load_features_concat_dataset
69
+ from .utils import extract_features, fit_feature_extractors
70
+
71
+ __all__ = [
72
+ "FeaturesConcatDataset",
73
+ "FeaturesDataset",
74
+ "FeatureKind",
75
+ "FeaturePredecessor",
76
+ "bivariate_feature",
77
+ "multivariate_feature",
78
+ "univariate_feature",
79
+ "BivariateFeature",
80
+ "DirectedBivariateFeature",
81
+ "FeatureExtractor",
82
+ "MultivariateFeature",
83
+ "TrainableFeature",
84
+ "UnivariateFeature",
85
+ "get_all_feature_extractors",
86
+ "get_all_feature_kinds",
87
+ "get_all_features",
88
+ "get_feature_kind",
89
+ "get_feature_predecessors",
90
+ "load_features_concat_dataset",
91
+ "extract_features",
92
+ "fit_feature_extractors",
93
+ # Feature part
94
+ # Complexity
95
+ "EntropyFeatureExtractor",
96
+ "complexity_approx_entropy",
97
+ "complexity_sample_entropy",
98
+ "complexity_svd_entropy",
99
+ "complexity_lempel_ziv",
100
+ # Connectivity
101
+ "CoherenceFeatureExtractor",
102
+ "connectivity_magnitude_square_coherence",
103
+ "connectivity_imaginary_coherence",
104
+ "connectivity_lagged_coherence",
105
+ # CSP
106
+ "CommonSpatialPattern",
107
+ # Dimensionality
108
+ "dimensionality_higuchi_fractal_dim",
109
+ "dimensionality_petrosian_fractal_dim",
110
+ "dimensionality_katz_fractal_dim",
111
+ "dimensionality_hurst_exp",
112
+ "dimensionality_detrended_fluctuation_analysis",
113
+ # Signal
114
+ "HilbertFeatureExtractor",
115
+ "signal_mean",
116
+ "signal_variance",
117
+ "signal_skewness",
118
+ "signal_kurtosis",
119
+ "signal_std",
120
+ "signal_root_mean_square",
121
+ "signal_peak_to_peak",
122
+ "signal_quantile",
123
+ "signal_zero_crossings",
124
+ "signal_line_length",
125
+ "signal_hjorth_activity",
126
+ "signal_hjorth_mobility",
127
+ "signal_hjorth_complexity",
128
+ "signal_decorrelation_time",
129
+ # Spectral
130
+ "SpectralFeatureExtractor",
131
+ "NormalizedSpectralFeatureExtractor",
132
+ "DBSpectralFeatureExtractor",
133
+ "spectral_root_total_power",
134
+ "spectral_moment",
135
+ "spectral_entropy",
136
+ "spectral_edge",
137
+ "spectral_slope",
138
+ "spectral_bands_power",
139
+ "spectral_hjorth_activity",
140
+ "spectral_hjorth_mobility",
141
+ "spectral_hjorth_complexity",
142
+ ]
143
+
144
+
145
+ # This import is not working because of the indice
146
+ # way of the numba, needs to be improve later.
147
+ # TO DO
148
+ #
@@ -0,0 +1,110 @@
1
+ """Feature bank public API exports.
2
+
3
+ This module consolidates and re-exports the feature extractors and feature
4
+ functions so users can import them directly from
5
+ ``eegdash.features.feature_bank``.
6
+ """
7
+
8
+ from .complexity import (
9
+ EntropyFeatureExtractor,
10
+ complexity_approx_entropy,
11
+ complexity_lempel_ziv,
12
+ complexity_sample_entropy,
13
+ complexity_svd_entropy,
14
+ )
15
+ from .connectivity import (
16
+ CoherenceFeatureExtractor,
17
+ connectivity_imaginary_coherence,
18
+ connectivity_lagged_coherence,
19
+ connectivity_magnitude_square_coherence,
20
+ )
21
+ from .csp import CommonSpatialPattern
22
+ from .dimensionality import (
23
+ dimensionality_detrended_fluctuation_analysis,
24
+ dimensionality_higuchi_fractal_dim,
25
+ dimensionality_hurst_exp,
26
+ dimensionality_katz_fractal_dim,
27
+ dimensionality_petrosian_fractal_dim,
28
+ )
29
+ from .signal import (
30
+ HilbertFeatureExtractor,
31
+ signal_decorrelation_time,
32
+ signal_hjorth_activity,
33
+ signal_hjorth_complexity,
34
+ signal_hjorth_mobility,
35
+ signal_kurtosis,
36
+ signal_line_length,
37
+ signal_mean,
38
+ signal_peak_to_peak,
39
+ signal_quantile,
40
+ signal_root_mean_square,
41
+ signal_skewness,
42
+ signal_std,
43
+ signal_variance,
44
+ signal_zero_crossings,
45
+ )
46
+ from .spectral import (
47
+ DBSpectralFeatureExtractor,
48
+ NormalizedSpectralFeatureExtractor,
49
+ SpectralFeatureExtractor,
50
+ spectral_bands_power,
51
+ spectral_edge,
52
+ spectral_entropy,
53
+ spectral_hjorth_activity,
54
+ spectral_hjorth_complexity,
55
+ spectral_hjorth_mobility,
56
+ spectral_moment,
57
+ spectral_root_total_power,
58
+ spectral_slope,
59
+ )
60
+
61
+ __all__ = [
62
+ # Complexity
63
+ "EntropyFeatureExtractor",
64
+ "complexity_approx_entropy",
65
+ "complexity_sample_entropy",
66
+ "complexity_svd_entropy",
67
+ "complexity_lempel_ziv",
68
+ # Connectivity
69
+ "CoherenceFeatureExtractor",
70
+ "connectivity_magnitude_square_coherence",
71
+ "connectivity_imaginary_coherence",
72
+ "connectivity_lagged_coherence",
73
+ # CSP
74
+ "CommonSpatialPattern",
75
+ # Dimensionality
76
+ "dimensionality_higuchi_fractal_dim",
77
+ "dimensionality_petrosian_fractal_dim",
78
+ "dimensionality_katz_fractal_dim",
79
+ "dimensionality_hurst_exp",
80
+ "dimensionality_detrended_fluctuation_analysis",
81
+ # Signal
82
+ "HilbertFeatureExtractor",
83
+ "signal_mean",
84
+ "signal_variance",
85
+ "signal_skewness",
86
+ "signal_kurtosis",
87
+ "signal_std",
88
+ "signal_root_mean_square",
89
+ "signal_peak_to_peak",
90
+ "signal_quantile",
91
+ "signal_zero_crossings",
92
+ "signal_line_length",
93
+ "signal_hjorth_activity",
94
+ "signal_hjorth_mobility",
95
+ "signal_hjorth_complexity",
96
+ "signal_decorrelation_time",
97
+ # Spectral
98
+ "SpectralFeatureExtractor",
99
+ "NormalizedSpectralFeatureExtractor",
100
+ "DBSpectralFeatureExtractor",
101
+ "spectral_root_total_power",
102
+ "spectral_moment",
103
+ "spectral_entropy",
104
+ "spectral_edge",
105
+ "spectral_slope",
106
+ "spectral_bands_power",
107
+ "spectral_hjorth_activity",
108
+ "spectral_hjorth_mobility",
109
+ "spectral_hjorth_complexity",
110
+ ]
@@ -11,10 +11,7 @@ from mne.io import read_info
11
11
 
12
12
  from braindecode.datautil.serialization import _load_kwargs_json
13
13
 
14
- from .datasets import (
15
- FeaturesConcatDataset,
16
- FeaturesDataset,
17
- )
14
+ from .datasets import FeaturesConcatDataset, FeaturesDataset
18
15
 
19
16
 
20
17
  def load_features_concat_dataset(path, ids_to_load=None, n_jobs=1):
@@ -3,9 +3,7 @@ import logging
3
3
  import mne
4
4
  import numpy as np
5
5
 
6
- from braindecode.preprocessing import (
7
- Preprocessor,
8
- )
6
+ from braindecode.preprocessing import Preprocessor
9
7
 
10
8
  logger = logging.getLogger("eegdash")
11
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eegdash
3
- Version: 0.2.1.dev178237806
3
+ Version: 0.3.0
4
4
  Summary: EEG data for machine learning
5
5
  Author-email: Young Truong <dt.young112@gmail.com>, Arnaud Delorme <adelorme@gmail.com>, Bruno Aristimunha <b.aristimunha@gmail.com>
6
6
  License: GNU General Public License
@@ -68,19 +68,30 @@ Provides-Extra: dev
68
68
  Requires-Dist: pre-commit; extra == "dev"
69
69
  Provides-Extra: docs
70
70
  Requires-Dist: sphinx; extra == "docs"
71
+ Requires-Dist: sphinx_design; extra == "docs"
71
72
  Requires-Dist: sphinx_gallery; extra == "docs"
72
73
  Requires-Dist: sphinx_rtd_theme; extra == "docs"
74
+ Requires-Dist: pydata-sphinx-theme; extra == "docs"
73
75
  Requires-Dist: numpydoc; extra == "docs"
76
+ Requires-Dist: memory_profiler; extra == "docs"
77
+ Requires-Dist: ipython; extra == "docs"
78
+ Requires-Dist: lightgbm; extra == "docs"
74
79
  Provides-Extra: all
80
+ Requires-Dist: pre-commit; extra == "all"
75
81
  Requires-Dist: pytest; extra == "all"
76
82
  Requires-Dist: pytest-cov; extra == "all"
77
83
  Requires-Dist: codecov; extra == "all"
78
84
  Requires-Dist: pytest_cases; extra == "all"
79
- Requires-Dist: pre-commit; extra == "all"
85
+ Requires-Dist: pytest-benchmark; extra == "all"
80
86
  Requires-Dist: sphinx; extra == "all"
87
+ Requires-Dist: sphinx_design; extra == "all"
81
88
  Requires-Dist: sphinx_gallery; extra == "all"
82
89
  Requires-Dist: sphinx_rtd_theme; extra == "all"
90
+ Requires-Dist: pydata-sphinx-theme; extra == "all"
83
91
  Requires-Dist: numpydoc; extra == "all"
92
+ Requires-Dist: memory_profiler; extra == "all"
93
+ Requires-Dist: ipython; extra == "all"
94
+ Requires-Dist: lightgbm; extra == "all"
84
95
  Dynamic: license-file
85
96
 
86
97
  # EEG-Dash
@@ -12,24 +12,35 @@ tqdm
12
12
  xarray
13
13
 
14
14
  [all]
15
+ pre-commit
15
16
  pytest
16
17
  pytest-cov
17
18
  codecov
18
19
  pytest_cases
19
- pre-commit
20
+ pytest-benchmark
20
21
  sphinx
22
+ sphinx_design
21
23
  sphinx_gallery
22
24
  sphinx_rtd_theme
25
+ pydata-sphinx-theme
23
26
  numpydoc
27
+ memory_profiler
28
+ ipython
29
+ lightgbm
24
30
 
25
31
  [dev]
26
32
  pre-commit
27
33
 
28
34
  [docs]
29
35
  sphinx
36
+ sphinx_design
30
37
  sphinx_gallery
31
38
  sphinx_rtd_theme
39
+ pydata-sphinx-theme
32
40
  numpydoc
41
+ memory_profiler
42
+ ipython
43
+ lightgbm
33
44
 
34
45
  [tests]
35
46
  pytest
@@ -67,22 +67,34 @@ dev = [
67
67
 
68
68
  docs = [
69
69
  "sphinx",
70
+ "sphinx_design",
70
71
  "sphinx_gallery",
71
72
  "sphinx_rtd_theme",
72
- "numpydoc"
73
+ "pydata-sphinx-theme",
74
+ "numpydoc",
75
+ "memory_profiler",
76
+ "ipython",
77
+ "lightgbm",
73
78
  ]
74
79
 
75
80
  all = [
81
+ "pre-commit",
76
82
  "pytest",
77
83
  "pytest-cov",
78
84
  "codecov",
79
85
  "pytest_cases",
80
- "pre-commit",
86
+ "pytest-benchmark",
81
87
  "sphinx",
88
+ "sphinx_design",
82
89
  "sphinx_gallery",
83
90
  "sphinx_rtd_theme",
84
- "numpydoc"
91
+ "pydata-sphinx-theme",
92
+ "numpydoc",
93
+ "memory_profiler",
94
+ "ipython",
95
+ "lightgbm",
85
96
  ]
97
+
86
98
  [tool.setuptools]
87
99
  py-modules = []
88
100
 
@@ -1,4 +1,5 @@
1
1
  import logging
2
+ import shutil
2
3
  import warnings
3
4
  from pathlib import Path
4
5
 
@@ -91,6 +92,10 @@ def preprocess_instance(eeg_dash_dataset):
91
92
 
92
93
  except Exception as e:
93
94
  warnings.warn(f"Failed to load dataset creating a new instance: {e}. ")
95
+ if pre_processed_dir.exists():
96
+ # folder with issue, erasing and creating again
97
+ shutil.rmtree(pre_processed_dir)
98
+ pre_processed_dir.mkdir(parents=True, exist_ok=True)
94
99
 
95
100
  preprocessors = [
96
101
  hbn_ec_ec_reannotation(),
@@ -1,53 +0,0 @@
1
- from .datasets import FeaturesConcatDataset, FeaturesDataset
2
- from .decorators import (
3
- FeatureKind,
4
- FeaturePredecessor,
5
- bivariate_feature,
6
- multivariate_feature,
7
- univariate_feature,
8
- )
9
- from .extractors import (
10
- BivariateFeature,
11
- DirectedBivariateFeature,
12
- FeatureExtractor,
13
- MultivariateFeature,
14
- TrainableFeature,
15
- UnivariateFeature,
16
- )
17
- from .feature_bank import * # noqa: F401
18
- from .inspect import (
19
- get_all_feature_extractors,
20
- get_all_feature_kinds,
21
- get_all_features,
22
- get_feature_kind,
23
- get_feature_predecessors,
24
- )
25
- from .serialization import load_features_concat_dataset
26
- from .utils import (
27
- extract_features,
28
- fit_feature_extractors,
29
- )
30
-
31
- __all__ = [
32
- "FeaturesConcatDataset",
33
- "FeaturesDataset",
34
- "FeatureKind",
35
- "FeaturePredecessor",
36
- "bivariate_feature",
37
- "multivariate_feature",
38
- "univariate_feature",
39
- "BivariateFeature",
40
- "DirectedBivariateFeature",
41
- "FeatureExtractor",
42
- "MultivariateFeature",
43
- "TrainableFeature",
44
- "UnivariateFeature",
45
- "get_all_feature_extractors",
46
- "get_all_feature_kinds",
47
- "get_all_features",
48
- "get_feature_kind",
49
- "get_feature_predecessors",
50
- "load_features_concat_dataset",
51
- "extract_features",
52
- "fit_feature_extractors",
53
- ]
@@ -1,6 +0,0 @@
1
- from .complexity import *
2
- from .connectivity import *
3
- from .csp import *
4
- from .dimensionality import *
5
- from .signal import *
6
- from .spectral import *
File without changes
File without changes
File without changes