1
$\begingroup$

I want to construct a python micro service to generate predictions based on inputs from web via an API. I have trained a logistic regression model, but need to create a python script to run in AWS lambda or a container with minimum set of libraries. How do I see and possibly export the model parameters?

$\endgroup$
1
  • 1
    $\begingroup$ Logistic regression only has one parameter, a vector. Save it as an array somewhere. $\endgroup$
    – Emre
    Commented Jun 29, 2017 at 5:54

1 Answer 1

1
$\begingroup$

I'm not sure if that's what you are looking for - but you should check out the package 'pickle'. You can use it to easily dump your model into a file and load it again.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.