How to use the visdom.line function in visdom

To help you get started, we’ve selected a few visdom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebookresearch / CrypTen / examples / bandits / membership_inference.py View on Github external
)
        for model_file, iteration in zip(model_files, iterations)
    ]

    # save advantages to file:
    if args.savefile is not None:
        with open(args.savefile, "wb") as fid:
            pickle.dump(advantage, fid)

    # plot advantages:
    if args.visualize:
        opts = {
            "xlabel": "Number of iterations",
            "ylabel": "Accuracy of inference attack",
        }
        visdom.line(iterations, advantage, opts=opts)

visdom

A tool for visualizing live, rich data for Torch and Numpy

Apache-2.0
Latest version published 2 years ago

Package Health Score

63 / 100
Full package analysis