Rewrite DynamicLazy.sample_xy

This commit is contained in:
2021-04-12 07:41:22 -05:00
parent bccf0e9860
commit 6f6cd3018b
12 changed files with 171 additions and 40 deletions

View File

@@ -10,6 +10,7 @@ from typing import (
Any,
TYPE_CHECKING,
Tuple,
Optional,
)
import numpy as np
@@ -182,6 +183,7 @@ class PrimalSolutionComponent(Component):
@overrides
def sample_xy(
self,
_: Optional[Instance],
sample: Sample,
) -> Tuple[Dict[Category, List[List[float]]], Dict[Category, List[List[float]]]]:
x: Dict = {}