def __init__(self, norm_type="Normalization", iterations=5, base_classifier="SVM"):
     self.iterations = iterations
     self.norm_type = norm_type
     self.base_classifier = SVM.SVMClassifier()
     self.prediction = None
     self.probability = None
     self.classifier_set = None
Example #2
0
    def __init__(self, norm_type="Normalization", iterations=5, base_classifier="SVM"):
        self.iterations = iterations
        self.norm_type = norm_type
        self.prediction = None
        self.probability = None
        self.classifier_set = None

        if base_classifier == "SVM":
            self.base_classifier = SVM.SVMClassifier()
        elif base_classifier == "KNN":
            self.base_classifier = KNN.KNNClassifier()
        elif base_classifier == "DecisionTree":
            self.base_classifier = DecisionTree.DecisionTreeClassifier()
        elif base_classifier == "Logistic":
            self.base_classifier = Logistic.LogisticRegressionClassifier()
        elif base_classifier == "Perceptron":
            self.base_classifier = Perceptron.PerceptronClassifier()