Remove unused imports and attributes

This commit is contained in:
2020-04-15 18:06:42 -05:00
parent f227b18758
commit d13a548e80

View File

@@ -6,8 +6,6 @@ from copy import deepcopy
from miplearn.classifiers.adaptive import AdaptiveClassifier
from miplearn.components import classifier_evaluation_dict
from sklearn.metrics import roc_curve
from p_tqdm import p_map
from .component import Component
from ..extractors import *
@@ -23,10 +21,8 @@ class PrimalSolutionComponent(Component):
def __init__(self,
classifier=AdaptiveClassifier(),
mode="exact",
threshold=0.50,
):
threshold=0.50):
self.mode = mode
self.is_warm_start_available = False
self.classifiers = {}
self.threshold = threshold
self.classifier_prototype = classifier