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

Method __str__

numpy_ml/utils/kernels.py:21–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 return self._kernel(X, Y)
20
21 def __str__(self):
22 P, H = self.parameters, self.hyperparameters
23 p_str = ", ".join(["{}={}".format(k, v) for k, v in P.items()])
24 return "{}({})".format(H["id"], p_str)
25
26 def summary(self):
27 """Return the dictionary of model parameters, hyperparameters, and ID"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected