Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01c8701

Browse files
montanalowlevkk
andauthored
Update pgml/pgml/model.py
Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com>
1 parentf61cc0b commit01c8701

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
ifisinstance(split,float):
216216
split=int(self.test_size*X.len())
217-
returnX[0:split],X[split:X.len()-1],y[0:split],y[split:y.len()-1]
217+
returnX[:split],X[split:],y[:split],y[split:]
218+
218219

219220
# TODO normalize and clean data
220221

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp