Exemple #1
0
def describe(args: Namespace) -> None:
    model = Determined(args.master, None).get_model(args.name)
    ckpt = model.get_version()

    if args.json:
        print(json.dumps(model.to_json(), indent=2))
    else:
        render_model(model)

        headers = [
            "Version #",
            "Trial ID",
            "Batch #",
            "Checkpoint UUID",
            "Validation Metrics",
            "Metadata",
        ]

        print("\n")
        values = [[
            ckpt.version,
            ckpt.trial_id,
            ckpt.batch_number,
            ckpt.uuid,
            json.dumps(ckpt.validation, indent=2),
            json.dumps(ckpt.metadata, indent=2),
        ]]

        render.tabulate_or_csv(headers, values, False)
Exemple #2
0
def describe(args: Namespace) -> None:
    model = Determined(args.master, None).get_model(args.name)
    checkpoint = model.get_version()

    if args.json:
        print(json.dumps(model.to_json(), indent=2))
    else:
        render_model(model)
        print("\n")
        render_model_version(checkpoint)