Giter VIP home page Giter VIP logo

graph_report's Introduction

GraphReport

Chainer extension module to output graph such as learning-curve.

Usage

Minimal code

trainer.extend(GraphReport('main/accuracy'))

Customize graph

With using postprocess argument, you can customize the graph.

def postprocess(figure, axes, summary):
    axes.set_xlabel('iteration')
    axes.set_ylabel('accuracy')
    axes.set_ylim((0, 1))
    axes.legend(loc='best')

trainer.extend(GraphReport(('main/accuracy', 'validation/main/accuracy'), 
                           trigger=(100, 'iteration'), 
                           postprocess=postprocess,
                           file_name='accuracy.png'))

Parameter

GraphReport(y_keys, x_key='iteration', trigger=(1, 'epoch'), postprocess=None, file_name='graph.png')

y_keys (str or tuple of str)

The value regarded as y axis.

x_key (str)

The value regarded as x axis.

trigger (tuple)

Trigger that decides when to aggregate the result and output the values.

postprocess (Callable)

You can specify a callback function to customize the figure. This callback function receive 3 paramters.

name type
figure matplotlib.Figure
axes matplotlib.Axes
summary dict

file_name (str)

The output file name.

graph_report's People

Contributors

kiikurage avatar

Stargazers

Katsunori Ohnishi avatar corochann avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.