Skip to content

Conversation

@Bruschkov
Copy link
Contributor

@Bruschkov Bruschkov commented May 24, 2019

Example:

with pm.Model() as model:
    a = pm.Gamma('a', mu=10.0, shape=(2,3), sd=2.0)
    b = pm.Gamma('b', mu=10.0, sd=2.0)
    
    trace = pm.sample(trace=[model.a, model.a_log__])
    assert len(trace.varnames) == 2
    
    pm.backends.text.dump('trace.text', trace)
    loaded = pm.backends.text.load('trace.text', model=model)
    
x = loaded[0] #!!! Does not throw key error anymore
x

As described in the issue, the above code would not work in the past and now does.

@fonnesbeck
Copy link
Member

LGTM

@twiecki twiecki merged commit 183bc5f into pymc-devs:master Jun 6, 2019
@Bruschkov Bruschkov deleted the 2560_text_backend_subset branch June 6, 2019 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants