omniloader.cli

Command-line interface for inspecting a dataset mix from a config file.

Subcommands (all take a JSON/YAML config whose datasets section declares the adapters and schemas — see omniloader.data.factory):

  • omniloader describe CONFIG — print the coverage/statistics report.

  • omniloader validate CONFIG — check datasets against their specs (exit 1 on issues).

  • omniloader compute-stats CONFIG -o STATS — compute and save normalization stats.

  • omniloader class-weights-for-loss CONFIG --target KEY -o WEIGHTS — compute and save per-class loss weights (and counts) for a categorical target.

Functions

build_parser(→ argparse.ArgumentParser)

Construct the argument parser for the omniloader CLI.

main(→ int)

Entry point for the omniloader console script.

Module Contents

omniloader.cli.build_parser() → argparse.ArgumentParser[source]

Construct the argument parser for the omniloader CLI.

omniloader.cli.main(argv: collections.abc.Sequence[str] | None = None) → int[source]

Entry point for the omniloader console script.

Parameters:

argv – Optional argument list (defaults to sys.argv).

Returns:

The process exit code.