SciKit-Learn Laboratory makes it easier to run machine learning experiments with scikit-learn.
Project description
This Python package provides command-line utilities to make it easier to run machine learning experiments with scikit-learn. One of the primary goals of our project is to make it so that you can run scikit-learn experiments without actually needing to write any code other than what you used to generate/extract the features.
Command-line Interface
The main utility we provide is called run_experiment and it can be used to easily run a series of learners on datasets specified in a configuration file like:
[General]
experiment_name = Titanic_Evaluate_Tuned
# valid tasks: cross_validate, evaluate, predict, train
task = evaluate
[Input]
# these directories could also be absolute paths
# (and must be if you're not running things in local mode)
train_directory = train
test_directory = dev
# Can specify multiple sets of feature files that are merged together automatically
# (even across formats)
featuresets = [["family.ndj", "misc.csv", "socioeconomic.arff", "vitals.csv"]]
# List of scikit-learn learners to use
learners = ["RandomForestClassifier", "DecisionTreeClassifier", "SVC", "MultinomialNB"]
# Column in CSV containing labels to predict
label_col = Survived
# Column in CSV containing instance IDs (if any)
id_col = PassengerId
[Tuning]
# Should we tune parameters of all learners by searching provided parameter grids?
grid_search = true
# Function to maximize when performing grid search
objectives = ['accuracy']
[Output]
# Also compute the area under the ROC curve as an additional metric
metrics = ['roc_auc']
# The following can/should be absolute paths
log = output
results = output
predictions = output
models = output
For more information about getting started with run_experiment, please check out our tutorial, or our config file specs.
We also provide utilities for:
Python API
If you just want to avoid writing a lot of boilerplate learning code, you can also use our simple Python API which also supports pandas DataFrames. The main way you’ll want to use the API is through the Learner and Reader classes. For more details on our API, see the documentation.
While our API can be broadly useful, it should be noted that the command-line utilities are intended as the primary way of using SKLL. The API is just a nice side-effect of our developing the utilities.
A Note on Pronunciation
SciKit-Learn Laboratory (SKLL) is pronounced “skull”: that’s where the learning happens.
Requirements
Python 2.7+
Grid Map (only required if you plan to run things in parallel on a DRMAA-compatible cluster)
configparser (only required for Python 2.7)
logutils (only required for Python 2.7)
mock (only required for Python 2.7)
The following packages can be optionally installed for additional features but are not required:
Talks
Books
SKLL is featured in Data Science at the Command Line by Jeroen Janssens.
Changelog
See GitHub releases.
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 Distribution
File details
Details for the file skll-1.5.1.tar.gz
.
File metadata
- Download URL: skll-1.5.1.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2887feb062948df51d4594bde20ffc89916a0ad4bc40fc4f12be7185b75f9364 |
|
MD5 | dd498abb8bd5c6241d83466adadde37e |
|
BLAKE2b-256 | 41e9d5788a86a5091ff77fb5d990f53e6e2599115c526dcc242e55d66ed825da |