Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Last active November 6, 2021 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khuyentran1401/4167013774c8abb7d2d7097f1a22212c to your computer and use it in GitHub Desktop.
Save khuyentran1401/4167013774c8abb7d2d7097f1a22212c to your computer and use it in GitHub Desktop.
@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