File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1919from keras_core .metrics .reduction_metrics import MeanMetricWrapper
2020from keras_core .metrics .reduction_metrics import Sum
2121from keras_core .metrics .regression_metrics import MeanSquaredError
22- from keras_core .metrics .regression_metrics import mean_squared_error
22+ from keras_core .metrics .accuracy_metrics import Accuracy
23+ from keras_core .metrics .accuracy_metrics import BinaryAccuracy
24+ from keras_core .metrics .accuracy_metrics import CategoricalAccuracy
25+ from keras_core .metrics .accuracy_metrics import SparseCategoricalAccuracy
26+ from keras_core .metrics .accuracy_metrics import TopKCategoricalAccuracy
27+ from keras_core .metrics .accuracy_metrics import SparseTopKCategoricalAccuracy
2328from keras_core .saving import serialization_lib
2429
2530ALL_OBJECTS = {
31+ # Base
2632 Metric ,
2733 Mean ,
2834 Sum ,
29- MeanSquaredError ,
3035 MeanMetricWrapper ,
36+ # Regression
37+ MeanSquaredError ,
38+ # Classification
39+ FalseNegatives ,
3140 FalsePositives ,
41+ Precision ,
42+ TrueNegatives ,
43+ TruePositives ,
44+ # Hinge
3245 Hinge ,
3346 SquaredHinge ,
3447 CategoricalHinge ,
48+ # Probabilistic
3549 KLDivergence ,
3650 Poisson ,
3751 BinaryCrossentropy ,
3852 CategoricalCrossentropy ,
3953 SparseCategoricalCrossentropy ,
54+ # Accuracy
55+ Accuracy ,
56+ BinaryAccuracy ,
57+ CategoricalAccuracy ,
58+ SparseCategoricalAccuracy ,
59+ TopKCategoricalAccuracy ,
60+ SparseTopKCategoricalAccuracy ,
4061}
4162ALL_OBJECTS_DICT = {cls .__name__ : cls for cls in ALL_OBJECTS }
4263ALL_OBJECTS_DICT .update (
4364 {
44- "mse" : mean_squared_error ,
45- "MSE" : mean_squared_error ,
65+ "mse" : MeanSquaredError ,
66+ "MSE" : MeanSquaredError ,
4667 }
4768)
4869
You can’t perform that action at this time.
0 commit comments