Retrain

Retraining a specific model using different training datasets

Retraining a specific model using different training datasets

POSThttps://virtserver.swaggerhub.com/strongcourage/MAIP/v1/retrain/{modelId}
Path parameters
modelId*string

Name of the model file to return

Example: "3c6e4cb4-9b74-40c8-8f4a-132c9d5e4ace.h5"
Body
retrainConfig1datasetsConfig (object)
Response

Successful operation

Body
isRunningboolean
Example: true
configretrainConfig (object)
lastRetrainIdstring
Example: "fadfafewfwefwe"
lastRetrainAtstring
Example: "123243534534"
Request
const response = await fetch('https://virtserver.swaggerhub.com/strongcourage/MAIP/v1/retrain/{modelId}', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "isRunning": true,
  "config": {
    "retrainConfig": {
      "modelId": "e0a0588e-96c4-4fdf-9237-a8e94a6f5ffe.h5",
      "trainingDataset": "/tmp/Botnet_Train.csv",
      "testingDataset": "/tmp/Botnet_Test.csv",
      "training_parameters": {
        "nb_epoch_cnn": 2,
        "nb_epoch_sae": 5,
        "batch_size_cnn": 32,
        "batch_size_sae": 16
      }
    }
  },
  "lastRetrainId": "fadfafewfwefwe",
  "lastRetrainAt": "123243534534"
}