質問編集履歴
4
コードの編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
```
|
2
|
+
# data_predicting.py
|
3
|
+
|
2
4
|
from tqdm import tqdm
|
3
5
|
import concurrent.futures
|
4
6
|
|
3
コードの編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,6 +48,7 @@
|
|
48
48
|
|
49
49
|
開始
|
50
50
|
途中
|
51
|
+
print(future.result())の部分で
|
51
52
|
AttributeError:Can't pickle local object
|
52
53
|
'PredictData.GraForestCl_predict_data.<locals>.forcount'
|
53
54
|
|
2
コードの編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -51,7 +51,6 @@
|
|
51
51
|
AttributeError:Can't pickle local object
|
52
52
|
'PredictData.GraForestCl_predict_data.<locals>.forcount'
|
53
53
|
|
54
|
-
# 本来なら「開始」と「途中」の間に「start」が2個表示されるはず
|
55
54
|
'''
|
56
55
|
```
|
57
56
|
GraForestCl_predict_data関数の中のforcount関数を並行処理したいのですが、予想ですがsubmitされておらずforcount関数が作動しません。
|
1
コードの編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
```
|
2
|
+
from tqdm import tqdm
|
3
|
+
import concurrent.futures
|
4
|
+
|
2
5
|
class PredictData:
|
3
6
|
def __init__(self,X_train_trans,X_test_trans,y_train,y_test):
|
4
7
|
self.X_train_trans=X_train_trans
|