API Cheetsheet

Model

See base class definition in realseries.models.base.

Data

The following functions are used for raw data loading easily.

Visualize

The following functions are used plotting raw data and predicted result.

  • realseries.utils.visualize.plot_anom(): The parameters mainly include pd_data_label, pred_anom and pred_score. pd_data_label is the pandas.DataFrame() with data and label, pred_anom is the array with predicted label, and pred_score is the corresponding anomaly score.

  • realseries.utils.visualize.plot_mne(): The parameters mainly include X, scalings, ch_types, color. If X is the array and last column as label. We set label column to different ch_type, so it will show different color in the figure.