1.0.0 • Published 8 years ago

training_platform v1.0.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
8 years ago

training_platform

TrainingPlatform - JavaScript client for training_platform The Training platform allows dataset, models and experiments creation and management. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install training_platform --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var TrainingPlatform = require('training_platform');

var defaultClient = TrainingPlatform.ApiClient.instance;

// Configure OAuth2 access token for authorization: admin_auth
var admin_auth = defaultClient.authentications['admin_auth'];
admin_auth.accessToken = "YOUR ACCESS TOKEN"

var api = new TrainingPlatform.CommitApi()

var datasetId = 789; // {Number} the unique identifier of the target dataset, as an integer


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHistory(datasetId, callback);

Documentation for API Endpoints

All URIs are relative to http://docs-internal.visenze.com/v1

ClassMethodHTTP requestDescription
TrainingPlatform.CommitApigetHistoryGET /datasets/{dataset_id}/historyget the list of commits of a dataset
TrainingPlatform.ConceptApicreateConceptPOST /datasets/{dataset_id}/conceptscreate a new empty concept
TrainingPlatform.ConceptApideleteConceptDELETE /datasets/{dataset_id}/conceptsdelete a concept
TrainingPlatform.ConceptApigetConceptsGET /datasets/{dataset_id}/conceptsget the list of the concepts of a dataset
TrainingPlatform.ConceptApimergeConceptsPOST /datasets/{dataset_id}/concepts/mergemerge concepts
TrainingPlatform.ConceptApirenameConceptPOST /datasets/{dataset_id}/concepts/renamerename a concept
TrainingPlatform.Concept_groupApicreateConceptGroupPOST /datasets/{dataset_id}/concepts/groupcreate a concept group
TrainingPlatform.Concept_groupApideleteConceptGroupDELETE /datasets/{dataset_id}/concepts/groupdelete a concept group
TrainingPlatform.Concept_groupApigetConceptGroupsGET /datasets/{dataset_id}/concepts/grouplist concept groups
TrainingPlatform.Data_importation_taskApicreateDataImportationTasksPOST /datasets/{dataset_id}/import/taskCreate a data importation task
TrainingPlatform.Data_importation_taskApideleteDataImportationTasksDELETE /datasets/{dataset_id}/import/tasks/{task_id}Cancel and delete a data importation task
TrainingPlatform.Data_importation_taskApigetDataImportationTasksGET /datasets/{dataset_id}/import/taskList all the queued and ongoing data importation tasks on this dataset
TrainingPlatform.DatasetApicopyDatasetPOST /datasets/{dataset_id}/copyCopies a dataset
TrainingPlatform.DatasetApicreateDatasetPOST /datasetsCreate a new empty dataset
TrainingPlatform.DatasetApideleteDatasetDELETE /datasets/{dataset_id}Deletes a dataset
TrainingPlatform.DatasetApidownloadDatasetGET /datasets/{dataset_id}/downloadDownloads a dataset
TrainingPlatform.DatasetApigetDatasetGET /datasets/{dataset_id}Details of one dataset
TrainingPlatform.DatasetApigetDatasetsGET /datasetsSee the filtered, paged list of all datasets.
TrainingPlatform.DatasetApiupdateDatasetPOST /datasets/{dataset_id}Updates a dataset
TrainingPlatform.ExperimentApicreateExperimentPOST /experimentscreate and run an experiment
TrainingPlatform.ExperimentApideleteExperimentDELETE /experiments/{experiment_id}delete an experiment
TrainingPlatform.ExperimentApigetExperimentGET /experiments/{experiment_id}get html report of an experiment
TrainingPlatform.ExperimentApigetExperimentsGET /experimentslist experiments
TrainingPlatform.ExperimentApistopExperimentPOST /experiments/{experiment_id}/stopstop a running experiment
TrainingPlatform.ImageApideleteImageDELETE /datasets/{dataset_id}/imagesdelete an image from a dataset
TrainingPlatform.ImageApigetImagesGET /datasets/{dataset_id}/imageslist images
TrainingPlatform.ImageApiupdateImagePOST /datasets/{dataset_id}/imagesupdate an image
TrainingPlatform.ModelApicreateModelPOST /modelscreate and train a model
TrainingPlatform.ModelApideleteModelDELETE /models/{model_id}delete a model
TrainingPlatform.ModelApidownloadModelGET /models/{model_id}/downloadDownloads a model
TrainingPlatform.ModelApigetModelGET /models/{model_id}get details about one model
TrainingPlatform.ModelApigetModelsGET /modelslist models
TrainingPlatform.ModelApistopModelPOST /models/{model_id}/stopstop training a model
TrainingPlatform.ModelApitryModelPOST /models/{model_id}/trytry a model
TrainingPlatform.UserApicreateUserPOST /usersCreate user
TrainingPlatform.UserApideleteUserDELETE /user/{username}Delete user
TrainingPlatform.UserApigetUserByNameGET /user/{username}Get user by user name
TrainingPlatform.UserApigetUsersGET /usersGet the list of all registered users
TrainingPlatform.UserApiloginUserGET /users/loginLogs user into the system
TrainingPlatform.UserApilogoutUserGET /users/logoutLogs out current logged in user session
TrainingPlatform.UserApiupdateUserPUT /user/{username}Updated user

Documentation for Models

Documentation for Authorization

admin_auth

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header