Skip to content
Snippets Groups Projects
Commit 258ada8c authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Expes th"

parent ac8ca802
No related branches found
No related tags found
No related merge requests found
Pipeline #10768 failed
Showing
with 25 additions and 5 deletions
......@@ -11,6 +11,7 @@ from ..monoview.monoview_utils import CustomRandint, \
BaseMonoviewClassifier, change_label_to_minus, change_label_to_zero
classifier_class_name = "AdaboostGraalpy"
proto=True
class AdaBoostGP(BaseEstimator, ClassifierMixin, BaseBoost):
"""Scikit-Learn compatible AdaBoost classifier. Original code by Pascal Germain, adapted by Jean-Francis Roy.
......
......@@ -16,7 +16,7 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "AdaboostPregen"
proto=True
class AdaboostPregen(AdaBoostClassifier, BaseMonoviewClassifier,
PregenClassifier):
......
......@@ -316,11 +316,11 @@ class CBBoostClassifier(BaseEstimator, ClassifierMixin, BaseBoost):
def init_hypotheses(self, X, y):
"""Inintialization for the hyptotheses used to build the boosted vote"""
if self.estimators_generator is "Stumps":
if self.estimators_generator == "Stumps":
self.estimators_generator = StumpsClassifiersGenerator(
n_stumps_per_attribute=self.n_stumps,
self_complemented=self.self_complemented)
if self.estimators_generator is "Trees":
if self.estimators_generator == "Trees":
self.estimators_generator = TreeClassifiersGenerator(
n_trees=self.n_stumps, max_depth=self.max_depth,
self_complemented=self.self_complemented)
......
......@@ -11,6 +11,7 @@ from ..utils.hyper_parameter_search import CustomRandint
from ..monoview_classifiers.spkm import SPKM
classifier_class_name = "BaggedSPKM"
proto=True
class BaggedSPKM(BaseMonoviewClassifier, SPKMlikeSklearn):
......
......@@ -16,6 +16,7 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "Bagging"
proto=True
class Bagging(BaggingClassifier, BaseMonoviewClassifier,):
"""
......
......@@ -16,6 +16,7 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "BaggingPregen"
proto=True
class BaggingPregen(BaggingClassifier, BaseMonoviewClassifier,
PregenClassifier):
......
......@@ -77,8 +77,11 @@ class CBBoost(CBBoostClassifier, BaseMonoviewClassifier):
-------
"""
interpret_string = self.getInterpretCBBoost(directory, base_file_name, y_test)
interpret_string += self.get_feature_importance(directory, base_file_name)
interpret_string = self.getInterpretCBBoost(directory, base_file_name,
y_test)
interpret_string += self.get_feature_importance(directory,
base_file_name,
feature_ids)
return interpret_string
def get_name_for_fusion(self):
......
......@@ -23,6 +23,7 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "CBGradientBoosting"
proto=True
class CustomDecisionTreeGB(DecisionTreeClassifier):
......
......@@ -3,6 +3,7 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier, CustomRandint
classifier_class_name = "CGDesc"
proto=True
class CGDesc(ColumnGenerationClassifierQar, BaseMonoviewClassifier):
"""
......
......@@ -6,6 +6,7 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "CQBoost"
proto=True
class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier):
......
......@@ -12,6 +12,7 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "DecisionTreePregen"
proto=True
class DecisionTreePregen(DecisionTreeClassifier, BaseMonoviewClassifier,
PregenClassifier):
......
......@@ -17,6 +17,7 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "GradientBoostingPregen"
proto=True
class GradientBoostingPregen(GradientBoostingClassifier, BaseMonoviewClassifier,
PregenClassifier):
......
......@@ -7,6 +7,7 @@ import numpy.ma as ma
import math
classifier_class_name = "CBBoostGradientBoosting"
proto=True
class CBBoostGradientBoosting(CBBoostClassifier, BaseMonoviewClassifier):
"""
......
......@@ -8,6 +8,7 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBRF"
proto=True
class IBRF(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
......@@ -8,6 +8,7 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBRSCM"
proto=True
class IBRSCM(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
......@@ -7,6 +7,7 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBSCM"
proto=True
class IBSCM(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
......@@ -7,6 +7,7 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "ImbalanceBagging"
proto=True
class ImbalanceBagging(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
......@@ -8,6 +8,7 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "KNN"
proto=True
class KNN(KNeighborsClassifier, BaseMonoviewClassifier):
......
......@@ -23,6 +23,7 @@ from .additions.BoostUtils import ConvexProgram as QP
classifier_class_name = "MinCQ"
proto=True
# from majority_vote import MajorityVote
# from voter import StumpsVotersGenerator, KernelVotersGenerator
......
......@@ -6,6 +6,7 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "MinCQGraalpy"
proto=True
class MinCQGraalpy(RegularizedBinaryMinCqClassifier, BaseMonoviewClassifier):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment