def tomorrows_prediction_with_past_week(forecast): past_actual = read_actual() forecast[3] = float(past_actual[len(past_actual)-6]) day = (datetime.today()+timedelta(1)).weekday() return lc.predict_for(forecast, day)
def tomorrows_prediction_with_past_week(forecast): past_actual = read_actual() forecast[3] = float(past_actual[len(past_actual) - 6]) day = (datetime.today() + timedelta(1)).weekday() return lc.predict_for(forecast, day)
def tomorrows_prediction(): forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY')) print('fmi apikey:', os.environ.get('FMIAPIKEY')) day = (datetime.today()+timedelta(1)).weekday() return lc.predict_for(forecast, day)
def tomorrows_prediction(): forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY')) print('fmi apikey:', os.environ.get('FMIAPIKEY')) day = (datetime.today() + timedelta(1)).weekday() return lc.predict_for(forecast, day)