Skip to main content

scikit-learn sidekick

A wrapper for scikit-learn that makes it easier to write, tune and evaluate classification and regression systems


Installation

Install from the python package index:

pip install sklearnsk

Or clone this repository and install:

pip install .

Usage

TODO

Defining your classification or regression algorithm

The ConfigurableAlgorithm abstract class provides a template for implementing your classification or regression algorithm. If you follow this template, then you will be able to easily tune and evaluate your algorithm without writing a lot of additional, repetitive code.

The main idea of this template is that it forces you to create a class that has a consistent interface: all algorithms must have a fit and a predict method, and must be able to be instantiated with a single property; a config dictionary.

This config dictionary is where you define:

  • the underlying classification or regression algorithm you use (e.g. SVC, RandomForest, LinearRegression, etc)

  • any hyper-parameters involved in tuning the algorithm (e.g. C, gamma, max_depth)

  • the individual features or feature groups you might want to turn on or off

  • any parameters involved in generating features (e.g. ngram range, max K for K-best feature selection, etc)

Basically, if there are any knobs at all that you would want to fiddle with for tuning your system or performing any feature analysis, you should be able to manipulate them by changing the config dictionary.

When you implement ConfigurableAlgorithm, you must implement the following methods:

get_default_config()

Should return a dictionary associating keys with default values. The config dictionary used to instantiate the Algorithm will be merged with this dictionary, so that the.

In particular, this dictionary should provide [TODO]….

Metadata

Release files for sklearnsk 0.1.7

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

Source distribution (sdist)

Source distribution for sklearnsk 0.1.7
File Size Uploaded
sklearnsk-0.1.7.tar.gz 11.5 kB Details

Release files / sklearnsk-0.1.7.tar.gz

Download URL sklearnsk-0.1.7.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7aec472bd77f1b7b4748d6b9f27a509b102dfcf229a094f1cad731674a22b9d
BLAKE2b-256 checksum
How to use checksums
a06580be609108d98b9c923952884705ba5f46a05bfb124b0397a824de51645e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.7 This release

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

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