Skip to content

Delete predictive scoring model (legacy)

Request

Delete a predictive scoring model.


This endpoint is for Audience Studio legacy. For the latest Audience Studio, contact your Customer Success Representative.

Security
TdApikeyAuth
Path
audienceIdinteger, (int64)required
predictiveSegmentIdinteger, (int64)required
curl -i -X DELETE \
  'https://api-cdp.treasuredata.com/audiences/{audienceId}/predictive_segments/{predictiveSegmentId}' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

success

Bodyapplication/json
audienceIdstring, (integer)
idstring, (integer)
baseSegmentIdstring or null, (integer)
segmentIdstring, (integer)
scoredSegmentIdstring or null, (integer)
namestring
descriptionstring or null
categoricalAsColumnNamesArray of strings
categoricalArrayAsColumnNamesArray of strings
quantitativeAsColumnNamesArray of strings
accuracynumber or null, (double), [ 0 .. 100 ](PredictiveSegmentAccuracy)

Accuracy for trained model evaluated on initial training.

areaUnderRocCurvenumber or null, (double), [ 0 .. 1 ](PredictiveSegmentAreaUnderRocCurve)

Evaluation score for the model. See also https://en.wikipedia.org/wiki/Receiver_operating_characteristic#Area_under_the_curve

gradeThresholdsArray of numbers, = 3 items(PredictiveSegmentGradeThresholds)

Given the items [a, b, c], they must meet the condition a >= b >= c

Example:
[ 75, 50, 25 ]
createdAtstring, (date-time)
updatedAtstring, (date-time)
Response
{ "audienceId": "string", "id": "string", "baseSegmentId": "string", "segmentId": "string", "scoredSegmentId": "string", "name": "string", "description": "string", "categoricalAsColumnNames": [ "string" ], "categoricalArrayAsColumnNames": [ "string" ], "quantitativeAsColumnNames": [ "string" ], "accuracy": 100, "areaUnderRocCurve": 1, "gradeThresholds": [ 75, 50, 25 ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }