[libcamera-devel] [PATCH 1/3] utils: raspberrypi: ctt: Fix namespace for sklearn NearestCentroid function
Naushir Patuck
naush at raspberrypi.com
Wed Jul 21 15:08:50 CEST 2021
Hi David,
Thank you for fixing this!
On Wed, 21 Jul 2021 at 12:52, David Plowman <david.plowman at raspberrypi.com>
wrote:
> The NearestCentroid function is now in the sklearn.neighbors
> namespace.
>
> Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
>
Reviewed-by: Naushir Patuck <naush at raspberrypi.com>
> ---
> utils/raspberrypi/ctt/ctt_tools.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/raspberrypi/ctt/ctt_tools.py
> b/utils/raspberrypi/ctt/ctt_tools.py
> index 48e0aac2..8728ff16 100644
> --- a/utils/raspberrypi/ctt/ctt_tools.py
> +++ b/utils/raspberrypi/ctt/ctt_tools.py
> @@ -14,7 +14,7 @@ import imutils
> import sys
> import matplotlib.pyplot as plt
> from sklearn import cluster as cluster
> -from sklearn.neighbors.nearest_centroid import NearestCentroid as
> get_centroids
> +from sklearn.neighbors import NearestCentroid as get_centroids
>
> """
> This file contains some useful tools, the details of which aren't
> important to
> --
> 2.20.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20210721/18c5b034/attachment-0001.htm>
More information about the libcamera-devel
mailing list