Skip to content

Commit 13c1d1f

Browse files
committed
set constants for friedman2 to apper default
1 parent cdd25b4 commit 13c1d1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simulation_5cv.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ def mae(y_true, y_pred):
3232

3333
# Constants
3434
N_SAMPLES = 20000
35-
N_INPUTS = 20
35+
N_INPUTS = 10
3636
N_COMPONENTS = 20
3737
SIGNAL_TO_NOISE = 1.0
38+
N_NOISE = 5
3839
N_ROUNDS = 15
3940

4041
PARAMS = {
@@ -58,6 +59,7 @@ def mae(y_true, y_pred):
5859
X, y = gen_friedman_data(n_samples=N_SAMPLES,
5960
n_inputs=N_INPUTS,
6061
n_components=N_COMPONENTS,
62+
n_noise=N_NOISE,
6163
stn=SIGNAL_TO_NOISE)
6264

6365
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25)

0 commit comments

Comments
 (0)