We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d1e21 commit 86d7424Copy full SHA for 86d7424
FF-SVM.py
@@ -153,7 +153,7 @@ def evaluation(feature_possibilities):
153
true_number = np.array(np.unique(feature_take_or_not, return_counts=True)).T
154
155
156
-bestX = X[:, gene_take_or_not]
+bestX = X[:, feature_take_or_not]
157
158
print(true_number)
159
@@ -162,7 +162,7 @@ def evaluation(feature_possibilities):
162
evaluation = cross_val_score(s, bestX, y, cv=loocv)
163
print("Final Accuracy: %.6f%% (%.6f%%)" % (evaluation.mean(), evaluation.std()))
164
165
-total = ((df.drop("Label", axis=1).columns.values, gene_take_or_not, Best))
+total = ((df.drop("Label", axis=1).columns.values, feature_take_or_not, Best))
166
167
df2 = pd.DataFrame(total, ["Features", "Selection", "Importance"])
168
df2.to_excel(f"FF-SVM-Feature-Selection-{file_}", index=False)
0 commit comments