Unable to import sklearn.model_selection.StratifiedGroupKFold in Sagemaker Processing job

0

I'm running a Sagemaker Processing job with SKLearnProcessor processor. I tested code locally and it works fine.

from sklearn.model_selection import StratifiedGroupKFold

But when I run it on Sagemaker Processing, it gives me exception:

ImportError: cannot import name 'StratifiedGroupKFold' from 'sklearn.model_selection' (/miniconda3/lib/python3.7/site-packages/sklearn/model_selection/__init__.py)

I verified scikit-learn version on Sagemaker processiong job it shows 0.23.2. which are should have these packages but I am not sure why am I getting this error?

Any help would be appreaciated! Thanks!

AWS
Tejal_G
질문됨 6달 전213회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠