All URIs are relative to http://localhost:10010/v2
Method | HTTP request | Description |
---|---|---|
createModel | POST /model | Create a new model |
createModel_0 | POST /service | Create a new model |
deleteModel | DELETE /model/{mid} | Delete details of model |
deleteModelTrain | DELETE /model/{mid}/train/{trid} | Delete trained model |
deleteModel_0 | DELETE /service/{mid} | Delete details of model |
detailModel | GET /model/{mid} | Get details of model |
detailModel_0 | GET /service/{mid} | Get details of model |
editModel | PUT /model/{mid} | Edit a model |
editModelTrain | PUT /model/{mid}/train/{trid} | Edit a trained model |
editModel_0 | PUT /service/{mid} | Edit a model |
fitModelTrain | POST /model/{mid}/train | Fit the model |
listModelTrain | GET /model/{mid}/train | List out trained models |
listModels | GET /model | Return models owned |
listModels_0 | GET /service | Return models owned |
runModel | POST /model/{mid} | Run a model |
runModelTrain | POST /model/{mid}/train/{trid} | Run a training |
runModel_0 | POST /service/{mid} | Run a model |
InlineResponse2001 createModel(modelName)
Create a new model
Create a new model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var modelName = new algorithmhub.ModelName(); // ModelName | The model configuration
apiInstance.createModel(modelName).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
modelName | ModelName | The model configuration |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse2001 createModel_0(modelName)
Create a new model
Create a new model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var modelName = new algorithmhub.ModelName1(); // ModelName1 | The model configuration
apiInstance.createModel_0(modelName).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
modelName | ModelName1 | The model configuration |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse2003 deleteModel(mid)
Delete details of model
Deletes a single model based on the ID supplied
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | Deletes the model based on the model id provided
apiInstance.deleteModel(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | Deletes the model based on the model id provided |
No authorization required
- Content-Type: application/json
- Accept: Not defined
'String' deleteModelTrain(mid, trid)
Delete trained model
Deletes a single trained model based on the ID supplied
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | Deletes the trained model based on the model id provided
var trid = "trid_example"; // String | Deletes the trained model based on the model id provided
apiInstance.deleteModelTrain(mid, trid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | Deletes the trained model based on the model id provided | |
trid | String | Deletes the trained model based on the model id provided |
'String'
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse2003 deleteModel_0(mid)
Delete details of model
Deletes a single model based on the ID supplied
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | Deletes the model based on the model id provided
apiInstance.deleteModel_0(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | Deletes the model based on the model id provided |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse2002 detailModel(mid)
Get details of model
Get details for an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id
apiInstance.detailModel(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse2002 detailModel_0(mid)
Get details of model
Get details for an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id
apiInstance.detailModel_0(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id |
No authorization required
- Content-Type: application/json
- Accept: Not defined
'String' editModel(mid, body)
Edit a model
Edit an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id that needs to be edited
var body = new algorithmhub.Body(); // Body | The model configuration
apiInstance.editModel(mid, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id that needs to be edited | |
body | Body | The model configuration |
'String'
No authorization required
- Content-Type: application/json
- Accept: Not defined
'String' editModelTrain(mid, trid)
Edit a trained model
Edit or update an existing training
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id
var trid = "trid_example"; // String | The train id that needs to be edited
apiInstance.editModelTrain(mid, trid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id | |
trid | String | The train id that needs to be edited |
'String'
No authorization required
- Content-Type: application/json
- Accept: Not defined
'String' editModel_0(mid, body)
Edit a model
Edit an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id that needs to be edited
var body = new algorithmhub.Body1(); // Body1 | The model configuration
apiInstance.editModel_0(mid, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id that needs to be edited | |
body | Body1 | The model configuration |
'String'
No authorization required
- Content-Type: application/json
- Accept: Not defined
Object fitModelTrain(mid)
Fit the model
Fit the model with the data
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id
apiInstance.fitModelTrain(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined
Object listModelTrain(mid)
List out trained models
List out all the trained models
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id
apiInstance.listModelTrain(mid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse200 listModels()
Return models owned
Return list of models owned by user
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
apiInstance.listModels().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: Not defined
InlineResponse200 listModels_0()
Return models owned
Return list of models owned by user
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
apiInstance.listModels_0().then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: Not defined
Object runModel(mid, input)
Run a model
Run an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id to run
var input = [new algorithmhub.[ERRORUNKNOWN]()]; // [ERRORUNKNOWN] | Input into the model
apiInstance.runModel(mid, input).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id to run | |
input | [ERRORUNKNOWN] | Input into the model |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined
Object runModelTrain(mid, trid)
Run a training
Run an specific training
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id to train
var trid = "trid_example"; // String | The training id
apiInstance.runModelTrain(mid, trid).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id to train | |
trid | String | The training id |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined
Object runModel_0(mid, input)
Run a model
Run an existing model
var algorithmhub = require('algorithmhub');
var apiInstance = new algorithmhub.ModelApi();
var mid = "mid_example"; // String | The model id to run
var input = [new algorithmhub.[ERRORUNKNOWN]()]; // [ERRORUNKNOWN] | Input into the model
apiInstance.runModel_0(mid, input).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
mid | String | The model id to run | |
input | [ERRORUNKNOWN] | Input into the model |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined