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

質問編集履歴

1

エラーが出る行を更新

2018/10/25 03:29

投稿

physics303
physics303

スコア89

title CHANGED
File without changes
body CHANGED
@@ -38,4 +38,8 @@
38
38
  と書き換えましたが、エラーがでます。なぜでしょう。
39
39
 
40
40
  エラー内容:
41
- IndexError: index 1 is out of bounds for axis 0 with size 1
41
+ IndexError: index 1 is out of bounds for axis 0 with size 1
42
+
43
+ エラーがでる行は
44
+ input_vec[j][i] = X[j]**i
45
+ の行です。