Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description


Ubuntu Linux (or other Debian-based distro)
Open a terminal and change directory to the location of this file.

Run the install_dependencies script:

$ sh

Best to install the python(x,y) bundle (

Afterwards all the packages mentioned in the file can be installed via pip. For example to install xlrd one would issue the following command inside Command Prompt:

$ pip install xlrd

Set the desired preferences in the configuration file:


Write down the crisis/normal years in the XLS file:


Position yourself inside the irb.foc.forecaster folder (pwd output just to show an example of the correct path):

$ cd irb.foc.forecaster
$ pwd

Run the Python interpreter with the entry script as an argument:

$ python

Lay of the code

forcaster - main module, use it to start the program

|- conf - configuration file with all the preferences
\- exceptions - all the custom exceptions are defined here

model - contains the data structures
|- country - code and list of indicators
\- indicator - internal representation: list of dates, list of values

sources - represents the data sources available online.
\- wb - extracts data from the World Bank

ai - classes regarding pattern recognition, train and test building etc.
|- input - parses XLS files to get crisis and normal period years
|- output - writes the dataset into a text file in a subgroup-discovery-friendly format
|- samples_set - the representation of the train and test datasets that can build samples based on the crisis/normal years input and indicators and countries specified in the conf file; fetches the data live from the World Bank API
|- preprocessor - processes the samples to extract useful features (min, max, slope...)
\- metadata - column labels and data type marks used when writing the dataset

tests - unit tests for individual modules

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(41.7 kB) Copy SHA256 Hash SHA256
Egg 2.7 Mar 16, 2012

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers