whatisgithub

What is mixle?

gmboquet/mixle — explained in plain English

Analysis updated 2026-05-18

73PythonAudience · researcherComplexity · 4/5LicenseSetup · moderate

In one sentence

A Python library that automatically figures out and trains statistical or neural models from messy, mixed data, and can even distill an expensive AI model into a cheaper one.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically fit a statistical model to messy data without choosing the model type by hand.

USE CASE 2

Distill a slow, expensive AI model or API into a small local model that defers only hard cases.

USE CASE 3

Train a PyTorch module without writing a custom training loop.

USE CASE 4

Build a combined model with multiple nested components fitted together in one call.

What is it built with?

PythonPyTorchNumPyNumbaSparkDaskRay

How does it compare?

gmboquet/mixledcdmllm/instructsampalaiologos1453/openinterview
Stars737373
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity4/54/53/5
Audienceresearcherresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

GPU or distributed features (Torch, Spark, Dask, Ray) require optional extras and matching infrastructure.

So what is it?

Mixle is a Python library for building statistical models out of mixed and messy data, things like numbers, text, categories, missing values, rankings, and even graphs. Instead of picking a specific model type yourself, you hand it your data and it works out what kind of model fits, then trains it. You can also hand it a specific structure to fit if you already know what you want. The library treats very different kinds of models, such as a classic statistical distribution, a neural network, or a model with hidden states, as the same basic kind of building block. Because of that, you can combine them and fit the whole combination with a single function call named optimize. For example, you could build a model with hidden states where each state is described by a different kind of smaller model nested inside it, and one call trains every layer together. One practical use the README highlights is distillation: pointing mixle at something slow and costly to run, like a large language model or an external API, so it learns from examples of that system's answers. The result is a small local model that handles easy cases on its own and only calls the expensive original when it is unsure, which can cut costs since the expensive system only gets used for a fraction of requests. Mixle can also wrap an existing PyTorch module and train it without you writing a training loop, batching code, or convergence checks yourself. The same model definition can run on plain NumPy, Numba, GPU through Torch, or a symbolic math engine, and can scale out to distributed systems like Spark, Dask, Ray, or MPI by changing a single argument rather than rewriting the model. Installing the base package via pip gives every distribution and local fitting. Extra features like GPU support, distributed backends, and specific data source connectors are added as optional installs. The project requires Python 3.10 or newer and is tested on Linux, with macOS working in day-to-day use though not formally tested in its automated checks.

Copy-paste prompts

Prompt 1
Show me how to use mixle's optimize function to fit a model to a dataset with missing values.
Prompt 2
Help me use mixle's solve function to distill an expensive API call into a cheaper local model.
Prompt 3
Explain how to wrap my existing PyTorch module so mixle can train it with optimize.
Prompt 4
Walk me through building a hidden Markov model in mixle where each state uses a different sub-model.
Prompt 5
Help me install mixle with GPU and distributed backend support using the optional extras.

Frequently asked questions

What is mixle?

A Python library that automatically figures out and trains statistical or neural models from messy, mixed data, and can even distill an expensive AI model into a cheaper one.

What language is mixle written in?

Mainly Python. The stack also includes Python, PyTorch, NumPy.

How hard is mixle to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mixle for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.