MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / get_scriptdir

Function get_scriptdir

numpy_ml/bandits/trainer.py:21–23  ·  view source on GitHub ↗

Return the directory containing the `trainer.py` script

()

Source from the content-addressed store, hash-verified

19
20
21def get_scriptdir():
22 """Return the directory containing the `trainer.py` script"""
23 return op.dirname(op.realpath(__file__))
24
25
26def mse(bandit, policy):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected