mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Fix failing tests
This commit is contained in:
@@ -312,6 +312,7 @@ class Hdf5Sample(Sample):
|
|||||||
|
|
||||||
|
|
||||||
def _pad(veclist: VectorList) -> Tuple[VectorList, List[int]]:
|
def _pad(veclist: VectorList) -> Tuple[VectorList, List[int]]:
|
||||||
|
veclist = deepcopy(veclist)
|
||||||
lens = [len(v) if v is not None else -1 for v in veclist]
|
lens = [len(v) if v is not None else -1 for v in veclist]
|
||||||
maxlen = max(lens)
|
maxlen = max(lens)
|
||||||
|
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ if __name__ == "__main__":
|
|||||||
extractor = FeaturesExtractor(with_lhs=False)
|
extractor = FeaturesExtractor(with_lhs=False)
|
||||||
sample = Hdf5Sample("tmp/prof.h5", mode="w")
|
sample = Hdf5Sample("tmp/prof.h5", mode="w")
|
||||||
|
|
||||||
def run():
|
def run() -> None:
|
||||||
extractor.extract_after_load_features(instance, solver, sample)
|
extractor.extract_after_load_features(instance, solver, sample)
|
||||||
extractor.extract_after_lp_features(solver, sample)
|
extractor.extract_after_lp_features(solver, sample)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user