提交 413ba962 编写于 作者: G gongweibao

fix style

上级 16e8f236
import paddle.v2 as paddle
import paddle.v2.dataset.uci_housing as uci_housing
def main():
# init
paddle.init(use_gpu=False, trainer_count=1)
......@@ -25,8 +26,7 @@ def main():
parameters=parameters,
update_equation=optimizer)
reader_dict={'x': 0,
'y': 1}
reader_dict = {'x': 0, 'y': 1}
# event_handler to print training and testing info
def event_handler(event):
......@@ -52,5 +52,6 @@ def main():
event_handler=event_handler,
num_passes=30)
if __name__ == '__main__':
main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册