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.3.0-py3-none-any.whl
.
File metadata
- Download URL: pixie_price_forecast-0.3.0-py3-none-any.whl
- Upload date:
- Size: 20.6 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 | 20c536018b798f47a02e70f6bc6cfc2bac3b69352f24cedaf058ed39ee8dc02d |
|
MD5 | e9ed0987e47c9f78b16b2cb01c7373de |
|
BLAKE2b-256 | fcefd7461e40945111c07f6ff1ac91c3aa0308d296df88f733b917832f1446d2 |