File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def evaluation(feature_possibilities):
153
153
true_number = np .array (np .unique (feature_take_or_not , return_counts = True )).T
154
154
155
155
156
- bestX = X [:, gene_take_or_not ]
156
+ bestX = X [:, feature_take_or_not ]
157
157
158
158
print (true_number )
159
159
@@ -162,7 +162,7 @@ def evaluation(feature_possibilities):
162
162
evaluation = cross_val_score (s , bestX , y , cv = loocv )
163
163
print ("Final Accuracy: %.6f%% (%.6f%%)" % (evaluation .mean (), evaluation .std ()))
164
164
165
- total = ((df .drop ("Label" , axis = 1 ).columns .values , gene_take_or_not , Best ))
165
+ total = ((df .drop ("Label" , axis = 1 ).columns .values , feature_take_or_not , Best ))
166
166
167
167
df2 = pd .DataFrame (total , ["Features" , "Selection" , "Importance" ])
168
168
df2 .to_excel (f"FF-SVM-Feature-Selection-{ file_ } " , index = False )
You can’t perform that action at this time.
0 commit comments