Skip to main content

Travis Codecov ReadTheDocs

VFI

VFI - Voting Feature Intervals is a supervised classification model similar to Naive Bayes. Constructs 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 http://vfi.readthedocs.io/en/latest/

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()
model.fit(data, target)

Installing

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+https://github.com/chkoar/vfi.git#egg=vfi

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

wget https://github.com/chkoar/vfi/archive/master.zip
unzip master.zip
rm master.zip
cd vfi-master

pip install -r requirements.txt

python setup.py 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.

Contributing

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.

Licensing

The vfi package is MIT licensed. Enjoy.

Release files for vfi 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vfi 0.1.1
File Size Uploaded
vfi-0.1.1.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vfi 0.1.1
File Interpreter ABI Platform
vfi-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size:25.2 kB

Release files / vfi-0.1.1.tar.gz

Download URL vfi-0.1.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ba446868c486f6fb36da2d19eb4f9ee6831a7e3a2136fd632545d9666b531fd6
BLAKE2b-256 checksum
How to use checksums
d3e695a431659a70049c5874b157befddc900c919bc86de83dcf004ea363e59f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.7.3

Release files / vfi-0.1.1-py3-none-any.whl

Download URL vfi-0.1.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0d622cf03abfdb70b080101d37088b1322fca5e0e2167a5b09d37e5db0a4c32
BLAKE2b-256 checksum
How to use checksums
f7b8b6097cc16091ac1e9b4d64ffa6d8342702804949d2de20a98c3c2ff2fed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.35.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page