🌐 AI搜索 & 代理 主页
Skip to content

Commit 4ca1a5f

Browse files
author
Montana Low
committed
Merge branch 'montana/readme' of github.com:postgresml/postgresml into montana/readme
2 parents aa44f94 + ffedbc5 commit 4ca1a5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pgml/pgml/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def data(self):
214214
split = self.test_size
215215
if isinstance(split, float):
216216
split = int(self.test_size * X.len())
217-
return X[0:split], X[split:X.len()-1], y[0:split], y[split:y.len()-1]
217+
return X[:split], X[split:], y[:split], y[split:]
218+
218219

219220
# TODO normalize and clean data
220221

0 commit comments

Comments
 (0)