diff --git a/python/paddle/v2/plot_curve.py b/python/paddle/v2/plot_curve.py index 9d24a87442..178506bbeb 100644 --- a/python/paddle/v2/plot_curve.py +++ b/python/paddle/v2/plot_curve.py @@ -6,6 +6,7 @@ class PlotCost(object): """ append train and test cost in event_handle and then call plot. """ + def __init__(self): self.train_costs = ([], []) self.test_costs = ([], [])