text: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  """
  Created on Sat Jul 28 17:26:20 2018
  
  @author: saintlyvi
  """
  
  import argparse
  import os
  import pandas as pd
  import time
  
  from evaluation.eval_clusters import getLabels, realCentroids, consumptionError, peakCoincidence, saveCorr
  from features.feature_extraction import genFProfiles
  
  # Set up argument parser to run from terminal
  parser = argparse.ArgumentParser(description='Evaluate DLR timeseries clusters.')
  parser.add_argument('experiment', type=str, help='Experiment_algorithm_preprocessing')
  parser.add_argument('n_best', type=int, help='n_best run of experiment')
  args = parser.parse_args()
  
  
  xl = getLabels(args.experiment, args.n_best)
  centroids = realCentroids(args.experiment, xl, args.n_best)
  consumptionError(xl, centroids, compare='total')
  consumptionError(xl, centroids, compare='peak')
  peak_eval = peakCoincidence(xl, centroids)
  saveCorr(xl, args.experiment)
  