public void CreateGroundTruth(Prediction prediction, string label, string source)
        {
            var groundTruth = new GroundTruth();

            groundTruth.Prediction = prediction;
            groundTruth.Label      = label;
            groundTruth.Source     = source;

            var request = new GroundTruthRequest();

            request.GroundTruth = groundTruth;
            var response = this.client.CreateGroundTruth(request);
        }
Beispiel #2
0
        public void CreateGroundTruth(Prediction prediction, string label, string source)
        {
            var groundTruth = new GroundTruth
            {
                Prediction = prediction,
                Label      = label,
                Source     = source
            };

            var request = new GroundTruthRequest
            {
                GroundTruth = groundTruth
            };

            this.client.CreateGroundTruth(request);
        }
Beispiel #3
0
        public async Task <bool> CreateGroundTruthAsync(Prediction prediction, string label, string source)
        {
            var groundTruth = new GroundTruth
            {
                Prediction = prediction,
                Label      = label,
                Source     = source
            };

            var request = new GroundTruthRequest
            {
                GroundTruth = groundTruth
            };

            await this.client.CreateGroundTruthAsync(request);

            return(true);
        }