[Python] How do I save a scikit-learn model? [duplicate]

Discussão em 'Python' iniciado por Stack, Março 5, 2025.

  1. Stack

    Stack Membro Participativo

    Say, I have finished building a regression model in Python, as below:

    from sklearn import linear_model
    model = linear_model.LogisticRegression().fit(X_train, Y_train)


    How do I save the model that I have built so I could shut down my computer and work on it the next day without having to rerun the code to get the model again?

    Continue reading...

Compartilhe esta Página