jakubczakon
09/16/2021, 3:54 PMdef report_accuracy(predictions: np.ndarray, test_y: pd.DataFrame,
neptune_run: neptune.run.Handler) -> None:
target = np.argmax(test_y.to_numpy(), axis=1)
accuracy = np.sum(predictions == target) / target.shape[0]
neptune_run['nodes/report/accuracy'] = accuracy * 100
If you are interested in trying it out, here are some step-by-step examples:
- Quickstart: https://docs.neptune.ai/integrations-and-supported-tools/automation-pipelines/kedro#quickstart
- Compare Kedro pipelines: https://docs.neptune.ai/integrations-and-supported-tools/automation-pipelines/kedro/compare-kedro-pipelines
- Compare results between Kedro nodes: https://docs.neptune.ai/integrations-and-supported-tools/automation-pipelines/kedro/compare-results-between-kedro-nodes
- Display Kedro node metadata and outputs: https://docs.neptune.ai/integrations-and-supported-tools/automation-pipelines/kedro/display-kedro-node-metadata-and-outputs