Random swapping labels

Perform poisoning RSL attack by randomly choosing two samples of the training dataset and swapping their labels

post

Perform random swapping labels attack

Body
Responses
200
Successful operation
application/json
post
POST /strongcourage/MAIP/v1/attacks/poisoning/random-swapping-labels HTTP/1.1
Host: virtserver.swaggerhub.com
Content-Type: application/json
Accept: */*
Content-Length: 132

{
  "randomSwappingLabelsConfig": {
    "poisoningAttacksConfig": {
      "modelId": "e0a0588e-96c4-4fdf-9237-a8e94a6f5ffe.h5",
      "poisoningRate": "50"
    }
  }
}
200

Successful operation

{
  "isRunning": true,
  "config": {
    "ctganConfig": {
      "modelId": "e0a0588e-96c4-4fdf-9237-a8e94a6f5ffe.h5",
      "numberEpochs": "5",
      "numberSyntheticSamples": "10000"
    }
  },
  "lastRunAt": "123243534534"
}