pipelineVerified releasev1
train_typing_model
Train your own typing model on your code: collect_code_lines -> build_char_vocab -> train_char_model (requires torch).
Interface
Verified contract
Inputs
| Name | Type |
|---|---|
| output_dir | str |
| n_epochs | int |
| batch_size | int |
| embedding_size | int |
| hidden_size | int |
| attention_size | int |
| tail_size | int |
| num_layers | int |
| device | str |
| seed | int |
| root_dir | str |
| source_dirs | list | None |
| extensions | list | None |
| ignore_substrings | list | None |
| max_length | int |
| min_length | int |
Outputs
| Name | Type |
|---|---|
| summary | unspecified |
Exact release
Pinned local call
from spl import SPLClient
result = SPLClient.embedded().call(
"splime://@splime.project/typing-trainer/train_typing_model@1",
kwargs={'attention_size': 0, 'batch_size': 0, 'device': 'replace-with-value', 'embedding_size': 0, 'extensions': [], 'hidden_size': 0, 'ignore_substrings': [], 'max_length': 0, 'min_length': 0, 'n_epochs': 0, 'num_layers': 0, 'output_dir': 'replace-with-value', 'root_dir': 'replace-with-value', 'seed': 0, 'source_dirs': [], 'tail_size': 0},
trust=True,
)Review before running. Public bundles contain executable code. Verify the publisher and exact content hash; a virtual environment isolates dependencies, not the operating system.
Evidence
Evidence-backed concepts
- Train typing model
- Requires torch
- Collect code lines
- Build char vocab
- N epochs
- Batch size
- Embedding size
- Hidden size
History
Public versions
- v10 downloads
Discover
Similar Objects
- train_char_modelTrain the typing-check GRU+attention char model on your lines and save it to a folder (requires torch).
- adaptive_typing_drillAdaptive typing drill: model_dir + keystroke log -> one practice line aimed at your weak spots (requires torch).
- generate_practice_lineGenerate one practice line from a trained typing-check model, optionally biased by keystroke_bias (requires torch).
- collect_code_linesCollect practice lines from source files under a local directory (stdlib only).
- numeric_rule_experimentReproduce a shallow numeric-rule experiment: reserve an external IID holdout, search and fit on development data using exact public stage versions, evaluate the fixed model, and report holdout errors. Caller supplies a numeric pandas DataFrame and target_col; code executes locally.