You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon looking into the problem, I figured out the following cause:
In tensorflow_probability/python/distributions/empirical.py at def _quantile(), from tensorflow_probability.python.stats import quantiles results in the variable name quantiles referring to tensorflow_probability.python.stats.quantiles.quantiles, which is a function, resulting in the attribute error.
I manually changed the import statement to from tensorflow_probability.python.stats.quantiles import percentile
and the return at the line 231 to return percentile(...) and the error dissapeared.
Posting this here to confirm this problem is not unique to me.
The text was updated successfully, but these errors were encountered:
Hi,
I noticed the
quantile()
function oftfd.Empirical
raises the following error:AttributeError: 'function' object has no attribute 'percentile'
.Upon looking into the problem, I figured out the following cause:
In
tensorflow_probability/python/distributions/empirical.py
atdef _quantile()
,from tensorflow_probability.python.stats import quantiles
results in the variable namequantiles
referring totensorflow_probability.python.stats.quantiles.quantiles
, which is a function, resulting in the attribute error.I manually changed the import statement to
from tensorflow_probability.python.stats.quantiles import percentile
and the
return
at the line 231 toreturn percentile(...)
and the error dissapeared.Posting this here to confirm this problem is not unique to me.
The text was updated successfully, but these errors were encountered: