def outlier_prepare(self, model:Model, people:str, windows_size:int, activity_outlier:str): processing = Processing_DB_Files() model.load_training_data_by_window_by_people(people, windows_size) training, training_labels, test, test_labels = processing.calculating_features(model) return self.generate_outliers(training, training_labels, test, test_labels, activity_outlier)
# -*- coding: utf-8 -*- from utils.debug import Debug from models.hmp_model import HMP_Model from pre_processing.processing_db_files import Processing_DB_Files from outlier.outlier_commons import Outlier_Commons # INITIALIZATION # Debug.DEBUG = 1 hmp = HMP_Model() outlier = Outlier_Commons() # PROCESSING # processing = Processing_DB_Files() hmp.load_training_data_by_window_by_people('f1', 50) training, training_labels, test, test_labels = processing.calculating_features( hmp) training_outlier, training_labels_outlier, test_outlier, test_labels_outlier, \ outlier, outlier_labels = outlier.generate_outliers(training, training_labels, test, test_labels, "drink_glass")