Skip to content

Retrieve list of predictive scoring models

Request

Retrieve a list of predictive scoring models in the specified parent segment.

Security
TdApikeyAuth
Path
audienceIdinteger, (int64)required

Master Segment id of the predictive segment

curl -i -X GET \
  'https://api-cdp.treasuredata.com/audiences/{audienceId}/predictive_segments' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

successful operation

Bodyapplication/json
Array [
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": [], "categoricalArrayAsColumnNames": [], "quantitativeAsColumnNames": [], "accuracy": 100, "areaUnderRocCurve": 1, "gradeThresholds": [], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]