fix extra vars error
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ matplotlib.use("Agg")
|
|
7 |
import matplotlib.pyplot as plt
|
8 |
import seaborn as sns
|
9 |
|
10 |
-
def train_estimators(
|
11 |
rng = np.random.RandomState(1)
|
12 |
X = np.linspace(0, 6, 100)[:, np.newaxis]
|
13 |
y = np.sin(X).ravel() + np.sin(6 * X).ravel() + rng.normal(0, 0.1, X.shape[0])
|
|
|
7 |
import matplotlib.pyplot as plt
|
8 |
import seaborn as sns
|
9 |
|
10 |
+
def train_estimators(n_estimators):
|
11 |
rng = np.random.RandomState(1)
|
12 |
X = np.linspace(0, 6, 100)[:, np.newaxis]
|
13 |
y = np.sin(X).ravel() + np.sin(6 * X).ravel() + rng.normal(0, 0.1, X.shape[0])
|