Skip to main content

Competition-oriented framework for interactive feature engineering and building reproducible pipelines

Project description

Kaggle Tool Set

kts is a working title, highly likely it will be changed to avoid legal consequences.

Getting started

To install the package, just clone the repo to a directory included in PYTHONPATH.

What works by now

  • Base of feature engineering submodule

How it works

First of all, you need to import the module:

import kts
from kts import *

Then you should define a function to make new features based on your input dataframe:

def make_new_features(df):
    ...

To test it out, use @test decorator from kts or kts.feature:

@test
def make_new_features(df):
    ...

When you're sure that your function works fine, @register it:

@register
def make_new_features(df):
    ...

Since registering source of the function is stored in storage/features and calls are cached unless no_cache=True is used.

The function will also be contained in kts.storage.feature_constructors. If you want to separate feature engineering from other steps of your pipeline, you can easily define all registered functions in a new notebook via

kts.storage.feature_constructors.define_in_scope(globals())

To learn more, read source and example notebook.

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

kts-0.0.46.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kts-0.0.46-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file kts-0.0.46.tar.gz.

File metadata

  • Download URL: kts-0.0.46.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.6.1

File hashes

Hashes for kts-0.0.46.tar.gz
Algorithm Hash digest
SHA256 db58f49d5bb6da83f3020f232196ea534acea375668d6b77e61d77f858a95640
MD5 5d617cb6742d3d278d4d7ff031b06ec3
BLAKE2b-256 e2a82ea0e4505884cf88389cb06a8a33f014a48728a322d5da38cd24a3b83e61

See more details on using hashes here.

File details

Details for the file kts-0.0.46-py3-none-any.whl.

File metadata

  • Download URL: kts-0.0.46-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.6.1

File hashes

Hashes for kts-0.0.46-py3-none-any.whl
Algorithm Hash digest
SHA256 9e07a8b7659bc1a3685d8bb9dd44db8ada70675be590717472bb9a327ee04b16
MD5 bc7e7798fd1f00573a0310fe91ca59cf
BLAKE2b-256 37755507476f32f7d0a3f9d3286be4081fb66635443989d273347247ccd0dbbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page