質問するログイン新規登録

回答編集履歴

1

修正

2020/06/28 06:28

投稿

tiitoi
tiitoi

スコア21962

answer CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
  def to_polynominal_feature(x):
39
- return np.column_stack([x ** 2, x ** 0]) # [1, x^2]
39
+ return np.column_stack([x ** 2, x ** 0]) # [x^2, 1]
40
40
 
41
41
 
42
42
  X_train = to_polynominal_feature(x_train)