Fix prediction on df with latest dask. (#6969)
This commit is contained in:
parent
6e104f0570
commit
7e846bb965
@ -1000,7 +1000,7 @@ async def _direct_predict_impl( # pylint: disable=too-many-branches
|
|||||||
output_shape: Tuple[int, ...],
|
output_shape: Tuple[int, ...],
|
||||||
meta: Dict[int, str],
|
meta: Dict[int, str],
|
||||||
) -> _DaskCollection:
|
) -> _DaskCollection:
|
||||||
columns = list(meta.keys())
|
columns = tuple(meta.keys())
|
||||||
if len(output_shape) >= 3 and isinstance(data, dd.DataFrame):
|
if len(output_shape) >= 3 and isinstance(data, dd.DataFrame):
|
||||||
# Without this check, dask will finish the prediction silently even if output
|
# Without this check, dask will finish the prediction silently even if output
|
||||||
# dimension is greater than 3. But during map_partitions, dask passes a
|
# dimension is greater than 3. But during map_partitions, dask passes a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user