Example #1
0
 /// <summary>
 /// Create a new prediction.
 /// </summary>
 /// <param name="model">A valid Model</param>
 /// <param name="name">The name you want to give to the new prediction. </param>
 public Task <Prediction> CreatePrediction(Model model, string name = null, Prediction.Arguments arguments = null)
 {
     arguments = arguments ?? new Prediction.Arguments();
     if (!string.IsNullOrWhiteSpace(name))
     {
         arguments.Name = name;
     }
     arguments.Model = model.Resource;
     return(Create <Prediction>(arguments));
 }
Example #2
0
 public Task <Prediction> Create(Model model, string name = null, Prediction.Arguments arguments = null)
 {
     return(CreatePrediction(model, name, arguments));
 }
Example #3
0
 /// <summary>
 /// Create a new prediction.
 /// </summary>
 public Task <Prediction> CreatePrediction(Prediction.Arguments arguments)
 {
     return(Create <Prediction>(arguments));
 }