pipelineVerified releasev1

train_typing_model

Train your own typing model on your code: collect_code_lines -> build_char_vocab -> train_char_model (requires torch).

Updated
Runtime
current process; user-managed packages · Python 3.13

Interface

Verified contract

Callable Object

Inputs

NameType
output_dirstr
n_epochsint
batch_sizeint
embedding_sizeint
hidden_sizeint
attention_sizeint
tail_sizeint
num_layersint
devicestr
seedint
root_dirstr
source_dirslist | None
extensionslist | None
ignore_substringslist | None
max_lengthint
min_lengthint

Outputs

NameType
summaryunspecified

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

Explore all