@@ -928,19 +928,19 @@ def get_raw(self):
928928 """
929929 return self ._internal_dict
930930
931- def get_metric (self , assertion_name ):
931+ def get_metrics (self , assertion_name ):
932932 """
933- Retrieves the metric computed for this trained model for the assertion with the provided name (or None if no
933+ Retrieves the metrics computed for this trained model for the assertion with the provided name (or None if no
934934 assertion with that name exists)
935935
936936 :param str assertion_name: Name of the assertion
937937
938938 :returns: an object representing assertion metrics or None if no assertion with that name exists
939- :rtype: :class:`DSSMLAssertionMetric `
939+ :rtype: :class:`DSSMLAssertionMetrics `
940940 """
941- for assertion_metric_dict in self ._internal_dict ["perAssertion" ]:
942- if assertion_name == assertion_metric_dict ["name" ]:
943- return DSSMLAssertionMetric ( assertion_metric_dict )
941+ for assertion_metrics_dict in self ._internal_dict ["perAssertion" ]:
942+ if assertion_name == assertion_metrics_dict ["name" ]:
943+ return DSSMLAssertionMetrics ( assertion_metrics_dict )
944944 return None
945945
946946 @property
@@ -953,10 +953,10 @@ def passing_assertions_ratio(self):
953953 return self ._internal_dict ['passingAssertionsRatio' ]
954954
955955
956- class DSSMLAssertionMetric (object ):
956+ class DSSMLAssertionMetrics (object ):
957957 """
958958 Object that represents the result of an assertion on a trained model
959- Do not create this object directly, use :meth:`DSSMLAssertionMetrics.get_metric (self, assertion_name)` instead
959+ Do not create this object directly, use :meth:`DSSMLAssertionMetrics.get_metrics (self, assertion_name)` instead
960960 """
961961 def __init__ (self , data ):
962962 self ._internal_dict = data
0 commit comments