We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81390e commit 5c8d12eCopy full SHA for 5c8d12e
pymc3/plots.py
@@ -1,5 +1,5 @@
1
import numpy as np
2
-from scipy.stats import kde
+from scipy.stats import kde, mode
3
from .stats import *
4
from numpy.linalg import LinAlgError
5
import matplotlib.pyplot as plt
@@ -671,7 +671,7 @@ def display_point_estimate():
671
point_value = trace_values.mean()
672
point_text = '{}={}'.format(point_estimate, point_value.round(round_to))
673
elif point_estimate == 'mode':
674
- point_value = stats.mode(trace_values.round(round_to))[0][0]
+ point_value = mode(trace_values.round(round_to))[0][0]
675
676
elif point_estimate == 'median':
677
point_value = np.median(trace_values)
0 commit comments