"AMI+Static", "All", "AMI+Monthly"]

import sys
CLUSTER=True
if CLUSTER:
    sys.path.insert(0, '/if6/nb2cz/anaconda/lib/python2.7/site-packages')

sys.path.insert(0, '../code')


import numpy as np
import pandas as pd


from create_df import read_df
df, dfc, all_homes, appliance_min, national_average = read_df()

from all_functions import *
from features import *





SLURM_OUT = "../slurm_out"
from subprocess import Popen


for feature in features:
    for appliance in appliances:
        for home in all_homes[appliance]:
from flask import Flask, render_template, json, request
import numpy as np

import sys
CLUSTER = True
if CLUSTER:
    sys.path.insert(0, '/if6/nb2cz/anaconda/lib/python2.7/site-packages')

import sys
sys.path.append("../code/")
import pandas as pd
import numpy as np

from create_df import read_df
df, dfc, all_homes, appliance_min, national_average = read_df()

from all_functions import *
from features import *

import json

from sklearn.neighbors import KNeighborsRegressor, NearestNeighbors


def predict_appliance(home, appliance, feature):
    if home in all_homes[appliance]:
        home_to_pick = home
    else:
        home_to_pick = all_homes[appliance][0]
    print home_to_pick