Skip to main content

Voting by Feature Intervals classifier.

Project description

Travis Codecov ReadTheDocs


VFI - Voting Feature Intervals is a supervised classification model similar to Naive Bayes. Constucts intervals around each class for each feature. Class counts are recorded for each interval on each feature and the classification is performed using a voting scheme.

Based on the paper: G. Demiroz, A. Guvenir: Classification by voting feature intervals. In: 9th European Conference on Machine Learning, 85-92, 1997.01.

Documentation is available on ReadTheDocs at

How to use VFI

The vfi package inherits from sklearn classes, and thus drops in neatly next to other sklearn classifiers with an identical calling API. Similarly it supports input in a variety of formats: an array (or pandas dataframe) of shape (num_samples x num_features).

import vfi
from sklearn.datasets import load_iris

data, target = load_iris(return_X_y=True)

model = vfi.VFI(), target)


PyPI install, presuming you have an up to date pip:

pip install vfi

If pip is having difficulties pulling the dependencies then we’d suggest to first upgrade pip to at least version 10 and try again:

pip install --upgrade pip
pip install vfi

Otherwise install the dependencies manually using anaconda followed by pulling vfi from pip:

conda install numpy scipy
conda install scikit-learn
pip install vfi

For a manual install of the latest code directly from GitHub:

pip install --upgrade git+

Alternatively download the package, install requirements, and manually run the installer:

cd vfi-master

pip install -r requirements.txt

python install

Running the Tests

The package tests can be run after installation using the command:

pytest vfi --cov

Python Version

The vfi package supports only Python 3.


We welcome contributions in any form! Assistance with documentation, particularly expanding tutorials, is always welcome. To contribute please fork the project make your changes and submit a pull request. We will do our best to work through any issues with you and get your code merged into the main branch.


The vfi package is 3-clause BSD licensed. Enjoy.

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

vfi-0.0.1.tar.gz (16.6 kB view hashes)

Uploaded Source

Built Distribution

vfi-0.0.1-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

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