Skip to main content

Price forecast tools.

Project description

Pixie Price Forecast

This repository's main aim is to get an overview of the price tendency throughout the next few months.

Install Requirements

To begin with, please install all the python modules required to run the scripts.

pip install -r requirements.txt

Running ETL

In order to generate the aggregated dataset you can run the following code:

from price_forecast.etl import export_aggregated_data

export_aggregated_data(mode={mode})

Where {mode} can be either 'demand' or 'offer'. The former corresponds to average daily data per province for ads with at least 1 lead. The latter computes data using ads no matter the amount of leads.

Forecasting Prices

As of today, it is possible to forecast the property price per province using one of the following models:

  • Arima
  • Random Forest: Using leads, visits and 3-6 months lags as drivers.

You can use the following code to run the forecast.

path = [location of input]
provinces = [list of provinces you are interested in]
search_grid = {dictionary with model parameters you want to try in a search grid}
model_name = [either 'arima' or 'random_forest']
date_train_window = [date with the following format '%Y-%m-%d']
run_forecast(model_name=model_name, input_path=path, province_list=provinces, search_grid=search_grid,
             train_from=date_train_window[0], train_to=date_train_window[1])

Results

Results can be found in this Tableau Dashboard.

In case you do not have access, please contact Jose Mielgo

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pixie_price_forecast-0.3.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file pixie_price_forecast-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pixie_price_forecast-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20c536018b798f47a02e70f6bc6cfc2bac3b69352f24cedaf058ed39ee8dc02d
MD5 e9ed0987e47c9f78b16b2cb01c7373de
BLAKE2b-256 fcefd7461e40945111c07f6ff1ac91c3aa0308d296df88f733b917832f1446d2

See more details on using hashes here.

Supported by

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