Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jul 30, 2016
1 parent 0e7846f commit 10c39a2
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions plot-point.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/python2
#!/usr/bin/env python2
# -*- coding: utf-8 -*-

"""
A general curve plotter to create curves such as:
https://github.com/ppwwyyxx/tensorpack/tree/master/examples/ResNet
A simplest example:
$ cat examples/train_log/mnist-convnet/stat.json \
| jq '.[] | .train_error, .validation_error' \
| paste - - \
| plot-point.py --legend 'train,val' --title 'error'
For more usage, see `plot-point.py -h` or the code.
"""


from math import *
import numpy as np
Expand All @@ -18,7 +33,7 @@ def get_args():
description = "plot points into graph."
parser = argparse.ArgumentParser(description=description)
parser.add_argument('-i', '--input',
help='input data file, use "-" for stdin. Default stdin. Input
help='input data file, use "-" for stdin. Default stdin. Input \
format is many rows of DELIMIETER-separated data',
default='-')
parser.add_argument('-o', '--output',
Expand Down

0 comments on commit 10c39a2

Please sign in to comment.