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

Merged

parents 85f372eb 258ada8c
No related branches found
No related tags found
No related merge requests found
Showing
with 84 additions and 5 deletions
from . import exec_classif, result_analysis, metrics, monoview_classifiers, \
monoview, multiview, utils, multiview_classifiers
__all__ = ['metrics', 'monoview', 'monoview_classifiers', 'multiview', 'utils']
__version__ = "0.0.0.0"
__url__ = "https://gitlab.lis-lab.fr/baptiste.bauvin/summit"
from . import multiview_platform, execute
...@@ -11,6 +11,10 @@ from ..monoview.monoview_utils import CustomRandint, \ ...@@ -11,6 +11,10 @@ from ..monoview.monoview_utils import CustomRandint, \
BaseMonoviewClassifier, change_label_to_minus, change_label_to_zero BaseMonoviewClassifier, change_label_to_minus, change_label_to_zero
classifier_class_name = "AdaboostGraalpy" classifier_class_name = "AdaboostGraalpy"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class AdaBoostGP(BaseEstimator, ClassifierMixin, BaseBoost): class AdaBoostGP(BaseEstimator, ClassifierMixin, BaseBoost):
"""Scikit-Learn compatible AdaBoost classifier. Original code by Pascal Germain, adapted by Jean-Francis Roy. """Scikit-Learn compatible AdaBoost classifier. Original code by Pascal Germain, adapted by Jean-Francis Roy.
......
...@@ -16,7 +16,11 @@ __status__ = "Prototype" # Production, Development, Prototype ...@@ -16,7 +16,11 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "AdaboostPregen" classifier_class_name = "AdaboostPregen"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class AdaboostPregen(AdaBoostClassifier, BaseMonoviewClassifier, class AdaboostPregen(AdaBoostClassifier, BaseMonoviewClassifier,
PregenClassifier): PregenClassifier):
......
...@@ -316,11 +316,19 @@ class CBBoostClassifier(BaseEstimator, ClassifierMixin, BaseBoost): ...@@ -316,11 +316,19 @@ class CBBoostClassifier(BaseEstimator, ClassifierMixin, BaseBoost):
def init_hypotheses(self, X, y): def init_hypotheses(self, X, y):
"""Inintialization for the hyptotheses used to build the boosted vote""" """Inintialization for the hyptotheses used to build the boosted vote"""
<<<<<<< HEAD
if self.estimators_generator is "Stumps": if self.estimators_generator is "Stumps":
self.estimators_generator = StumpsClassifiersGenerator( self.estimators_generator = StumpsClassifiersGenerator(
n_stumps_per_attribute=self.n_stumps, n_stumps_per_attribute=self.n_stumps,
self_complemented=self.self_complemented) self_complemented=self.self_complemented)
if self.estimators_generator is "Trees": if self.estimators_generator is "Trees":
=======
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 == "Trees":
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
self.estimators_generator = TreeClassifiersGenerator( self.estimators_generator = TreeClassifiersGenerator(
n_trees=self.n_stumps, max_depth=self.max_depth, n_trees=self.n_stumps, max_depth=self.max_depth,
self_complemented=self.self_complemented) self_complemented=self.self_complemented)
......
...@@ -11,6 +11,10 @@ from ..utils.hyper_parameter_search import CustomRandint ...@@ -11,6 +11,10 @@ from ..utils.hyper_parameter_search import CustomRandint
from ..monoview_classifiers.spkm import SPKM from ..monoview_classifiers.spkm import SPKM
classifier_class_name = "BaggedSPKM" classifier_class_name = "BaggedSPKM"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class BaggedSPKM(BaseMonoviewClassifier, SPKMlikeSklearn): class BaggedSPKM(BaseMonoviewClassifier, SPKMlikeSklearn):
......
...@@ -16,6 +16,10 @@ __status__ = "Prototype" # Production, Development, Prototype ...@@ -16,6 +16,10 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "Bagging" classifier_class_name = "Bagging"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class Bagging(BaggingClassifier, BaseMonoviewClassifier,): class Bagging(BaggingClassifier, BaseMonoviewClassifier,):
""" """
......
...@@ -16,6 +16,10 @@ __status__ = "Prototype" # Production, Development, Prototype ...@@ -16,6 +16,10 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "BaggingPregen" classifier_class_name = "BaggingPregen"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class BaggingPregen(BaggingClassifier, BaseMonoviewClassifier, class BaggingPregen(BaggingClassifier, BaseMonoviewClassifier,
PregenClassifier): PregenClassifier):
......
...@@ -77,8 +77,16 @@ class CBBoost(CBBoostClassifier, BaseMonoviewClassifier): ...@@ -77,8 +77,16 @@ class CBBoost(CBBoostClassifier, BaseMonoviewClassifier):
------- -------
""" """
<<<<<<< HEAD
interpret_string = self.getInterpretCBBoost(directory, base_file_name, y_test) interpret_string = self.getInterpretCBBoost(directory, base_file_name, y_test)
interpret_string += self.get_feature_importance(directory, base_file_name) 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)
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
return interpret_string return interpret_string
def get_name_for_fusion(self): def get_name_for_fusion(self):
......
...@@ -23,6 +23,10 @@ __author__ = "Baptiste Bauvin" ...@@ -23,6 +23,10 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "CBGradientBoosting" classifier_class_name = "CBGradientBoosting"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class CustomDecisionTreeGB(DecisionTreeClassifier): class CustomDecisionTreeGB(DecisionTreeClassifier):
......
...@@ -3,6 +3,10 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier, CustomRandint ...@@ -3,6 +3,10 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier, CustomRandint
classifier_class_name = "CGDesc" classifier_class_name = "CGDesc"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class CGDesc(ColumnGenerationClassifierQar, BaseMonoviewClassifier): class CGDesc(ColumnGenerationClassifierQar, BaseMonoviewClassifier):
""" """
......
...@@ -6,6 +6,10 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier ...@@ -6,6 +6,10 @@ from ..monoview.monoview_utils import BaseMonoviewClassifier
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "CQBoost" classifier_class_name = "CQBoost"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier): class CQBoost(ColumnGenerationClassifier, BaseMonoviewClassifier):
......
...@@ -12,6 +12,10 @@ __author__ = "Baptiste Bauvin" ...@@ -12,6 +12,10 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "DecisionTreePregen" classifier_class_name = "DecisionTreePregen"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class DecisionTreePregen(DecisionTreeClassifier, BaseMonoviewClassifier, class DecisionTreePregen(DecisionTreeClassifier, BaseMonoviewClassifier,
PregenClassifier): PregenClassifier):
......
...@@ -17,6 +17,10 @@ __status__ = "Prototype" # Production, Development, Prototype ...@@ -17,6 +17,10 @@ __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "GradientBoostingPregen" classifier_class_name = "GradientBoostingPregen"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class GradientBoostingPregen(GradientBoostingClassifier, BaseMonoviewClassifier, class GradientBoostingPregen(GradientBoostingClassifier, BaseMonoviewClassifier,
PregenClassifier): PregenClassifier):
......
...@@ -7,6 +7,10 @@ import numpy.ma as ma ...@@ -7,6 +7,10 @@ import numpy.ma as ma
import math import math
classifier_class_name = "CBBoostGradientBoosting" classifier_class_name = "CBBoostGradientBoosting"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class CBBoostGradientBoosting(CBBoostClassifier, BaseMonoviewClassifier): class CBBoostGradientBoosting(CBBoostClassifier, BaseMonoviewClassifier):
""" """
......
...@@ -8,6 +8,10 @@ from ..utils.base import base_boosting_estimators ...@@ -8,6 +8,10 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBRF" classifier_class_name = "IBRF"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class IBRF(BaseMonoviewClassifier, BalancedBaggingClassifier): class IBRF(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
...@@ -8,6 +8,10 @@ from ..utils.base import base_boosting_estimators ...@@ -8,6 +8,10 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBRSCM" classifier_class_name = "IBRSCM"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class IBRSCM(BaseMonoviewClassifier, BalancedBaggingClassifier): class IBRSCM(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
...@@ -7,6 +7,10 @@ from ..utils.base import base_boosting_estimators ...@@ -7,6 +7,10 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "IBSCM" classifier_class_name = "IBSCM"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class IBSCM(BaseMonoviewClassifier, BalancedBaggingClassifier): class IBSCM(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
...@@ -7,6 +7,10 @@ from ..utils.base import base_boosting_estimators ...@@ -7,6 +7,10 @@ from ..utils.base import base_boosting_estimators
from ..utils.hyper_parameter_search import CustomRandint, CustomUniform from ..utils.hyper_parameter_search import CustomRandint, CustomUniform
classifier_class_name = "ImbalanceBagging" classifier_class_name = "ImbalanceBagging"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
class ImbalanceBagging(BaseMonoviewClassifier, BalancedBaggingClassifier): class ImbalanceBagging(BaseMonoviewClassifier, BalancedBaggingClassifier):
......
...@@ -8,6 +8,7 @@ __author__ = "Baptiste Bauvin" ...@@ -8,6 +8,7 @@ __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype __status__ = "Prototype" # Production, Development, Prototype
classifier_class_name = "KNN" classifier_class_name = "KNN"
proto=True
class KNN(KNeighborsClassifier, BaseMonoviewClassifier): class KNN(KNeighborsClassifier, BaseMonoviewClassifier):
......
...@@ -23,6 +23,10 @@ from .additions.BoostUtils import ConvexProgram as QP ...@@ -23,6 +23,10 @@ from .additions.BoostUtils import ConvexProgram as QP
classifier_class_name = "MinCQ" classifier_class_name = "MinCQ"
<<<<<<< HEAD
=======
proto=True
>>>>>>> 258ada8c7e5025f984b03343596557abe8d3f5a4
# from majority_vote import MajorityVote # from majority_vote import MajorityVote
# from voter import StumpsVotersGenerator, KernelVotersGenerator # from voter import StumpsVotersGenerator, KernelVotersGenerator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment