pass # get TRAINS logger object for any metrics / reports logger = Task.current_task().get_logger() # log text logger.report_text("hello") # report scalar values logger.report_scalar("example_scalar", "series A", iteration=0, value=100) logger.report_scalar("example_scalar", "series A", iteration=1, value=200) # report histogram histogram = np.random.randint(10, size=10) logger.report_histogram("example_histogram", "random histogram", iteration=1, values=histogram) # report confusion matrix confusion = np.random.randint(10, size=(10, 10)) logger.report_matrix("example_confusion", "ignored", iteration=1, matrix=confusion) # report 3d surface logger.report_surface("example_surface", "series1", iteration=1, matrix=confusion, xtitle='title X',
# get TRAINS logger object for any metrics / reports logger = Task.current_task().get_logger() # log text logger.report_text("hello") # report scalar values logger.report_scalar("example_scalar", "series A", iteration=0, value=100) logger.report_scalar("example_scalar", "series A", iteration=1, value=200) # report histogram histogram = np.random.randint(10, size=10) logger.report_histogram("example_histogram", "random histogram", iteration=1, values=histogram, xaxis="title x", yaxis="title y") # report confusion matrix confusion = np.random.randint(10, size=(10, 10)) logger.report_matrix("example_confusion", "ignored", iteration=1, matrix=confusion, xaxis="title X", yaxis="title Y") # report 3d surface logger.report_surface("example_surface", "series1",