Class Metrics
A metric is a function that is used to judge the performance of your model. Metric functions are to be supplied in the metrics parameter when a model is compiled
Inheritance
System.Object
Metrics
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras
Assembly: Keras.dll
Syntax
public class Metrics : Base, IDisposable
Methods
|
Improve this Doc
View Source
BinaryAccuracy(NDarray, NDarray)
Declaration
public static NDarray BinaryAccuracy(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
CategoricalAccuracy(NDarray, NDarray)
Declaration
public static NDarray CategoricalAccuracy(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
Cosine(NDarray, NDarray)
Declaration
public static NDarray Cosine(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
MAE(NDarray, NDarray)
Declaration
public static NDarray MAE(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
MAPE(NDarray, NDarray)
Declaration
public static NDarray MAPE(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
MSE(NDarray, NDarray)
Declaration
public static NDarray MSE(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
MSLE(NDarray, NDarray)
Declaration
public static NDarray MSLE(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
SparseCategoricalAccuracy(NDarray, NDarray)
Declaration
public static NDarray SparseCategoricalAccuracy(NDarray y_true, NDarray y_pred)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
SparseTopKCategoricalAccuracy(NDarray, NDarray, Int32)
Declaration
public static NDarray SparseTopKCategoricalAccuracy(NDarray y_true, NDarray y_pred, int k = 5)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
System.Int32 |
k |
|
Returns
Type |
Description |
Numpy.NDarray |
|
|
Improve this Doc
View Source
TopKCategoricalAccuracy(NDarray, NDarray, Int32)
Declaration
public static NDarray TopKCategoricalAccuracy(NDarray y_true, NDarray y_pred, int k = 5)
Parameters
Type |
Name |
Description |
Numpy.NDarray |
y_true |
|
Numpy.NDarray |
y_pred |
|
System.Int32 |
k |
|
Returns
Type |
Description |
Numpy.NDarray |
|
Implements
System.IDisposable