質問編集履歴

2

コードの編集

2021/12/11 12:15

投稿

hima-mura.
hima-mura.

スコア42

test CHANGED
File without changes
test CHANGED
@@ -65,8 +65,6 @@
65
65
  print('並行')
66
66
 
67
67
  with concurrent.futures.ProcessPoolExecutor(2) as executor:
68
-
69
- # print(forcount(0))
70
68
 
71
69
  print('開始')
72
70
 

1

コードの編集

2021/12/11 12:15

投稿

hima-mura.
hima-mura.

スコア42

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,12 @@
1
1
  ```# data_predicting.py
2
+
3
+ from tqdm import tqdm
4
+
5
+ import concurrent.futures
6
+
7
+ import numpy as np
8
+
9
+
2
10
 
3
11
  class PredictData:
4
12
 
@@ -33,12 +41,6 @@
33
41
  forest=GradientBoostingClassifier(random_state=random_st,n_estimators=i,max_depth=j,learning_rate=k)
34
42
 
35
43
  forest=forest.fit(self.X_train_trans,self.y_train)
36
-
37
- # print(f'GraForestCl_Train Score n_es{i},max{j},rate{k}:{forest.score(self.X_train_trans,self.y_train)}')
38
-
39
- # print(f'GraForestCl_Test Score n_es{i},max{j},rate{k}:{forest.score(self.X_test_trans,self.y_test)}')
40
-
41
- # print()
42
44
 
43
45
  if forest.score(self.X_test_trans,self.y_test) > param[0]:
44
46