MCPcopy Create free account
hub / github.com/christopherjenness/ML-lib / predict

Method predict

ML/treemethods.py:54–82  ·  view source on GitHub ↗

Args: x (np.array): Training data of shape[n_features,] Returns: float: predicted value Raises: ValueError if model has not been fit Notes: Currently, only a single data instance can be predicted at a time.

(self, x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

add_stumpMethod · 0.45
predictMethod · 0.45
predictMethod · 0.45
predictMethod · 0.45

Calls 1

get_leavesMethod · 0.95

Tested by

no test coverage detected