From a006c54c117755a47906271d46035c2528774664 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 12 Apr 2018 20:13:05 +0800 Subject: [PATCH] fix code style #9660 --- python/paddle/dataset/uci_housing.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/paddle/dataset/uci_housing.py b/python/paddle/dataset/uci_housing.py index f44b4b8cf..fbfa477d0 100644 --- a/python/paddle/dataset/uci_housing.py +++ b/python/paddle/dataset/uci_housing.py @@ -117,8 +117,10 @@ def test(): return reader + def fluid_model(): - parameter_tar = paddle.dataset.common.download(FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar') + parameter_tar = paddle.dataset.common.download( + FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar') tar = tarfile.TarFile(parameter_tar, mode='r') dirpath = tempfile.mkdtemp() @@ -126,6 +128,7 @@ def fluid_model(): return dirpath + def predict_reader(): """ It returns just one tuple data to do inference. @@ -135,12 +138,13 @@ def predict_reader(): """ global UCI_TEST_DATA load_data(paddle.dataset.common.download(URL, 'uci_housing', MD5)) - return (UCI_TEST_DATA[0][:-1],) + return (UCI_TEST_DATA[0][:-1], ) def fetch(): paddle.dataset.common.download(URL, 'uci_housing', MD5) + def convert(path): """ Converts dataset to recordio format -- GitLab