MCPcopy Create free account
hub / github.com/dmlc/xgboost / plot_predt

Function plot_predt

demo/guide-python/multioutput_regression.py:30–36  ·  view source on GitHub ↗
(
    y: np.ndarray, y_predt: np.ndarray, name: str, ax: matplotlib.axes.Axes
)

Source from the content-addressed store, hash-verified

28
29
30def plot_predt(
31 y: np.ndarray, y_predt: np.ndarray, name: str, ax: matplotlib.axes.Axes
32) -> None:
33 s = 25
34 ax.scatter(y[:, 0], y[:, 1], c="navy", s=s, edgecolor="black", label=name)
35 ax.scatter(y_predt[:, 0], y_predt[:, 1], c="cornflowerblue", s=s, edgecolor="black")
36 ax.legend()
37
38
39def gen_circle() -> Tuple[np.ndarray, np.ndarray]:

Callers 2

rmse_modelFunction · 0.85
custom_rmse_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected