Reasons, not just scores
A prediction without its reasons is a guess with a confidence interval. Every output Kaimei produces comes with the inputs that moved it, in the output's own units.
About Kaimei
Kaimei means to clarify, to elucidate, to reveal through investigation. We build the tools that let teams do exactly that with the machine-learning models they already run.
Why we exist
Machine learning now decides who gets a loan, which claim gets a second look and what a patient is told to watch for. Most of those models are black boxes, judged by an accuracy number and trusted until something goes wrong.
A model can be right for the wrong reasons. Two models can agree on an answer while believing opposite things about the world. A production feed can start sending a field in the wrong units and nothing in a test suite will notice, while every prediction quietly moves.
Kaimei exists so that every one of those models can answer the question the people affected by it are entitled to ask: why? We attach to the models teams already have, in the frameworks they already use, and give every prediction its reasons, every model its anatomy, and every deployment a watch.
kaimei · to clarify, to elucidate, to reveal through investigation
Same passenger, two models
Accuracy tells you what a model got right. It never tells you why. Here is one passenger from the open Titanic example, scored by a random forest and by a logistic regression.
| Input | Random forest | Logistic regression |
|---|---|---|
| Sex = male | −12.1 | about −21.8 |
| Title = Mr | −11.0 | about 0.0 |
| Pclass = 3 | −4.5 | about −10.9 |
| IsAlone = no | −0.2 | about +6.3 |
| Fare = 7.25 GBP | −4.1 | about −0.7 |
| Age = 22 | −0.6 | about +3.6 |
| SibSp = 1 | −0.2 | about −3.0 |
| Embarked = Southampton | −0.8 | about −0.3 |
| FamSize = 2 | −0.0 | about −0.6 |
| Parch = 0 | −0.2 | about +0.1 |
01The answer
Two models score the same passenger: Mr Owen Harris Braund, 22, third class, travelling with his brother. The random forest gives him a 7.4% chance of surviving, the logistic regression 12.8%. Both are around 80% accurate. A leaderboard stops here.
02The reasons
The same explanation, run on each model for the same input. Each bar is one input pushing P(survived) toward survival or away from it, in percentage points. The rows line up, so you can read straight across.
03Where they agree
Sex and title are two encodings of one fact. Together they cost him 22 to 23 points in both models. The forest splits that between the two inputs. The regression puts nearly all of it on Sex.
04Where they split
Titles are stored by alphabetical position, which a linear model can only weigh up or down. So Title = Mr gives it almost nothing, and it leans on class more than twice as hard. The forest also holds his cheap fare against him. The regression barely does.
05Opposite pulls
In the regression, travelling with his brother (IsAlone = no) and his age push toward survival. In the forest, both push slightly away. A sibling aboard costs him 3 points in one model and almost nothing in the other.
06The what-if
Ask each for the smallest change to his ticket that flips the answer, all else held fixed. The regression: first class instead of third, and he survives, 12.8% to 54.1%. The forest: no ticket is enough. Its best, a 57.81 GBP fare, reaches 33.9%.
Same answer. Different reasons. Only one of them you can defend.
Both models are around 80% accurate. Only their explanations show that one of them cannot read a passenger’s title, makes up for it with class, and so believes a ticket alone could have saved him. Kaimei explains every model you upload the same way, so you can compare their reasons before one goes live.
From notebook 01 of the open Titanic example. Random forest attributions are exact KernelSHAP over 58 reference passengers. Logistic regression attributions, and the sums and gaps that use them, are read off the notebook’s comparison chart and rounded to 0.1 points (marked ≈). Predictions, accuracies (5-fold cross-validation) and what-ifs are the notebook’s printed output.
What we believe
A prediction without its reasons is a guess with a confidence interval. Every output Kaimei produces comes with the inputs that moved it, in the output's own units.
When a model is small enough we enumerate rather than sample, and say so. When we approximate, the method and its limits are part of the response, not a footnote.
We never store your model file. Upload shapes only, or keep the model behind your own endpoint, and Kaimei still does its job without your weights leaving home.
An Apache-2.0 client, a plain REST API and examples that run end to end in public notebooks. If a capability is described on this site, you can reproduce it yourself.
How we work
Everyone who works on Kaimei writes code and reads the research. The person who answers your issue is usually the person who built the feature.
Every capability is exercised on the same public example before we describe it. What the documentation shows is what the product does, with the outputs committed.
We are a small team working on a hard, important problem. If that sounds like your kind of work, or you want Kaimei on your models, we would like to hear from you.