/// <summary> /// Create an Anomaly Score. /// </summary> /// <param name="anomaly">An Anomaly detector instance</param> /// <param name="name">The name you want to give to the new anomaly score. </param> /// <param name="arguments">Specifies the values of the fields that you want to use.</param> public Task<AnomalyScore> CreateAnomalyScore(Anomaly anomaly, string name = null, AnomalyScore.Arguments arguments = null) { arguments = arguments ?? new AnomalyScore.Arguments(); if (!string.IsNullOrWhiteSpace(name)) arguments.Name = name; arguments.Anomaly = anomaly.Resource; return Create<AnomalyScore>(arguments); }
/// <summary> /// Create an Anomaly. /// </summary> /// <param name="dataset">A DataSet instance</param> /// <param name="name">The name you want to give to the new anomaly detector. </param> /// <param name="arguments">Specifies the id of the field that you want to predict.</param> public Task<Anomaly> CreateAnomaly(DataSet dataset, string name = null, Anomaly.Arguments arguments = null) { arguments = arguments ?? new Anomaly.Arguments(); if (!string.IsNullOrWhiteSpace(name)) arguments.Name = name; arguments.DataSet = dataset.Resource; return Create<Anomaly>(arguments); }
/// <summary> /// Create an Anomaly Score. /// </summary> /// <param name="anomaly">An Anomaly detector instance</param> /// <param name="name">The name you want to give to the new anomaly score. </param> /// <param name="arguments">Specifies the values of the fields that you want to use.</param> public Task <AnomalyScore> CreateAnomalyScore(Anomaly anomaly, string name = null, AnomalyScore.Arguments arguments = null) { arguments = arguments ?? new AnomalyScore.Arguments(); if (!string.IsNullOrWhiteSpace(name)) { arguments.Name = name; } arguments.Anomaly = anomaly.Resource; return(Create <AnomalyScore>(arguments)); }
/// <summary> /// Create an anomaly detector using supplied arguments. /// </summary> public Task<Anomaly> CreateAnomaly(Anomaly.Arguments arguments) { return Create<Anomaly>(arguments); }