m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
342 B

7 months ago
  1. from __future__ import absolute_import
  2. class Percentile(object):
  3. def __init__(self, metric_name, percentile):
  4. self._metric_name = metric_name
  5. self._percentile = float(percentile)
  6. @property
  7. def name(self):
  8. return self._metric_name
  9. @property
  10. def percentile(self):
  11. return self._percentile