cmd

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

README

Downloading pretrained models

Download the models from: https://www.hashtron.cloud/dl/classifier_models_v0.1/. The largest models have 2MB.

wget https://www.hashtron.cloud/dl/classifier_models_v0.1/infer_mnist.78.json.t.zlib -O train_mnist/output.78.json.t.zlib
wget https://www.hashtron.cloud/dl/classifier_models_v0.1/infer_is_virus.100.json.t.zlib -O train_is_virus/output.100.json.t.zlib
wget https://www.hashtron.cloud/dl/classifier_models_v0.1/infer_is_alnum.100.json.t.zlib -O train_is_alnum/output.100.json.t.zlib
wget https://www.hashtron.cloud/dl/classifier_models_v0.1/infer_squareroot.100.json.t.zlib -O train_squareroot/output.100.json.t.zlib

Running the models

Compile the inference

for dir in infer_*; do
cd $dir
go build
cd ..
done

Run the inference

./infer_mnist/infer_mnist --resume --dstmodel train_mnist/output.78.json.t.zlib
./infer_is_virus/infer_is_virus --resume --dstmodel train_is_virus/output.100.json.t.zlib
./infer_is_alnum/infer_is_alnum --resume --dstmodel train_is_alnum/output.100.json.t.zlib
./infer_squareroot/infer_squareroot --resume --dstmodel train_squareroot/output.100.json.t.zlib

Training yourself (optional)

Compile the training

for dir in train_*; do
cd $dir
go build
cd ..
done

Run training

./train_mnist/train_mnist
./train_is_virus/train_is_virus
./train_is_alnum/train_is_alnum
./train_squareroot/train_squareroot

Documentation

Overview

Package cmd contains various demo programs

Directories

Path Synopsis
Package main provides a demo program for running inference with a trained alphanumeric character classifier.
Package main provides a demo program for running inference with a trained alphanumeric character classifier.
Package main provides a demo program for running inference with a trained virus detection classifier.
Package main provides a demo program for running inference with a trained virus detection classifier.
Package main provides a demo program for running inference with a trained MNIST digit classifier.
Package main provides a demo program for running inference with a trained MNIST digit classifier.
Package main provides a demo program for running inference with a trained square root approximation network.
Package main provides a demo program for running inference with a trained square root approximation network.
Package main provides a demo program for training an alphanumeric character classifier.
Package main provides a demo program for training an alphanumeric character classifier.
Package main provides a demo program for training a virus detection classifier using TLSH file hashes.
Package main provides a demo program for training a virus detection classifier using TLSH file hashes.
Package main provides a demo program for training a handwritten digit classifier on the MNIST dataset.
Package main provides a demo program for training a handwritten digit classifier on the MNIST dataset.
Package main provides a demo program for training a multi-language grapheme-to-phoneme (G2P) converter.
Package main provides a demo program for training a multi-language grapheme-to-phoneme (G2P) converter.
Package main provides a demo program for training an utterance-level grapheme-to-phoneme (G2P) converter.
Package main provides a demo program for training an utterance-level grapheme-to-phoneme (G2P) converter.
Package main provides a demo program for training a speech commands classifier.
Package main provides a demo program for training a speech commands classifier.
Package main provides a demo program for training a square root approximation network.
Package main provides a demo program for training a square root approximation network.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL