MCPcopy Index your code
hub / github.com/geekcomputers/Python / get_preds

Function get_preds

local_weighted_learning/local_weighted_learning.py:80–85  ·  view source on GitHub ↗

Get predictions with minimum error for each training data

(training_data: np.mat, mcol_b: np.mat, tau: float)

Source from the content-addressed store, hash-verified

78
79
80def get_preds(training_data: np.mat, mcol_b: np.mat, tau: float) -> np.ndarray:
81 """
82 Get predictions with minimum error for each training data
83 """
84 ypred = local_weight_regression(training_data, mcol_b, tau)
85 return ypred
86
87
88def plot_preds(

Callers 1

Calls 1

local_weight_regressionFunction · 0.85

Tested by

no test coverage detected