#include "components/segmentation_platform/public/result.h"
#include <sstream>
#include <string_view>
namespace segmentation_platform {
namespace {
std::string StatusToString(PredictionStatus status) { … }
}
ClassificationResult::ClassificationResult(PredictionStatus status)
: … { … }
ClassificationResult::~ClassificationResult() = default;
ClassificationResult::ClassificationResult(const ClassificationResult&) =
default;
ClassificationResult& ClassificationResult::operator=(
const ClassificationResult&) = default;
std::string ClassificationResult::ToDebugString() const { … }
AnnotatedNumericResult::AnnotatedNumericResult(PredictionStatus status)
: … { … }
AnnotatedNumericResult::~AnnotatedNumericResult() = default;
AnnotatedNumericResult::AnnotatedNumericResult(const AnnotatedNumericResult&) =
default;
AnnotatedNumericResult& AnnotatedNumericResult::operator=(
const AnnotatedNumericResult&) = default;
std::optional<float> AnnotatedNumericResult::GetResultForLabel(
std::string_view label) const { … }
std::string AnnotatedNumericResult::ToDebugString() const { … }
}