質問編集履歴
2
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,23 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
![イメージ説明](19ff036361ddb4cdc2a49538d7423cdd.png)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
# 特徴量の寄与率を計算
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
importances = clf.feature_importances_
|
24
|
+
|
25
|
+
print("{0:<20}".format ("feature names"), "importances")
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
feature_names = df8.feature_names
|
30
|
+
|
31
|
+
for (feature_name, importance) in zip(feature_names, importances):
|
32
|
+
|
33
|
+
print("{0:<20}".format (feature_name), importance)
|
1
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,28 +10,4 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
A B C D
|
14
|
-
|
15
|
-
0 7 24 0 0
|
16
|
-
|
17
|
-
1 4 16 0 0
|
18
|
-
|
19
|
-
2 0 0 0 0
|
20
|
-
|
21
|
-
3 0 0 0 0
|
22
|
-
|
23
|
-
4 6 17 0 0
|
24
|
-
|
25
|
-
5 0 7 0 0
|
26
|
-
|
27
|
-
6 0 0 0 0
|
28
|
-
|
29
|
-
7 4 2 5 0
|
30
|
-
|
31
|
-
8 6 36 0 0
|
32
|
-
|
33
|
-
9 1 44 0 0
|
34
|
-
|
35
|
-
10 3 1 0 0
|
36
|
-
|
37
|
-
11
|
13
|
+
![イメージ説明](19ff036361ddb4cdc2a49538d7423cdd.png)
|