{% extends "layout.html" %} {% set title = 'skrub: Machine Learning with dataframes' %} {%- block extrahead %} {{ super() }} {# Add here landing-page specific stuff that goes in the header (eg css) #} {%- endblock extrahead %} {% block docs_navbar %} {{ super() }} {# We add the full-width banner below the navbar, as the div there is still full-width (unlike the article) #}
skrub is a Python library to
ease preprocessing and feature engineering for
tabular machine learning.
We directly connect database tables to machine learning.
Explore your dataframes interactively with
TableReport.
Click anywhere on the table
Turn your mixed-type dataframe into a numeric
feature matrix with the
TableVectorizer.
Automatically performs preprocessing of the data, such as standardizing missing values and parsing dates,
before encoding based on whether a column contains numbers, strings, or datetimes.
Choose regression or classification and let tabular_pipeline do the rest. Use the power of the TableVectorizer
to immediately create a scikit-learn baseline model with good defaults for each column
based on the datetype.
Encode text and high cardinality categorical data:
Extract temporal features with:
Robustly scale and clip numerical features with:
Many more transformations, all scikit-learn
compatible. All transformers can be applied
to a custom selection of columns
using
ApplyToCols.
.skb.apply
and
selectors.fit() and
predict().X and y in the
pipeline itself.choose_*
functions to build extensive hyperparameter grids with no
effort.features = order_ids.skb.apply_func( join_orders_products, vectorized_products,- agg_func="mean",+ agg_func=skrub.choose_from(["mean", "sum"]),)pred = features.skb.apply(- HistGradientBoostingClassifier(learning_rate=0.1),+ HistGradientBoostingClassifier(+ learning_rate=skrub.choose_float(0.01, 0.5, log=True)+ ), y=fraud_flags,)
The skrub project is powered by the efforts of a world-wide community of contributors. Here we display a randomly selected group of 30 contributors.
Ready to write less code and get more insights? Dive into skrub now
and be part of an emerging community!