launch_live

Module: run.launch_live

Script for running pyspace live controlling

../../_images/launch_live.png

A script for running pyspace live. The script contains a class to control the other related classes needed in the online mode, and several methods that are used for the general startup of the suite.

Inheritance diagram for pySPACE.run.launch_live:

Inheritance diagram of pySPACE.run.launch_live

Class Summary

LiveController(parameters_[, live_processing]) Controlling suite.

Function Summary

parse_arguments() Parses the command line arguments to create options object
read_parameter_file(parameter_file_name) Reads and interprets the given parameter file
create_and_start_rpc_server(controller_instance) Creates and starts the server for the remote procedure calls
create_backup(liveControl, options) Create backup files

Class

LiveController

class pySPACE.run.launch_live.LiveController(parameters_, live_processing=None)[source]

Bases: object

Controlling suite.

This class provides a clean interface to the live environment. It provides contains objects of the classes that are used for the online mode and configures them as needed.

The controller uses the config-files for user related configuration, and additional parameter files for scenario/task specific parameterization.

Class Components Summary

adapt_classification_threshold([load_model]) Adapts classification threshold on a special function
convert_dict_to_defaultdict(dict_to_convert)
predict([load_model, online, remote]) Classifies new instances based on the trained pyspace flows
prewindowed_train() Trains the pyspace flows which have been prewindowed using the prewindower
prewindowing([online]) Prewindows the pyspace flows on the data streamed from
record()
start_prewindowing([online]) Start the prewindowing process
stop_prediction()
stop_prewindowing() Create pyspace live processing server
train() Trains the pyspace flows on the data streamed from
__init__(parameters_, live_processing=None)[source]
convert_dict_to_defaultdict(dict_to_convert)[source]
prewindowing(online=True)[source]

Prewindows the pyspace flows on the data streamed from an external EEG-Server

start_prewindowing(online=True)[source]

Start the prewindowing process

stop_prewindowing()[source]

Create pyspace live processing server

prewindowed_train()[source]

Trains the pyspace flows which have been prewindowed using the prewindower

train()[source]

Trains the pyspace flows on the data streamed from an external EEG-Server

adapt_classification_threshold(load_model=True)[source]

Adapts classification threshold on a special function

predict(load_model=True, online=True, remote=False)[source]

Classifies new instances based on the trained pyspace flows

stop_prediction()[source]
record()[source]
__weakref__

list of weak references to the object (if defined)

Functions

parse_arguments()

pySPACE.run.launch_live.parse_arguments()[source]

Parses the command line arguments to create options object

read_parameter_file()

pySPACE.run.launch_live.read_parameter_file(parameter_file_name)[source]

Reads and interprets the given parameter file

create_and_start_rpc_server()

pySPACE.run.launch_live.create_and_start_rpc_server(controller_instance, rpc_port=16254)[source]

Creates and starts the server for the remote procedure calls

create_backup()

pySPACE.run.launch_live.create_backup(liveControl, options)[source]

Create backup files