No module named sklearn.linear_model.logistic when I do dataiku.Model(model_name).get_predictor()

msr
msr Partner, Registered Posts: 9 Partner

I am trying to get the predictor name of a model, so that I can further get the coefficients of LR model, but I am getting the following error-

"No module named sklearn.linear_model.logistic" when I do dataiku.Model(model_name).get_predictor()

Screenshot 2022-08-18 162638.png

Tagged:

Best Answer

  • Miguel Angel
    Miguel Angel Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 118 Dataiker
    Answer ✓

    Hi,

    It seems a package is missing in your code env. You can check that on Administration > Code Envs > <select the notebook's code env> > Currently installed packages

    Do you find 'scikit-learn' among them? If so, what version is it?, it may need to be updated.

    If not, could you please make sure the code env used for this notebook has installed the 'Visual Machine Learning (scikit-learn, XGBoost,LightGBM)' package set?

Answers

Setup Info
    Tags
      Help me…