Skip to content

SMC notebook broken #2351

@fonnesbeck

Description

@fonnesbeck

Sequential MC fails during sampling in the example notebook:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-c5f19f1ce5a2> in <module>()
      7     homepath=test_folder,
      8     model=ATMIP_test,
----> 9     rm_flag=True)

/Users/fonnescj/Repos/pymc3/pymc3/step_methods/smc.py in ATMIP_sample(n_steps, step, start, homepath, chain, stage, n_jobs, tune, progressbar, model, random_seed, rm_flag)
    521         draws = 1
    522     else:
--> 523         step = stage_handler.load_atmip_params(stage, model=model)
    524         draws = step.n_steps
    525 

/Users/fonnescj/Repos/pymc3/pymc3/backends/smc_text.py in load_atmip_params(self, stage_number, model)
    195             prev = self.highest_sampled_stage()
    196         else:
--> 197             prev = stage_number - 1
    198         pm._log.info('Loading parameters from completed stage {}'.format(prev))
    199 

TypeError: unsupported operand type(s) for -: 'str' and 'int'

Should we remove this notebook for the 3.1 release, given that it is experimental?

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