NAME
Algorithm::Classifier::IsolationForest::App::Command::info - Show the constructor params, fit-time metadata, and tree stats of a saved model
DESCRIPTION
Prints what a saved model is: the constructor parameters it was built with, the metadata recorded at fit time, its schema version and description, any munger and feature-name tags, and the shape of the forest itself -- node and leaf counts, maximum and mean depth.
Batch and online models have different parameter sets and tree shapes, so each gets its own report; the format tag stored in the file decides which one runs.
Run it as iforest info; iforest help info lists every option.
METHODS
App::Cmd calls these while dispatching the subcommand. Nothing else should.
opt_spec
Returns this command's option specifications, as the list of arrayrefs Getopt::Long::Descriptive expects.
abstract
Returns the one-line summary iforest commands prints beside the command name.
description
Returns the long help text iforest help info prints under the option list.
validate
Checks the parsed options before anything is read or written, so a mistake costs nothing.
Checks that -m names a readable file.
Takes the parsed options hashref and the arrayref of remaining arguments. Calls usage_error, which prints the usage and exits, on the first problem it finds, and returns 1 when everything checks out.
execute
Loads the model, dispatches on its stored format tag, and prints the report to STDOUT.
Takes the parsed options hashref and the arrayref of remaining arguments, and returns 1.