Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@task(log_stdout=True)
def report_accuracy(predictions: np.ndarray, test_y: pd.DataFrame) -> None:
target = ...
accuracy = ...
print(f"Model accuracy on test set: {round(accuracy * 100, 2)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment