Skip to content
#

nvidia

Here are 773 public repositories matching this topic...

beckernick
beckernick commented Mar 1, 2021

confusion_matrix should automatically convert dtypes as appropriate in order to avoid failing, like other metric functions.

from sklearn.metrics import confusion_matrix
import numpy as np
import cumly = np.array([0.0, 1.0, 0.0])
y_pred = np.array([0.0, 1.0, 1.0])
print(confusion_matrix(y, y_pred))
cuml.metrics.confusion_matrix(y, y_pred)
[[1 1]
 [0 1]]
----------------
cub

Improve this page

Add a description, image, and links to the nvidia topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the nvidia topic, visit your repo's landing page and select "manage topics."

Learn more