Skip to content

Commit 9726fc6

Browse files
committed
Fix name of f1_score.
1 parent 922139f commit 9726fc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TensorFlowNET.Core/Keras/Metrics/IMetricsApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ IMetricFunc CosineSimilarity(string name = "cosine_similarity",
7878
IMetricFunc F1Score(int num_classes,
7979
string? average = null,
8080
float threshold = -1f,
81-
string name = "fbeta_score",
81+
string name = "f1_score",
8282
TF_DataType dtype = TF_DataType.TF_FLOAT);
8383

8484
/// <summary>

src/TensorFlowNET.Keras/Metrics/MetricsApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public IMetricFunc CategoricalCrossentropy(string name = "categorical_crossentro
8686
public IMetricFunc CosineSimilarity(string name = "cosine_similarity", TF_DataType dtype = TF_DataType.TF_FLOAT, Axis? axis = null)
8787
=> new CosineSimilarity(name: name, dtype: dtype, axis: axis ?? -1);
8888

89-
public IMetricFunc F1Score(int num_classes, string? average = null, float threshold = -1, string name = "fbeta_score", TF_DataType dtype = TF_DataType.TF_FLOAT)
89+
public IMetricFunc F1Score(int num_classes, string? average = null, float threshold = -1, string name = "f1_score", TF_DataType dtype = TF_DataType.TF_FLOAT)
9090
=> new F1Score(num_classes, average: average, threshold: threshold, name: name, dtype: dtype);
9191

9292
public IMetricFunc FBetaScore(int num_classes, string? average = null, float beta = 0.1F, float threshold = -1, string name = "fbeta_score", TF_DataType dtype = TF_DataType.TF_FLOAT)

0 commit comments

Comments
 (0)