# -*- coding: utf-8 -*-
"""
Created on Sat May 20 08:56:43 2017

@author: gal
"""

import os

NSL_BASE_DIR = r'C:\Users\gal\Desktop\thesis\Datasets\NSL-KDD'
NSL_TRAIN_FILE = os.path.join(NSL_BASE_DIR, 'KDDTrain+.txt')
NSL_TRAIN20_FILE = os.path.join(NSL_BASE_DIR, 'KDDTrain+_20Percent.txt')
NSL_TEST_FILE = os.path.join(NSL_BASE_DIR, 'KDDTest+.txt')

CODE_DIR = os.path.dirname(os.path.abspath(__file__))
THESIS_DIR = os.path.abspath(os.path.join(CODE_DIR, os.pardir))
REPORTS_DIR = os.path.join(THESIS_DIR, 'reports')
MODELS_DIR = os.path.join(THESIS_DIR, 'models')
GRAPHS_DIR = os.path.join(THESIS_DIR, 'graphs')
CLFS_DIR = os.path.join(THESIS_DIR, 'classifiers')

CLUSTERS_REPORT = os.path.join(REPORTS_DIR, 'clusters.csv')
CLASSIFIERS_REPORT = os.path.join(REPORTS_DIR, 'classifiers.csv')
FEASIBLES_REPORT = os.path.join(REPORTS_DIR, 'feasibles.csv')
LB_MODELS_REPORT = os.path.join(REPORTS_DIR, 'feasible_lb_models_raw.xls')
LB_MODELS_REPORT_SUM = os.path.join(REPORTS_DIR, 'feasible_lb_models.xls')

MAX_CLUSTERS_STD = 5000
MAX_CLUSTERS_RATIO = 15

for directory in [THESIS_DIR, REPORTS_DIR, MODELS_DIR, GRAPHS_DIR, CLFS_DIR]:
    if not os.path.exists(directory):
        os.makedirs(directory)
