Example #1
0
        public List <string> Predict(TensorOld X)
        {
            X             = Normalize(X);
            LastRawResult = Model.Predict(X);

            LastCodecResult = Utilities.ProbabilityToCode(LastRawResult);

            if (LabelCodec != null)
            {
                return(LabelCodec.Decode(LastCodecResult));
            }
            return(LastRawResult.GetRawValues().Select(a => a.ToString()).ToList());
        }
Example #2
0
 public List <double> Predict(TensorOld X)
 {
     X             = Normalize(X);
     LastRawResult = Model.Predict(X);
     return(LastRawResult.GetRawValues().ToList());
 }