mirror of
https://github.com/Doctorado-ML/bayesclass.git
synced 2025-08-18 09:05:55 +00:00
Chcked mutual_info with sklearn
This commit is contained in:
10
test.py
Normal file
10
test.py
Normal 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)
|
Reference in New Issue
Block a user