Definition at line 27 of file interface.py.
def learn_lib.interface.Interface.__init__ |
( |
|
self, |
|
|
|
input_file |
|
) |
| |
def learn_lib.interface.Interface.__preprocess_data_helper |
( |
|
self, |
|
|
|
item |
|
) |
| |
|
private |
NOTE: Can only be called if __ready_processor has been called.
It should be, when the instance is created.
Definition at line 87 of file interface.py.
def learn_lib.interface.Interface.__preprocess_data_training |
( |
|
self | ) |
|
|
private |
Private function, user does not need to know this.
Use this function to get training data ready.
Checks to make sure a training file has been passed.
If filename is Null/None, it is skipped.
Definition at line 71 of file interface.py.
def learn_lib.interface.Interface.__ready_preprocessor |
( |
|
self | ) |
|
|
private |
NOTE: Specifically for fitting models
- Split
- Scale
- Reduce
- BUG: Should this data be saved for future?
NOTE: Functions below are specifically calling fit.
Definition at line 50 of file interface.py.
def learn_lib.interface.Interface.__testing_predictions_helper |
( |
|
self, |
|
|
|
item |
|
) |
| |
|
private |
The input 'item' refers to an item in the list of testing datasets.
The inputs and outputs from the datasets are first gathered.
Based on the training files passed in for those models, predictions
are returned.
Definition at line 101 of file interface.py.
def learn_lib.interface.Interface.genmodel_train |
( |
|
self, |
|
|
|
unsup_models, |
|
|
|
sup_models |
|
) |
| |
Creates an instance of anomaly classifier.
Training data files already exist, so all models can and are
trained.
Models are ready for predictions after this stage.
NOTE: Training predictions are grabbed and outputs are trying
to get printed.
Once the process is set, the predictions can be ridden.
Definition at line 141 of file interface.py.
def learn_lib.interface.Interface.get_testing_predictions |
( |
|
self | ) |
|
Get predictions for testing files that was passed in
Definition at line 185 of file interface.py.
def learn_lib.interface.Interface.print_all |
( |
|
self | ) |
|
This was written primarily as a sanity check.
Prints out datasets names for fitting, and training models.
Definition at line 127 of file interface.py.
def learn_lib.interface.Interface.retrieve_data |
( |
|
self, |
|
|
|
loc |
|
) |
| |
learn_lib.interface.Interface.__anomaly_classifier |
|
private |
learn_lib.interface.Interface.__data_persist |
|
private |
learn_lib.interface.Interface.__fit_file |
|
private |
learn_lib.interface.Interface.__processor |
|
private |
learn_lib.interface.Interface.__supervised_train_file |
|
private |
learn_lib.interface.Interface.__testing |
|
private |
learn_lib.interface.Interface.__unsupervised_train_file |
|
private |
The documentation for this class was generated from the following file: