Retrieve linear regression Scikit model (SOLVED)

rtruan
rtruan Dataiku DSS Core Concepts, Registered, Frontrunner 2022 Finalist, Frontrunner 2022 Participant Posts: 8 ✭✭✭✭
edited July 2024 in Using Dataiku

Hello,

Do any of you how to retrieve the associated scikit linear regression model from DSS?

The sample code in the documentation is:

import dataiku
m = dataiku.Model(my_model_id)
my_predictor = m.get_predictor()
my_clf = my_predictor._clf
coefs=my_clf.coef_
intercept=my_clf.intercept_
Now it works, I had forgotten the () after get_predictor.
Best regards

Answers

  • CoreyS
    CoreyS Dataiker Alumni, Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Registered Posts: 1,149 ✭✭✭✭✭✭✭✭✭

    Hi @rtruan
    glad to see you were able to figure it out!

Setup Info
    Tags
      Help me…