A batch prediction provides an easy way to compute a prediction for each instance in a dataset in only one request. To create a new batch prediction you need a model/id or an ensemble/id or a logisticregression/id and a dataset/id. The complete and updated reference with all available parameters is in our documentation website.
Inheritance: Response
コード例 #1
0
 /// <summary>
 /// Create a BatchPrediction.
 /// </summary>
 /// <param name="dataset">A DataSet instance</param>
 /// <param name="name">The name you want to give to the new batch predictions. </param>
 /// <param name="arguments">Specifies the id of the field that you want to predict.</param>
 public Task<BatchPrediction> CreateBatchPrediction(DataSet dataset, string name = null,
                                     BatchPrediction.Arguments arguments = null)
 {
     arguments = arguments ?? new BatchPrediction.Arguments();
     if (!string.IsNullOrWhiteSpace(name))
         arguments.Name = name;
     arguments.DataSet = dataset.Resource;
     return Create<BatchPrediction>(arguments);
 }
コード例 #2
0
 /// <summary>
 /// Create a batch prediction using supplied arguments.
 /// </summary>
 public Task<BatchPrediction> CreateBatchPrediction(BatchPrediction.Arguments arguments)
 {
     return Create<BatchPrediction>(arguments);
 }