Skip to content

Commit 308472f

Browse files
committed
Hotfix misleading xratio proportion nomenclature (it is train instead of test)
1 parent d85ac03 commit 308472f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bnn_inference/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def train_impl(
227227
)
228228

229229
X_train, X_valid, y_train, y_valid = train_test_split(
230-
X_norm, y_norm, test_size=xratio, shuffle=True # 8:2 ratio
230+
X_norm, y_norm, train_size=xratio, shuffle=True # 8:2 ratio
231231
)
232232
# Convert train and test vectors to tensors
233233
X_train, y_train = torch.Tensor(X_train).float(), torch.Tensor(y_train).float()

0 commit comments

Comments
 (0)