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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pixie_price_forecast-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: pixie_price_forecast-0.10.0-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af3df29adc4566fcf80ca3560adced14fdc14237acc83d3507b7087882f706d5 |
|
MD5 | e9504e6496cf1ba3bca581e2ce6f1f81 |
|
BLAKE2b-256 | 5c65586080e7c50d23fca0f8213bc6794de1be8d9848c71a518ed47429003fcd |