mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 17:38:51 -06:00
Remove unused imports and attributes
This commit is contained in:
@@ -6,8 +6,6 @@ from copy import deepcopy
|
|||||||
|
|
||||||
from miplearn.classifiers.adaptive import AdaptiveClassifier
|
from miplearn.classifiers.adaptive import AdaptiveClassifier
|
||||||
from miplearn.components import classifier_evaluation_dict
|
from miplearn.components import classifier_evaluation_dict
|
||||||
from sklearn.metrics import roc_curve
|
|
||||||
from p_tqdm import p_map
|
|
||||||
|
|
||||||
from .component import Component
|
from .component import Component
|
||||||
from ..extractors import *
|
from ..extractors import *
|
||||||
@@ -23,10 +21,8 @@ class PrimalSolutionComponent(Component):
|
|||||||
def __init__(self,
|
def __init__(self,
|
||||||
classifier=AdaptiveClassifier(),
|
classifier=AdaptiveClassifier(),
|
||||||
mode="exact",
|
mode="exact",
|
||||||
threshold=0.50,
|
threshold=0.50):
|
||||||
):
|
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
self.is_warm_start_available = False
|
|
||||||
self.classifiers = {}
|
self.classifiers = {}
|
||||||
self.threshold = threshold
|
self.threshold = threshold
|
||||||
self.classifier_prototype = classifier
|
self.classifier_prototype = classifier
|
||||||
|
|||||||
Reference in New Issue
Block a user