Class
DataLabelled
Base class from which inherit to implement a corpus based data providing strategy.
Info:
- edit Alexis BRENON brenon.alexis+arcades@gmail.com
See also:
Data Types
keyboard_arrow_up-
InitArgument
__init argument.
Todo:-
Don't mix with
dump
.
-
environment.BaseEnvironment
environment_model
Environment to which is linked this object -
number
input_time_scale
Time scale of the corpus timestamps (default0.001
) -
number
output_time_scale
Time scale of the agent (default1
) -
number
time_coef
Coefficient used to translate data corpus to agent time scale (optional) -
string
data_path
Path to the data corpus
-
Don't mix with
Metamethods
keyboard_arrow_up-
__init ( args )
Default constructor.
Parameters:-
InitArgument
args
-
InitArgument
Public Methods
keyboard_arrow_up-
reset ()
Reset
Returns:- `self`
Private Methods
keyboard_arrow_up-
_compare_timestamped_data ( i1, i2 )
Compare timestamped data based on timestamp
Parameters:-
i1
timestamped data 1 -
i2
timestamped data 2
-
boolean
i1 < i2
-
-
_fill_state ( timestamp, from_current )
-
_load_csv_file ( file_path, time_coef )
-
_load_data_dir ( dir_path, time_coef )
-
_merge_data ( d1, d2 )
-
_parse_data ( data_path, time_coef )
-
_update_state_with_values ( data_index )
Build state from corpus
Parameters:-
data_index
-