You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognition.java
Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/model/Classifier.java
+29-3Lines changed: 29 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,13 @@ public interface Status {
42
42
privateStringname;
43
43
privateStringowner;
44
44
privateStringstatus;
45
+
@SerializedName("core_ml_enabled")
46
+
privateBooleancoreMlEnabled;
45
47
privateStringexplanation;
46
48
privateDatecreated;
47
49
privateList<Class> classes;
48
50
privateDateretrained;
51
+
privateDateupdated;
49
52
50
53
/**
51
54
* Gets the classifierId.
@@ -92,6 +95,17 @@ public String getStatus() {
92
95
returnstatus;
93
96
}
94
97
98
+
/**
99
+
* Gets the coreMlEnabled.
100
+
*
101
+
* Whether the classifier can be downloaded as a Core ML model after the training status is `ready`.
102
+
*
103
+
* @return the coreMlEnabled
104
+
*/
105
+
publicBooleanisCoreMlEnabled() {
106
+
returncoreMlEnabled;
107
+
}
108
+
95
109
/**
96
110
* Gets the explanation.
97
111
*
@@ -106,7 +120,7 @@ public String getExplanation() {
106
120
/**
107
121
* Gets the created.
108
122
*
109
-
* Date and time in Coordinated Universal Time that the classifier was created.
123
+
* Date and time in Coordinated Universal Time (UTC) that the classifier was created.
110
124
*
111
125
* @return the created
112
126
*/
@@ -128,12 +142,24 @@ public List<Class> getClasses() {
128
142
/**
129
143
* Gets the retrained.
130
144
*
131
-
* Date and time in Coordinated Universal Time that the classifier was updated. Returned when verbose=`true`. Might
132
-
* not be returned by some requests.
145
+
* Date and time in Coordinated Universal Time (UTC) that the classifier was updated. Returned when verbose=`true`.
146
+
* Might not be returned by some requests. Identical to `updated` and retained for backward compatibility.
133
147
*
134
148
* @return the retrained
135
149
*/
136
150
publicDategetRetrained() {
137
151
returnretrained;
138
152
}
153
+
154
+
/**
155
+
* Gets the updated.
156
+
*
157
+
* Date and time in Coordinated Universal Time (UTC) that the classifier was most recently updated. The field matches
158
+
* either `retrained` or `created`. Returned when verbose=`true`. Might not be returned by some requests.
Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/model/Classifiers.java
Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/model/ClassifyOptions.java
Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/model/CreateClassifierOptions.java
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -172,11 +172,10 @@ public String name() {
172
172
* Gets the class names.
173
173
*
174
174
* A .zip file of images that depict the visual subject of a class in the new classifier. You can include more than
175
-
* one positive example file in a call. Append `_positive_examples` to the form name. The prefix is used as the class
175
+
* one positive example file in a call. Specify the parameter name by appending `_positive_examples` to the class
176
176
* name. For example, `goldenretriever_positive_examples` creates the class **goldenretriever**. Include at least 10
177
177
* images in .jpg or .png format. The minimum recommended image resolution is 32X32 pixels. The maximum number of
178
-
* images is 10,000 images or 100 MB per .zip file. Encode special characters in the file name in UTF-8. The API
179
-
* explorer limits you to training only one class. To train more classes, use the API functionality.
178
+
* images is 10,000 images or 100 MB per .zip file. Encode special characters in the file name in UTF-8.
180
179
*
181
180
* @return the classNames
182
181
*/
@@ -197,8 +196,8 @@ public File positiveExamplesByClassName(String className) {
197
196
/**
198
197
* Gets the negativeExamples.
199
198
*
200
-
* A compressed (.zip) file of images that do not depict the visual subject of any of the classes of the new
201
-
* classifier. Must contain a minimum of 10 images. Encode special characters in the file name in UTF-8.
199
+
* A .zip file of images that do not depict the visual subject of any of the classes of the new classifier. Must
200
+
* contain a minimum of 10 images. Encode special characters in the file name in UTF-8.
0 commit comments