質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,3 +55,35 @@
|
|
55
55
|
|
56
56
|
|
57
57
|
```
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
追記
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
jupyternotebook エラー
|
68
|
+
|
69
|
+
```ここに言語を入力
|
70
|
+
|
71
|
+
NameError Traceback (most recent call last)
|
72
|
+
|
73
|
+
<ipython-input-1-4900cee0be20> in <module>
|
74
|
+
|
75
|
+
1 from sklearn.linear_model import LinearRegression
|
76
|
+
|
77
|
+
2
|
78
|
+
|
79
|
+
----> 3 X,y = mglearn.datasets.make_wave(n_samples = 60)
|
80
|
+
|
81
|
+
4 X_train,X_test,y_train,y_test = train_test_split(X,yrandom_state = 42 )
|
82
|
+
|
83
|
+
5 lr = LinearRegression().fit(X_train,y_train)
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
NameError: name 'mglearn' is not defined
|
88
|
+
|
89
|
+
```
|