提交 598e0f5d 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #373 from typhoonzero/develop

Fix rename mse_cost
......@@ -16,7 +16,7 @@ addons:
- python2.7-dev
- golang
before_install:
- pip install -U virtualenv pre-commit pip
- sudo pip install -U virtualenv pre-commit pip
- GOPATH=/tmp/go go get -u github.com/wangkuiyi/ipynb/markdown-to-ipynb
script:
- PATH=/tmp/go/bin:$PATH .travis/precommit.sh
......
......@@ -10,7 +10,7 @@ def main():
x = paddle.layer.data(name='x', type=paddle.data_type.dense_vector(13))
y_predict = paddle.layer.fc(input=x, size=1, act=paddle.activation.Linear())
y = paddle.layer.data(name='y', type=paddle.data_type.dense_vector(1))
cost = paddle.layer.mse_cost(input=y_predict, label=y)
cost = paddle.layer.square_error_cost(input=y_predict, label=y)
# create parameters
parameters = paddle.parameters.create(cost)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册