adaptation¶
Module: environments.live.adaptation
¶
Script for running threshold adaptation
Inheritance diagram for pySPACE.environments.live.adaptation
:
LiveAdaptor
¶
-
class
pySPACE.environments.live.adaptation.
LiveAdaptor
[source]¶ Bases:
object
The class that performs the threshold to a given cost function in order to scale the relation of false positives to false negatives.
Class Components Summary
adaptation_fct
(key)A function that is executed in a separate thread copy_flow
(key)is_adaptation_active
()Returns whether adaptation is finished or still running load_model
(directory, datasets)Load only the model prepare_adaptation
(adaptation_files, datasets)Prepares the threshold adaptation. queue_filler
(data, label, key)set_eeg_stream_manager
(stream_manager)start_adaptation
()Adapts the threshold to a specified error function stop_adaptation
()Force the end of the adaptation stream_data
(key)A function that forwards the data to the worker threads -
prepare_adaptation
(adaptation_files, datasets, nullmarker_stride_ms=None)[source]¶ Prepares the threshold adaptation.
-
__weakref__
¶ list of weak references to the object (if defined)
-