functionVerified releasev1
generate_practice_line
Generate one practice line from a trained typing-check model, optionally biased by keystroke_bias (requires torch).
Interface
Verified contract
Inputs
| Name | Type |
|---|---|
| model_dir | str |
| bias | list | None |
| temperature | float |
| max_tokens | int |
| seed | int | None |
| device | str |
Outputs
| Name | Type |
|---|---|
| default | str |
Exact release
Pinned local call
from spl import SPLClient
result = SPLClient.embedded().call(
"splime://@splime.project/typing-trainer/generate_practice_line@1",
kwargs={'bias': [], 'device': 'replace-with-value', 'max_tokens': 0, 'model_dir': 'replace-with-value', 'seed': 0, 'temperature': 0.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
- Generate practice line
- Optionally biased
- Keystroke bias
- Requires torch
- Trained typing check model
- Model dir
- Max tokens
- Floating point
History
Public versions
- v10 downloads
Discover
Similar Objects
- adaptive_typing_drillAdaptive typing drill: model_dir + keystroke log -> one practice line aimed at your weak spots (requires torch).
- train_typing_modelTrain your own typing model on your code: collect_code_lines -> build_char_vocab -> train_char_model (requires torch).
- train_char_modelTrain the typing-check GRU+attention char model on your lines and save it to a folder (requires torch).
- hn_topic_digestFetch real HN stories, normalize them, apply the required immutable embedded trained model, count observed attention and render notebook-safe HTML. Training is a separate operation. Published implementation executes locally in embedded mode.
- summarize_topicsMeasure observed topic counts, shares, scores and comments separately from topic assignment; compare equal-duration windows under one fixed model and report overlapping feed coverage.