Skip to content
Tools for multi-label classification problems.
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
xclib
.gitignore Changed retain topK Sep 13, 2019
LICENSE easy install Dec 20, 2018
README.md Changed evaluate example as new data format Jul 19, 2019
setup.py Changed evaluate example as new data format Jul 19, 2019

README.md

xclib

Tools for multi-label classification problems.

git clone https://github.com/kunaldahiya/xclib.git
cd xclib
python3 setup.py install --user

Usage

from xclib.data import data_utils

# Read file with features and labels
features, tabels, num_samples, num_features, num_labels = data_utils.read_data('train.txt')

# Read sparse file
labels = data_utils.read_sparse_file('trn_X_Xf.txt', force_header=True)

# Write sparse file
data_utils.write_sparse_file(labels, "labels.txt")
You can’t perform that action at this time.