Title
#resources
j

jakubczakon

09/16/2021, 3:54 PM
To log stuff, you need to:- Install kedro-neptune plugin - Initialize the plugin and setup credentials - Add a neptune_run handler as an input to a node - Log whatever metadata you want to it This would be a change to the node:
def 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