Skip to content

Commit 4fd17e9

Browse files
committed
Update train.py
1 parent 056f051 commit 4fd17e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/training/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262
X, y = load_diabetes(return_X_y=True)
6363
columns = ["age", "gender", "bmi", "bp", "s1", "s2", "s3", "s4", "s5", "s6"]
6464
X_train, X_test, y_train, y_test = train_test_split(
65-
X, y, test_size=0.2, random_state=0)
65+
X, y, test_size=0.3, random_state=0)
6666
data = {"train": {"X": X_train, "y": y_train},
6767
"test": {"X": X_test, "y": y_test}}
6868

6969
print("Running train.py")
7070

7171
# Randomly pic alpha
72-
alphas = np.arange(2.0, 3.0, 4.0)
72+
alphas = np.arange(0.1, 0.2, 0.3)
7373
alpha = alphas[np.random.choice(alphas.shape[0], 1, replace=False)][0]
7474
print(alpha)
7575
run.log("alpha", alpha)

0 commit comments

Comments
 (0)