Skip to content

reduce size of instances for pickling, remove_data for predict #176

Closed

Description

@josef-pkt

When doing prediction the original data for the fit is not necessary anymore (maybe not true in some cases in tsa)

On the mailing list we had the request twice to reduce the size of the instances so a pickle doesn't take as much space:

https://groups.google.com/d/topic/pystatsmodels/aTr5sXjYSPU/discussion
https://groups.google.com/d/topic/pystatsmodels/CLJSSqwMVbM/discussion

thread related to pickling
https://groups.google.com/d/topic/pystatsmodels/1KOJCoS840A/discussion

We currently don't have a way to instantiate a model or result without data. The predict methods are attached to models and cannot be used without having an instance.

A (temporary?) solution is to remove the attached data from the result and model instance.

I started to work on this in https://github.com/josef-pkt/statsmodels/tree/remove_data

Currently mainly proof-of-concept.

for OLS: size of pickle file reduced from 2300KB to 2KB
for Poisson: size of pickle file reduced from 1300KB to 3KB

Activity

  1. josef-pkt commented on Apr 1, 2012

    @josef-pkt
    MemberAuthor

    merged in PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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