Chcked mutual_info with sklearn

This commit is contained in:
2023-06-23 01:21:24 +02:00
parent 0094d500d4
commit 30cc744033
7 changed files with 982 additions and 386 deletions

10
test.py Normal file
View File

@@ -0,0 +1,10 @@
from bayesclass.cppSelectFeatures import CSelectKBestWeighted
X = [[x for x in range(i, i + 3)] for i in range(1, 30, 3)]
weights = [25 / (i + 1) for i in range(10)]
labels = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test = CSelectKBestWeighted(X, labels, weights, 3)
test.fit()
for item in test.get_score():
print(item)