Lefts

a domain specific language for building creative ML models

Working when we checked on .

Visit Lefts

What is Lefts?

Lefts is a domain-specific language and Python library for building complex machine learning workflows by composing simple transformations of any model with a .fit and .predict method. It targets data scientists and ML practitioners who need ensembles, cross-validation, hyperparameter tuning, or chained feature/target creation without complicating model fitting and evaluation. Its five commands — Lift, Ensemble, Feed, Tune, and Split — can be nested to create new models that remain fit/predict objects. The implementation is built on the Polars DataFrame library.

Lefts pricing

Pricing model: Free

Lefts pros

  • Five composable commands: Lift, Ensemble, Feed, Tune, Split
  • Works with any model defined by fit and predict methods
  • Built on the Polars DataFrame library
  • Installable via pip with 'pip install lefts'
  • Workflows can be inspected before running with model.print_tree()
  • Example shows 12-model rolling monthly retrain workflow with Ridge regression

Lefts cons

  • Requires models to be defined by fit and predict methods only
  • No documentation of pricing, support, or hosted service
  • Works with tabular data via Polars; other data types not shown

Frequently asked questions about Lefts

What is Lefts?

Lefts is a domain-specific language for building complex machine learning workflows from simple ones, letting you combine models into ensembles, cross-validation procedures, and feature/target pipelines without making fitting or evaluation more complex.

What are the five commands in Lefts?

Lift trains multiple copies of a model across data subsets, Ensemble makes a set of models evaluate as one, Feed lets one model's output become a feature or target for another, Tune lets a model learn hyperparameters from another, and Split trains on a given train/test/validation split.

What kinds of models can Lefts transform?

Any model defined by a fit method (training data to model parameters) and a predict method (model parameters plus test data to predictions), such as scikit-learn estimators like Ridge regression.

Who is Lefts for?

It is aimed at data scientists and machine learning practitioners who want to build ensembles, hyperparameter tuning, cross-validation, or chained feature pipelines from their existing models.

How do I install Lefts?

Lefts is installed with pip using the command 'pip install lefts'.

What library is Lefts built on?

The Lefts implementation is built on top of the Polars DataFrame library.

Can commands be combined?

Yes. Each Lefts command transforms a model's fit and predict into a new model with the same interface, so transformed models can be transformed further by additional Lefts commands.

Can I inspect a workflow before running it?

Yes, calling model.print_tree() prints a tree of the workflow, for example showing a Lift node with its 12 models and the underlying leaf model.

Does Lefts cost anything?

The sources show no pricing or paid plans; Lefts is presented as an open library installable via pip.

Can one model feed another in Lefts?

Yes, the Feed command allows the output of one model to be used as a feature or target by another model.

Categories

Use cases

Alternatives to Lefts

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z