Closed saucisson closed 6 years ago
The result of voting seems to be always less efficient than the best algorithm.
It's possible.
Imagine this case :
algo 1
with score=1000algo 2
with score=800algo 3
with score=600Let imagine that algo 1
vote for class 1 which is the good answer. algo 2
and algo 3
vote for the class 2. The results will be the class 2 : the bad answer.
I got improvement of score with this :
ALGORITHMS["voting-classifier"] = lambda _: VotingClassifier(
[
("decision-tree", DecisionTreeClassifier()),
("random-forest", RandomForestClassifier(
n_estimators=30,
max_features=None,
)),
("svm", SVC(probability=True))
],
voting='soft'
)
Try to enhance results by voting among the results of several algorithms.