Skip to content

Commit e195473

Browse files
committed
feat: add postPredict(postData) method
1 parent 5120741 commit e195473

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ DD.prototype.deleteTrain = function deleteTrain(sname, job = 1) {
249249

250250
/* API Predict */
251251

252+
// Makes prediction from data and model
253+
//
254+
// @param {Object} postData prediction parameters
255+
DD.prototype.postPredict = function postPredict(postData) {
256+
return this._post(this.urls.predict, postData);
257+
};
258+
252259
// Makes prediction from data and model
253260
//
254261
// @param {String} name service name as a resource

0 commit comments

Comments
 (0)