struct

Logarithm::CLI::Train::Flags

Inherits Struct < Value < Object

Extend the flags struct to include the flag

Constants

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "recursive" => {kind: "bool", type: "Bool", default: "false", description: {"--recursive, -r", "Recursively monitor directories for log files"}, short: "r", long: "recursive", is_required: true}, "journald" => {kind: "bool", type: "Bool", default: "false", description: {"--journald, -j", "Include systemd journal in monitoring"}, short: "j", long: "journald", is_required: true}, "since" => {kind: "nil", type: "String", default: "\"\"", description: {"--since, -s (default: \"\")", "Start journal from specific time (e.g., '1 hour ago', '2023-01-01 12:00')"}, short: "s", long: "since", is_required: true}, "data_dir" => {kind: "nil", type: "String", default: "\"\"", description: {"--data-dir, -D (default: \"\")", "Directory to store trained models (overrides LOGARITHM_DATA_DIR)"}, short: "D", long: "data-dir", is_required: true}, "time" => {kind: "nil", type: "String", default: "\"\"", description: {"--time, -t (default: \"\")", "Training duration (e.g., 1h, 30m, 5s)"}, short: "t", long: "time", is_required: true}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose, -v", "Enable verbose logging"}, short: "v", long: "verbose", is_required: true}, "config" => {kind: "nil", type: "String", default: "\"\"", description: {"--config, -c (default: \"\")", "Config file path"}, short: "c", long: "config", is_required: true}, "vocab_size" => {kind: "nil", type: "Int32", default: "0", description: {"--vocab-size, -V (default: 0)", "Vocabulary size for TF-IDF vectorizer (50-500, based on log volume)"}, short: "V", long: "vocab-size", is_required: true}, "batch_size" => {kind: "nil", type: "Int32", default: "0", description: {"--batch-size, -B (default: 0)", "Batch size for incremental training (500-100000, based on log volume)"}, short: "B", long: "batch-size", is_required: true}, "max_batches" => {kind: "nil", type: "Int32", default: "0", description: {"--max-batches, -M (default: 0)", "Maximum number of batches to collect (1-50, based on log volume)"}, short: "M", long: "max-batches", is_required: true}, "expand_vocab" => {kind: "bool", type: "Bool", default: "false", description: {"--expand-vocab, -e", "Expand vectorizer vocabulary with new terms from logs"}, short: "e", long: "expand-vocab", is_required: true}, "retrain_mode" => {kind: "nil", type: "String", default: "\"incremental\"", description: {"--retrain-mode, -m (default: \"incremental\")", "Retraining mode: incremental (default), full, hybrid"}, short: "m", long: "retrain-mode", is_required: true}, "rollback" => {kind: "bool", type: "Bool", default: "false", description: {"--rollback, -b", "Rollback to previous model version"}, short: "b", long: "rollback", is_required: true}, "threshold" => {kind: "nil", type: "Float64", default: "0.0", description: {"--threshold, -T (default: 0.0)", "Anomaly detection threshold (0.0 to 1.0)"}, short: "T", long: "threshold", is_required: true}, "log_level" => {kind: "nil", type: "String", default: "\"\"", description: {"--log-level, -L (default: \"\")", "Log level: DEBUG, INFO, WARN, ERROR, FATAL"}, short: "L", long: "log-level", is_required: true}, "encryption_key" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-key, -K (default: \"\")", "Encryption key for model files"}, short: "K", long: "encryption-key", is_required: true}, "encryption_fingerprint" => {kind: "nil", type: "String", default: "\"\"", description: {"--encryption-fingerprint, -P (default: \"\")", "Encryption key fingerprint (e.g., SHA-256 hash of the key)"}, short: "P", long: "encryption-fingerprint", is_required: true}, "dry_run" => {kind: "bool", type: "Bool", default: "false", description: {"--dry-run, -n", "Dry run mode - collect and display logs without training"}, short: "n", long: "dry-run", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)

Constructors

new(command : Admiral::Command)

Instance methods

__help__
batch_size
Source
config
Source
data_dir
Source
dry_run
Source
encryption_fingerprint
Source
encryption_key
Source
expand_vocab
Source
inspect(io)
Source
journald
Source
log_level
Source
max_batches
Source
recursive
Source
retrain_mode
Source
rollback
Source
since
Source
threshold
Source
time
Source
validate!(command)
verbose
Source
vocab_size
Source