{"action":"opened","issue":{"url":"https://api.github.com/repos/pymc-devs/pymc/issues/180","repository_url":"https://api.github.com/repos/pymc-devs/pymc","labels_url":"https://api.github.com/repos/pymc-devs/pymc/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/pymc-devs/pymc/issues/180/comments","events_url":"https://api.github.com/repos/pymc-devs/pymc/issues/180/events","html_url":"https://github.com/pymc-devs/pymc/issues/180","id":352420155,"node_id":"MDU6SXNzdWUzNTI0MjAxNTU=","number":180,"title":"Slicer gives values outside of prior","user":{"login":"alebyk113","id":12527699,"node_id":"MDQ6VXNlcjEyNTI3Njk5","avatar_url":"https://avatars2.githubusercontent.com/u/12527699?v=4","gravatar_id":"","url":"https://api.github.com/users/alebyk113","html_url":"https://github.com/alebyk113","followers_url":"https://api.github.com/users/alebyk113/followers","following_url":"https://api.github.com/users/alebyk113/following{/other_user}","gists_url":"https://api.github.com/users/alebyk113/gists{/gist_id}","starred_url":"https://api.github.com/users/alebyk113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alebyk113/subscriptions","organizations_url":"https://api.github.com/users/alebyk113/orgs","repos_url":"https://api.github.com/users/alebyk113/repos","events_url":"https://api.github.com/users/alebyk113/events{/privacy}","received_events_url":"https://api.github.com/users/alebyk113/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T07:38:53Z","updated_at":"2018-08-21T07:38:53Z","closed_at":null,"author_association":"NONE","body":"I am currently having a similar issue to issue #43. I am using Slicer sampling for parameters with Uniform and DiscreteUniform distributions:\r\n\r\n    parameter1 = pm.Uniform('parameter1',0.01,1)\r\n    parameter2 = pm.Uniform('parameter2',0,2)\r\n    parameter3 = pm.DiscreteUniform('parameter3',1,10)\r\n    parameter4 = pm.Uniform('parameter4',0,1.75)\r\n    parameter5 = pm.Uniform('parameter5', 0.005, 0.25)\r\n    parameter6 = pm.Uniform('parameter6', 0.005, 0.15)\r\n\r\n    @pm.potential\r\n    def log_l(experiment=experiment,parameter1=parameter1,parameter2=parameter2,parameter3=parameter3,parameter4=parameter4,parameter5=parameter5,parameter6=parameter6)    \r\n    parameters=[parameter1, parameter2, parameter3]\r\n        log_l=calculate_probability(parameters, t_m, tol, n_integration, parameter4, parameter5, parameter6, experiment.decon_all[2,:,:])\r\n\r\n        return log_l\r\n    model = pm.MCMC([parameter1,parameter2,parameter3,parameter4,parameter5,parameter6,log_l])\r\n    model.use_step_method(pm.Slicer, parameter1, w=0.05)\r\n    model.use_step_method(pm.Slicer, parameter2, w=0.05)\r\n    model.use_step_method(pm.Slicer, parameter3, w=1)\r\n    model.use_step_method(pm.Slicer, parameter4, w=0.1)\r\n    model.use_step_method(pm.Slicer, parameter5, w=0.025)\r\n    model.use_step_method(pm.Slicer, parameter6, w=0.025)\r\n    model.sample(100)\r\n\r\nI was wondering if I am potentially doing something wrong or if that's a real issue?"}}
{"actor":{"display_login":"alebyk113"}}