質問編集履歴
2
エラー文の詳細追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,8 +5,26 @@
|
|
5
5
|
### 発生している問題・エラーメッセージ
|
6
6
|
|
7
7
|
```
|
8
|
-
|
9
|
-
|
8
|
+
Start
|
9
|
+
/ユーザー名/anaconda3/lib/python3.10/site-packages/sklearn/datasets/_openml.py:1002: FutureWarning: The default value of `parser` will change from `'liac-arff'` to `'auto'` in 1.4. You can set `parser='auto'` to silence this warning. Therefore, an `ImportError` will be raised from 1.4 if the dataset is dense and pandas is not installed. Note that the pandas parser may return different data types. See the Notes Section in fetch_openml's API doc for details.
|
10
|
+
warn(
|
11
|
+
epoch 0
|
12
|
+
Traceback (most recent call last):
|
13
|
+
|
14
|
+
File ~/anaconda3/lib/python3.10/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
|
15
|
+
exec(code, globals, locals)
|
16
|
+
|
17
|
+
File ~/Library/CloudStorage/保存先名/spyder/保存ファイル名.py:48
|
18
|
+
x = Variable(x_all[indexes[i : i + BATCHSIZE]])
|
19
|
+
|
20
|
+
File ~/anaconda3/lib/python3.10/site-packages/pandas/core/frame.py:3813 in __getitem__
|
21
|
+
indexer = self.columns._get_indexer_strict(key, "columns")[1]
|
22
|
+
|
23
|
+
File ~/anaconda3/lib/python3.10/site-packages/pandas/core/indexes/base.py:6070 in _get_indexer_strict
|
24
|
+
self._raise_if_missing(keyarr, indexer, axis_name)
|
25
|
+
|
26
|
+
File ~/anaconda3/lib/python3.10/site-packages/pandas/core/indexes/base.py:6130 in _raise_if_missing
|
27
|
+
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
|
10
28
|
|
11
29
|
KeyError: "None of [Int64Index([35591, 20294, 18337, 16931, 13072, 69126, 39634, 25769, 11346,\n 51243, 21720, 20385, 62344, 43301, 26070, 34432, 34125, 68804,\n 51753, 36023, 69494, 28196, 9979, 6770, 32787, 41588, 68411,\n 11848, 25625, 7457, 28528, 24608, 9720, 58788, 29144, 64967,\n 24248, 3573, 20452, 40200, 789, 69971, 61182, 64594, 21509,\n 69578, 64162, 24641, 22162, 29223, 57707, 16098, 27149, 37215,\n 29198, 53891, 26750, 28734, 60063, 21480, 40913, 39801, 65790,\n 50183, 57479, 17439, 793, 35548, 15707, 3294, 62658, 44846,\n 3386, 7345, 53687, 19329, 69516, 52891, 1857, 24471, 49636,\n 62473, 65023, 66143, 8098, 59403, 36681, 60229, 34429, 53443,\n 38653, 13604, 53509, 13794, 67996, 11017, 51464, 35539, 69727,\n 13377],\n dtype='int64')] are in the [columns]"
|
12
30
|
```
|
1
エラー文,試したことの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,9 +5,18 @@
|
|
5
5
|
### 発生している問題・エラーメッセージ
|
6
6
|
|
7
7
|
```
|
8
|
+
File ~/anaconda3/lib/python3.10/site-packages/pandas/core/indexes/base.py:6130 in _raise_if_missing
|
8
9
|
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
|
9
10
|
|
10
11
|
KeyError: "None of [Int64Index([35591, 20294, 18337, 16931, 13072, 69126, 39634, 25769, 11346,\n 51243, 21720, 20385, 62344, 43301, 26070, 34432, 34125, 68804,\n 51753, 36023, 69494, 28196, 9979, 6770, 32787, 41588, 68411,\n 11848, 25625, 7457, 28528, 24608, 9720, 58788, 29144, 64967,\n 24248, 3573, 20452, 40200, 789, 69971, 61182, 64594, 21509,\n 69578, 64162, 24641, 22162, 29223, 57707, 16098, 27149, 37215,\n 29198, 53891, 26750, 28734, 60063, 21480, 40913, 39801, 65790,\n 50183, 57479, 17439, 793, 35548, 15707, 3294, 62658, 44846,\n 3386, 7345, 53687, 19329, 69516, 52891, 1857, 24471, 49636,\n 62473, 65023, 66143, 8098, 59403, 36681, 60229, 34429, 53443,\n 38653, 13604, 53509, 13794, 67996, 11017, 51464, 35539, 69727,\n 13377],\n dtype='int64')] are in the [columns]"
|
12
|
+
```
|
13
|
+
|
14
|
+
### 試したこと
|
15
|
+
おそらくこの部分がおかしいのではないかと思い,.valuesを加えたりと試したのですが解消されませんでした
|
16
|
+
```
|
17
|
+
for i in range(0, DATASIZE, BATCHSIZE):
|
18
|
+
x = Variable(x_all[indexes[i : i + BATCHSIZE]])
|
19
|
+
t = Variable(y_all[indexes[i : i + BATCHSIZE]])
|
11
20
|
```
|
12
21
|
|
13
22
|
### 該当のソースコード
|
@@ -68,4 +77,3 @@
|
|
68
77
|
serializers.save_npz("mymodel.npz", model)
|
69
78
|
|
70
79
|
print('Finish')
|
71
|
-
|