Esempio n. 1
0
def tpminerWeatherSetup(logger):
    job = Job(logger=logger, label='TPMiner weather-crash')
    job.algorithm = tpminer
    job.minSupport = 0.15
    job.maxGap = pa.to_timedelta('24:00:00')
    job.dataset = 'datasets/Weather-Crash.csv'
    preprocessor = WeatherCrashPreprocessor(
        'datasets/weather.csv',
        'datasets/Motor_Vehicle_Collisions_-_Crashes.csv',
        logger)
    job.preprocessor = preprocessor

    return job
Esempio n. 2
0
def tpminerLoadSetup(logger):
    job = Job(logger=logger, label='TPMiner load')
    job.algorithm = tpminer
    job.seperator = ','
    job.dataset = 'datasets/Load-minute-12.csv'
    job.columns = col.load_columns
    job.getState = load_getState
    job.minSupport = 0.5
    job.maxGap = pa.to_timedelta('24:00:00')

    job.useGenericPreprocessor()

    return job
Esempio n. 3
0
def tpminerVentSetup(logger):
    job = Job(logger=logger, label='TPMiner main vent')
    job.algorithm = tpminer
    job.seperator = ','
    job.dataset = 'datasets/Vent-minute-12.csv'
    job.columns = col.vent_columns
    job.getState = vent_getState
    job.minSupport = 0.1
    job.maxGap = pa.to_timedelta('24:00:00')

    job.useGenericPreprocessor()

    return job
Esempio n. 4
0
def test(logger):
    job = Job(logger=logger)
    job.algorithm = methods.armada
    job.seperator = ','
    job.dataset = 'datasets/Vent-minute-3.csv'
    job.columns = columns.vent_columns
    job.getState = methods.vent_getState
    job.minSupport = 0.7
    job.maxGap = pa.to_timedelta('24:00:00')

    job.useGenericPreprocessor()

    return job
Esempio n. 5
0
import pandas as pa
from logging2 import FileLogger, Severity
from methods import *
from models.job import Job
from preprocessors.columns import vent_columns

min_5_seq_6 = Job(label='min_5_seq_6')
min_5_seq_6.minSupport = 0.05
min_5_seq_6.dataset = 'datasets/Vent-minute-6.csv'

min_4_seq_6 = Job(label='min_4_seq_6')
min_4_seq_6.minSupport = 0.04
min_4_seq_6.dataset = 'datasets/Vent-minute-6.csv'

min_3_seq_6 = Job(label='min_3_seq_6')
min_3_seq_6.minSupport = 0.03
min_3_seq_6.dataset = 'datasets/Vent-minute-6.csv'

min_2_seq_6 = Job(label='min_2_seq_6')
min_2_seq_6.minSupport = 0.02
min_2_seq_6.dataset = 'datasets/Vent-minute-6.csv'

min_1_seq_6 = Job(label='min_1_seq_6')
min_1_seq_6.minSupport = 0.01
min_1_seq_6.dataset = 'datasets/Vent-minute-6.csv'

min_5_seq_12 = Job(label='min_5_seq_12')
min_5_seq_12.dataset = 'datasets/Vent-minute-12.csv'
min_5_seq_12.minSupport = 0.05

min_5_seq_9 = Job(label='min_5_seq_9')