id = "tangram" name = "Tangram" description = "Command-line tool to train and use machine learning models." executables = ["tangram"] [commands] format = 1 label = "Tangram" description = "Train a model from a CSV file or make predictions with one. The app and migrate commands are left out." quality = "ai-draft" base = "fig:tangram" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tangram.ts" license = "MIT" [[commands.subcommand]] path = ["train"] label = "Train a model" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tangram.ts" license = "MIT" [[commands.subcommand.field]] id = "file" label = "Training CSV" type = "path" option = ["--file", "-f"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "target" label = "Target column" type = "string" option = ["--target", "-t"] sources = ["fig"] [[commands.subcommand.field]] id = "output" label = "Output .tangram file" type = "path" option = ["--output", "-o"] path = { kind = "file", role = "output", must_exist = false } effect = "overwrite" sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "file_train" label = "Train CSV" type = "path" option = ["--file-train"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "file_test" label = "Test CSV" type = "path" option = ["--file-test"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "train" label = "Train from one CSV" fields = ["file", "target", "output"] required = ["file", "target"] [[commands.subcommand.task]] id = "split" label = "Train with separate test file" fields = ["file_train", "file_test", "target", "output"] required = ["file_train", "file_test", "target"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file", "target", "output"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["config", "file_train", "file_test"] [[commands.subcommand]] path = ["predict"] label = "Make predictions" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tangram.ts" license = "MIT" [[commands.subcommand.field]] id = "model" label = "Model" type = "path" option = ["--model", "-m"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "file" label = "Input CSV" type = "path" option = ["--file", "-f"] description = "Defaults to standard input." path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "output" label = "Output file" type = "path" option = ["--output", "-o"] description = "Defaults to standard output." path = { kind = "file", role = "output", must_exist = false } effect = "overwrite" sources = ["fig"] [[commands.subcommand.task]] id = "predict" label = "Predict" fields = ["model", "file", "output"] required = ["model"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["model", "file", "output"]