SleePyPhases 0.10.0__tar.gz → 0.10.2__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.
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/PKG-INFO +1 -1
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/BuildDataset.py +4 -6
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Training.py +5 -3
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/PKG-INFO +1 -1
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/setup.py +1 -1
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/LICENSE +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/README.md +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/DataManipulation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/EventScorer.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/FeatureExtraction.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/LabelChannels.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/MultiScorer.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/Plot.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/Plugin.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/PreManipulation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/RecordFeatureExtraction.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/Reporter.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/SignalPreprocessing.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/SleePyPhases.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/SleepMetaData.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/__init__.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/config.yaml +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/create_wizard.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/DataAnalysis.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/DataReport.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Eval.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/EvalPlotExamples.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/EvalReport.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ExportMetadataToMeticalDB.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Extract.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ExtractEvents.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ExtractFeatures.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ExtractRecordFeatures.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/GatherMetadata.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/LogCleanup.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/LogOverview.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Predict.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Setup.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/TestRun.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ThresholdOptimisation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/Validation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/VisualizeConfig.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/__init__.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/SOURCES.txt +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/dependency_links.txt +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/entry_points.txt +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/requires.txt +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases.egg-info/top_level.txt +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/pyproject.toml +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/setup.cfg +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/__init__.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/conftest.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/__init__.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_BuildDataset.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_BuildDatasetFolded.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_BuildDatasetMetadataSync.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_BuildDatasetSegments.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_DataManipulation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_Eval.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_EventScorer.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_Extract.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_LabelChannels.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_PreManipulation.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_RecordFeatureExtraction.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_RecordProcessor.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_Setup.py +0 -0
- {sleepyphases-0.10.0 → sleepyphases-0.10.2}/tests/unit/test_SignalPreprocessing.py +0 -0
|
@@ -76,8 +76,7 @@ class BuildDataset(Phase):
|
|
|
76
76
|
|
|
77
77
|
dataset = DatasetXY(dataExporterSignals, dataExporterFeatures)
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
manipulationSteps = self.getConfig(useConfigName)
|
|
79
|
+
manipulationSteps = self.getConfig("segmentManipulation")
|
|
81
80
|
segmentManipulation = DataManipulation.getInstance(
|
|
82
81
|
manipulationSteps, splitName, self.project.config, recordMetadata=recordMetadata
|
|
83
82
|
)
|
|
@@ -98,14 +97,14 @@ class BuildDataset(Phase):
|
|
|
98
97
|
split = self.getConfig("datasetSplit")
|
|
99
98
|
batchSize = self.getConfig("trainingParameter.batchSize") if split != "test" else self.getConfig("eval.batchSize")
|
|
100
99
|
buildConfig = self.getConfig("BuildDataset", {"useMultiThreading": True})
|
|
100
|
+
shuffle = self.getConfig("trainingParameter.shuffle", False) and split == "training"
|
|
101
101
|
|
|
102
102
|
datasets = self.buildDataRecords()
|
|
103
|
-
|
|
104
103
|
dataloader = DataLoader.build(
|
|
105
104
|
datasets,
|
|
106
105
|
preload=buildConfig["useMultiThreading"],
|
|
107
106
|
batchSize=batchSize,
|
|
108
|
-
shuffle=
|
|
107
|
+
shuffle=shuffle,
|
|
109
108
|
shuffleSeed=self.getConfig("trainingParameter.shuffleSeed", 2),
|
|
110
109
|
)
|
|
111
110
|
|
|
@@ -122,8 +121,7 @@ class BuildDataset(Phase):
|
|
|
122
121
|
recordMetaData = RecordLoader.get().getMetaData(recordId)
|
|
123
122
|
preprocesedRecord = self.getData("record-preprocessed", list)
|
|
124
123
|
split = self.getConfig("datasetSplit", "training")
|
|
125
|
-
|
|
126
|
-
manipulationSteps = self.getConfig(useConfigName)
|
|
124
|
+
manipulationSteps = self.getConfig("segmentManipulation")
|
|
127
125
|
|
|
128
126
|
segmentManipulation = DataManipulation.getInstance(
|
|
129
127
|
manipulationSteps, split, self.project.config, recordMetadata=recordMetaData
|
|
@@ -75,9 +75,11 @@ class Training(Phase):
|
|
|
75
75
|
|
|
76
76
|
if preModelState is None:
|
|
77
77
|
with self.project:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
if pretrainingConfig:
|
|
79
|
+
if "dataversion" in self.project.config:
|
|
80
|
+
self.project.config["dataversion"] = {}
|
|
81
|
+
self.project.config.update(pretrainingConfig)
|
|
82
|
+
self.project.trigger("configChanged", None)
|
|
81
83
|
preModelState = self.project.getData("modelState", Model)
|
|
82
84
|
|
|
83
85
|
model.build()
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="SleePyPhases",
|
|
8
|
-
version="v0.10.
|
|
8
|
+
version="v0.10.2"[1:],
|
|
9
9
|
author="Franz Ehrlich",
|
|
10
10
|
author_email="fehrlichd@gmail.com",
|
|
11
11
|
description="A framwork for creating deep learning pipelines for sleep data",
|
|
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
|
{sleepyphases-0.10.0 → sleepyphases-0.10.2}/SleePyPhases/phases/ExportMetadataToMeticalDB.py
RENAMED
|
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
|