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

Method __init__

numpy_ml/utils/kernels.py:242–252  ·  view source on GitHub ↗

A class for initializing learning rate schedulers. Valid inputs are: (a) __str__ representations of `KernelBase` instances (b) `KernelBase` instances (c) Parameter dicts (e.g., as produced via the :meth:`summary` method in `KernelBase` ins

(self, param=None)

Source from the content-addressed store, hash-verified

240
241class KernelInitializer(object):
242 def __init__(self, param=None):
243 """
244 A class for initializing learning rate schedulers. Valid inputs are:
245 (a) __str__ representations of `KernelBase` instances
246 (b) `KernelBase` instances
247 (c) Parameter dicts (e.g., as produced via the :meth:`summary` method in
248 `KernelBase` instances)
249
250 If `param` is None, return `LinearKernel`.
251 """
252 self.param = param
253
254 def __call__(self):
255 param = self.param

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected