Skip to content

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 added bug SMC Sequential Monte Carlo labels Jun 13, 2022
@ricardoV94 ricardoV94 force-pushed the smc_indexing_problem branch from 9dd2b10 to edb6850 Compare June 13, 2022 07:36
float_var = at.TensorType("floatX", in_var.broadcastable)(in_var.name)
new_in_vars.append(float_var)
replace_int_input[in_var] = at.round(float_var)
replace_int_input[in_var] = at.round(float_var).astype(in_var.dtype)
Copy link
Member Author

@ricardoV94 ricardoV94 Jun 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only had a test for unobserved bernoulli, but its logp does not care if the value is discrete or not. The categorical logp on the other hand requires it to be discrete as it does some indexing operation.

@codecov
Copy link

codecov bot commented Jun 13, 2022

Codecov Report

Merging #5887 (edb6850) into main (338ec15) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5887   +/-   ##
=======================================
  Coverage   89.48%   89.48%           
=======================================
  Files          73       73           
  Lines       13228    13228           
=======================================
  Hits        11837    11837           
  Misses       1391     1391           
Impacted Files Coverage Δ
pymc/smc/smc.py 96.45% <100.00%> (ø)

Copy link
Member

@michaelosthege michaelosthege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ricardoV94 ricardoV94 merged commit a5f3e45 into pymc-devs:main Jun 13, 2022
@ricardoV94 ricardoV94 deleted the smc_indexing_problem branch June 6, 2023 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug SMC Sequential Monte Carlo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants