Public Member Functions | Private Member Functions | Private Attributes | List of all members
learn_lib.interface.Interface Class Reference
Inheritance diagram for learn_lib.interface.Interface:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, input_file)
 
def genmodel_train (self, unsup_models, sup_models)
 
def get_testing_predictions (self)
 
def print_all (self)
 
def retrieve_data (self, loc)
 

Private Member Functions

def __preprocess_data_helper (self, item)
 
def __preprocess_data_training (self)
 
def __ready_preprocessor (self)
 
def __testing_predictions_helper (self, item)
 

Private Attributes

 __anomaly_classifier
 
 __data_persist
 
 __fit_file
 
 __processor
 
 __supervised_train_file
 
 __testing
 
 __unsupervised_train_file
 

Detailed Description

Definition at line 27 of file interface.py.

Constructor & Destructor Documentation

def learn_lib.interface.Interface.__init__ (   self,
  input_file 
)

Definition at line 29 of file interface.py.

Member Function Documentation

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 
)

Definition at line 203 of file interface.py.

Member Data Documentation

learn_lib.interface.Interface.__anomaly_classifier
private

Definition at line 43 of file interface.py.

learn_lib.interface.Interface.__data_persist
private

Definition at line 44 of file interface.py.

learn_lib.interface.Interface.__fit_file
private

Definition at line 37 of file interface.py.

learn_lib.interface.Interface.__processor
private

Definition at line 41 of file interface.py.

learn_lib.interface.Interface.__supervised_train_file
private

Definition at line 39 of file interface.py.

learn_lib.interface.Interface.__testing
private

Definition at line 40 of file interface.py.

learn_lib.interface.Interface.__unsupervised_train_file
private

Definition at line 38 of file interface.py.


The documentation for this class was generated from the following file:


mh5_anomaly_detector
Author(s): Vedanth Narayanan
autogenerated on Mon Jun 10 2019 13:49:20