Skip to content

Serialising GLM models. #465

@ablaom

Description

@ablaom

It seems that GLM models store the data that they are trained on, which I did not expect:

using GLM
using Distributions

data(N) = (rand(N, 2), rand(Bool, N))

Θ = GLM.glm(data(100)..., Distributions.Bernoulli(), GLM.LogitLink());
Base.summarysize(Θ) # 8968

Θ = GLM.glm(data(10000)..., Distributions.Bernoulli(), GLM.LogitLink());
Base.summarysize(Θ) # 800968

What then is the protocol for serialising GLM models trained on large datasets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions