# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# %load_ext autoreload
# %autoreload 2
import prediction
from utils import load_data,get_data_day

import logging
logging.basicConfig(level=logging.INFO)

# ## Use functions separately

all_data=load_data('Data/training/') # get data from files
# returns a dictionnary {"sites":sites,"chimeres":chimeres,"geops":geops,"meteo":meteo,"concentrations":concentrations}
# see utils.load_data function for more details

data_day=get_data_day(3,all_data) ## extract allowed data for day=3 (! january 4 as python starts with 0)

## apply predict function for day=3
prediction.predict(3,sites=all_data['sites'],chimeres_day=data_day[0],geops_day=data_day[1],meteo_day=data_day[2],concentrations_day=data_day[3])

# ## Main function similar to the platform

prediction.run_predict(list_days=[5],dirname='Data/training/')

## Get score
# %run scoring



StarcoderdataJupyterScriptsDedupFiltered