Skip to content

Commit a006c54

Browse files
committed
fix code style #9660
1 parent e5113da commit a006c54

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python/paddle/dataset/uci_housing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,18 @@ def reader():
117117

118118
return reader
119119

120+
120121
def fluid_model():
121-
parameter_tar = paddle.dataset.common.download(FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar')
122+
parameter_tar = paddle.dataset.common.download(
123+
FLUID_URL_MODEL, 'uci_housing', FLUID_MD5_MODEL, 'fit_a_line.fluid.tar')
122124

123125
tar = tarfile.TarFile(parameter_tar, mode='r')
124126
dirpath = tempfile.mkdtemp()
125127
tar.extractall(path=dirpath)
126128

127129
return dirpath
128130

131+
129132
def predict_reader():
130133
"""
131134
It returns just one tuple data to do inference.
@@ -135,12 +138,13 @@ def predict_reader():
135138
"""
136139
global UCI_TEST_DATA
137140
load_data(paddle.dataset.common.download(URL, 'uci_housing', MD5))
138-
return (UCI_TEST_DATA[0][:-1],)
141+
return (UCI_TEST_DATA[0][:-1], )
139142

140143

141144
def fetch():
142145
paddle.dataset.common.download(URL, 'uci_housing', MD5)
143146

147+
144148
def convert(path):
145149
"""
146150
Converts dataset to recordio format

0 commit comments

Comments
 (0)