glin
v0.1.5Exactly explainable classifiers for agents: train, tune, predict, explain on CSV or Excel.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models
List all trained glin models available on this machine.
inspect_model
Return feature names, types, and target classes for a trained model.
| Parameter | Type | Description |
|---|---|---|
model_name * | string |
predict
Predicted class and probabilities, plus the full glassbox audit: `base_logit` (the intercept), every contributing feature's exact score (sorted by magnitude), and an additivity check verifying the scores sum to the model's own predicted probabilities (`reconstructed_probability` vs `model_probability`, both keyed by class name). For binary targets scores and `base_logit` are log-odds of `score_class` (`target_classes[1]`; positive pushes toward it, negative toward the other class); multiclass reports per-class scores and a per-class `base…
| Parameter | Type | Description |
|---|---|---|
features * | object | |
model_name * | string | |
top_n | integer |
explain_model
Global view of what a trained model learned, exact rather than sampled from example predictions: every feature ranked by its mean absolute contribution to the log-odds (`features`, with main-effect vs interaction split), the top terms including pairwise interactions (`terms`, each with its share of the total), and, for binary targets, a `shape` per main effect showing which categories or value ranges push the prediction up or down. Use this to answer "what drives this model" instead of running `predict` on a handful of rows.
| Parameter | Type | Description |
|---|---|---|
model_name * | string | |
include_shapes | boolean | |
top_n | integer |
list_hyperparameters
Every EBM training hyperparameter `train_model` accepts in its `hyperparameters` argument: name, type, default, allowed range, and what raising/lowering it does. Fetch the `tune_model_hyperparameters` prompt for a search strategy built on these.
train_model
Train an EBM classifier from a CSV or Excel file and save it as model_name. This is also how to retrain an existing model: pass overwrite=True to replace it with a freshly trained model (e.g. on updated data) -- otherwise a pre-existing model_name is rejected so it isn't silently clobbered. Pass exactly one of: - csv_path: a .csv, .xlsx or .xls file inside a directory this server allows (it does the reading itself). Always prefer this -- it works for large files (up to the server's size limit, 200 MB by default) wit…
| Parameter | Type | Description |
|---|---|---|
model_name * | string | |
target_column * | string | |
csv_content | ||
csv_path | ||
header_rows | ||
holdout_fraction | number | |
holdout_group_column | ||
hyperparameters | ||
overwrite | boolean | |
sheet | ||
suppression_codes |
delete_model
Permanently delete a trained model and its saved files. This cannot be undone; confirm with the user before you call it. To replace a model with a new one, call `train_model` with overwrite=True instead.
| Parameter | Type | Description |
|---|---|---|
model_name * | string |