A model is a tree-like representation of your dataset with predictive power. You can create a model selecting which fields from your dataset you want to use as input fields (or predictors) and which field you do want to predict, the objective field. The complete and updated reference with all available parameters is in our documentation website.
Наследование: Response
 /// <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> Create(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);
 }
Пример #2
0
 /// <summary>
 /// Create a model.
 /// </summary>
 /// <param name="dataset">A DataSet instance</param>
 /// <param name="name">The name you want to give to the new model. </param>
 /// <param name="inputFields">Specifies the ids of the fields that you want to use as predictors to create the model. </param>
 /// <param name="objectiveField">Specifies the id of the field that you want to predict.</param>
 public Task<Model> CreateModel(DataSet dataset, string name = null, string[] inputFields = null, string objectiveField = null, Model.Arguments arguments = null)
 {
     arguments = arguments ?? new Model.Arguments();
     if (!string.IsNullOrWhiteSpace(name)) arguments.Name = name;
     if (inputFields != null && inputFields.Length > 0)
     {
         foreach (var input in arguments.Inputs) arguments.Inputs.Add(input);
     }
     if (!string.IsNullOrWhiteSpace(objectiveField)) arguments.Objective = objectiveField;
     arguments.DataSet = dataset.Resource;
     return Create<Model>(arguments);
 }
Пример #3
0
 public int addLocalModel(Model.LocalModel localModel)
 {
     this._models.Add(localModel);
     return this._models.Count;
 }
Пример #4
0
 /// <summary>
 /// Create a model using supplied arguments.
 /// </summary>
 public Task<Model> CreateModel(Model.Arguments arguments)
 {
     return Create<Model>(arguments);
 }
Пример #5
0
 public Task<Model> Create(DataSet dataset, string name = null, string[] inputFields = null, string objectiveField = null, Model.Arguments arguments = null)
 {
     return CreateModel(dataset, name, inputFields, objectiveField, arguments);
 }
Пример #6
0
 public Task<Prediction> Create(Model model, string name = null, Prediction.Arguments arguments = null)
 {
     return CreatePrediction(model, name, arguments);
 }