@@ -815,6 +815,7 @@ private void OnGetClassifierResp(RESTConnector.Request req, RESTConnector.Respon
815
815
/// <param name="classifierName">Classifier name.</param>
816
816
/// <param name="positiveExamples">Dictionary of class name and positive example paths.</param>
817
817
/// <param name="negativeExamplesPath">Negative example file path.</param>
818
+ /// <param name="mimeType">Mime type of the positive examples and negative examples data. Use GetMimeType to get Mimetype from filename.</param>
818
819
public bool TrainClassifier ( OnTrainClassifier callback , string classifierName , Dictionary < string , string > positiveExamples , string negativeExamplesPath = default ( string ) , string mimeType = "application/zip" , string customData = default ( string ) )
819
820
{
820
821
if ( string . IsNullOrEmpty ( mp_ApiKey ) )
@@ -859,8 +860,9 @@ private void OnGetClassifierResp(RESTConnector.Request req, RESTConnector.Respon
859
860
/// </summary>
860
861
/// <param name="callback">Callback.</param>
861
862
/// <param name="classifierName">Classifier name.</param>
862
- /// <param name="positiveExamplesData">Dictionary of class name and class training zip byte data.</param>
863
- /// <param name="negativeExamplesData">Negative examples zip byte data.</param>
863
+ /// <param name="positiveExamplesData">Dictionary of class name and class training zip or image byte data.</param>
864
+ /// <param name="negativeExamplesData">Negative examples zip or image byte data.</param>
865
+ /// <param name="mimeType">Mime type of the positive examples and negative examples data.</param>
864
866
/// <returns></returns>
865
867
public bool TrainClassifier ( OnTrainClassifier callback , string classifierName , Dictionary < string , byte [ ] > positiveExamplesData , byte [ ] negativeExamplesData = null , string mimeType = "application/zip" , string customData = default ( string ) )
866
868
{
@@ -906,10 +908,6 @@ public class TrainClassifierReq : RESTConnector.Request
906
908
/// </summary>
907
909
public string Data { get ; set ; }
908
910
/// <summary>
909
- /// Are the training files zip files or image files
910
- /// </summary>
911
- public bool IsZip { get ; set ; }
912
- /// <summary>
913
911
/// The OnTrainClassifier callback delegate.
914
912
/// </summary>
915
913
public OnTrainClassifier Callback { get ; set ; }
@@ -1002,8 +1000,8 @@ private void OnTrainClassifierResp(RESTConnector.Request req, RESTConnector.Resp
1002
1000
/// <param name="callback">Callback.</param>
1003
1001
/// <param name="classifierID">Classifier identifier.</param>
1004
1002
/// <param name="classifierName">Classifier name.</param>
1005
- /// <param name="positiveExamplesData">Dictionary of class name and class training zip byte data.</param>
1006
- /// <param name="negativeExamplesData">Negative examples zip byte data.</param>
1003
+ /// <param name="positiveExamplesData">Dictionary of class name and class training zip or image byte data.</param>
1004
+ /// <param name="negativeExamplesData">Negative examples zip or image byte data.</param>
1007
1005
/// <param name="mimeType">Mimetype of the file. Use GetMimeType to get Mimetype from filename.</param>
1008
1006
/// <returns></returns>
1009
1007
public bool UpdateClassifier ( OnTrainClassifier callback , string classifierID , string classifierName , Dictionary < string , byte [ ] > positiveExamplesData , byte [ ] negativeExamplesData = null , string mimeType = "application/zip" , string customData = default ( string ) )
0 commit comments