def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def get_schema(self):
        """Returns the set YAML schema for the metric class.

        Returns:
          YAML schema of the metrics type.
        """
        return self._schema