Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hyperopt/hyperopt
/ pmf
Method
pmf
hyperopt/rdists.py:192–193 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
190
return
np.isclose(x, safe_int_cast(np.round(old_div(x, self.q))) * self.q)
191
192
def
pmf(self, x):
193
return
np.exp(self.logpmf(x))
194
195
def
logpmf(self, x):
196
x1 = np.atleast_1d(x)
Callers
8
check_d_samples
Function · 0.45
test_offgrid_int
Method · 0.45
test_offgrid_float
Method · 0.45
test_offgrid_int
Method · 0.45
test_offgrid_float
Method · 0.45
test_numeric
Method · 0.45
test_offgrid_int
Method · 0.45
test_offgrid_float
Method · 0.45
Calls
1
logpmf
Method · 0.95
Tested by
8
check_d_samples
Function · 0.36
test_offgrid_int
Method · 0.36
test_offgrid_float
Method · 0.36
test_offgrid_int
Method · 0.36
test_offgrid_float
Method · 0.36
test_numeric
Method · 0.36
test_offgrid_int
Method · 0.36
test_offgrid_float
Method · 0.36