예제 #1
0
 #
 # {
 #     'title': 'Beef.P=0.5.sym',
 #     'train': File.open_with_label('Beef_TRAIN'),
 #     'test': File.open_with_label('Beef_TEST'),
 #     'fn': half_sym_fn,
 # },
 # {
 #     'title': 'Beef.P=0.5.asym',
 #     'train': File.open_with_label('Beef_TRAIN'),
 #     'test': File.open_with_label('Beef_TEST'),
 #     'fn': half_asym_fn,
 # },
 {
     "title": "Beef.P=1.sym",
     "train": File.open_with_label("Beef_TRAIN"),
     "test": File.open_with_label("Beef_TEST"),
     "fn": one_sym_fn,
 },
 {
     "title": "Beef.P=1.asym",
     "train": File.open_with_label("Beef_TRAIN"),
     "test": File.open_with_label("Beef_TEST"),
     "fn": one_asym_fn,
 },
 {
     "title": "Beef.P=2.sym",
     "train": File.open_with_label("Beef_TRAIN"),
     "test": File.open_with_label("Beef_TEST"),
     "fn": two_sym_fn,
 },
예제 #2
0
import time
from dtw import DTW
from file import File

__author__ = 'phizaz'

jobs = [
    {
        'title': 'Coffee',
        'train': File.open_with_label('Coffee_TRAIN'),
        'test': File.open_with_label('Coffee_TEST')
    },
    {
        'title': 'Beef',
        'train': File.open_with_label('Beef_TRAIN'),
        'test': File.open_with_label('Beef_TEST')
    }
]

for i, job in enumerate(jobs):
    print('job:', i, 'of', len(jobs))
    print('job:', job['title'])

    results = {
        'title': job['title'],
        'results': [],
    }

    start_time = time.process_time()

    for a in range(3 + 1):