Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ gen
Function
gen
catboost/python-package/ut/medium/test.py:267–268 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
265
prng = np.random.RandomState(seed=seed)
266
267
def
gen():
268
return
prng.randint(0, 2, size=num)
269
if
num <= 1:
270
return
gen()
271
Callers
4
test_try_finally_contextmanager
Method · 0.85
_generate_nontrivial_binary_target
Function · 0.85
BenchFormatStream
Function · 0.85
BenchToString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected