Skip to main content

Pour l'instant fait pas grand chose

Project description

Forecastor for Buildings' Consumption

Go check ce lien pour rédiger le README: Github-flavored Markdown

Installation

Command line: pip install building_energy_forecastor

Features' list for preprocessing data from src/building_preprocess

  • day_of_week(date_serie): Takes a pandas.Series of dates and returns a pandas.Series of corresponding week days (['Monday', 'Tuesday', ...]).
  • set_time_index(df, timeindex='Timestamp'): Set the time column as index of the dataframe df. By default the column's label is 'Timestamp'.
  • time_to_cycle(df, timeindex='Timestamp'): From the 3rd competitor of the Forecast challenge by Schneider Electric. Add column to a copy of df containing cosinus and sinus functions of the time of the day, the month of the year and the day of the year.
  • add_weather(df, weather, timeindex='Timestamp', freq_temp='D'): From the 3rd competitor of the Forecast challenge by Schneider Electric. Adds the weather data to the training dataset (df here) merging the two dataframes on the 'Timestamp' and rouding the time value in weather to the precised freq_temp ('D' by default).
  • fill_temperature(df, tempindex='Temperature'): fill the NaN values in the tempindex column by computing the mean on the two closest framing values.

Model functions from src/building_model

  • building_regressor(): Returns a linear regressor from Scikit-learn.
  • building_train(reg, X, y): Trains the regressor with X the data and Y the targeted values.
  • building_prediction(reg, X): Returns a pandas.DataFrame showing the prediction of the regressor reg given the data X.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

building_energy_forecastor-0.0.3.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file building_energy_forecastor-0.0.3.tar.gz.

File metadata

  • Download URL: building_energy_forecastor-0.0.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for building_energy_forecastor-0.0.3.tar.gz
Algorithm Hash digest
SHA256 dff50382878a3daedeef941681a1f633c122fe034a63928284c816203a8cf339
MD5 d6d2d825a8f85a49f7ad7d1262dee77a
BLAKE2b-256 2833f56425a630644e6162ab0b0b6b3fea7d60208d866f071737e355451b6680

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page