Deployment Error - Scikit-Learn Version Mismatch

During deployment, I encountered an error due to a version mismatch in the scikit-learn library. The sklearn.metrics._dist_metrics module differs between versions 1.2.2 and 1.3.0, causing issues with EuclideanDistance() . It seems they replaced it with EuclideanDistance64() in 1.3.0.

To ensure the same scikit-learn version (1.3.0) is installed in the inference environment. How can we set up the requirement for the inference environment?

Hi @datorresb ,

You are running against our serverless deployment (https://app.hopsworks.ai) - am I correct?

Regards,
Fabio

Yes, I was following the tutorials of serverless course

Hi @datorresb ,
You can now manage your own python environment on https://app.hopsworks.ai

Regards,
Ermias