onetick.ml.interfaces#

class BaseDatafeed(*args, **kwargs)[source]#

Base class for all datafeeds.

class BaseEvaluator(**kwargs)[source]#

Base class for all evaluators.

class BaseExperiment[source]#

Base class for all experiments.

class BaseFeatures(**kwargs)[source]#

Base class for all feature extractors.

class BaseModel(*args, **kwargs)[source]#
class BasePreprocess(*args, **kwargs)[source]#

Base class for all preprocessors.

transform(src: Union[pandas.core.frame.DataFrame, onetick.py.core.source.Source]) Union[pandas.core.frame.DataFrame, onetick.py.core.source.Source][source]#

Transforms DataFrame or otp.Source.

Parameters

src (DataFrame or otp.Source.) – Data feed to be processed.

Returns

Transformed data feed.

Return type

DataFrame or otp.Source

fit(src: Union[pandas.core.frame.DataFrame, onetick.py.core.source.Source])[source]#

Fit on a given DataFrame or otp.Source.

Parameters

src (DataFrame or otp.Source.) – Data feed to be fitted on.

Returns

Changed data feed (added columns, etc.)

Return type

DataFrame or otp.Source

class BaseSplitting(*args, **kwargs)[source]#

Base class for all splitting methods.