latestOpenAPI 3.0.12026-08-21183382785.0 KB

24caa8eb809b

Predictive Segments

Create predictive scoring model (legacy)

Create a new predictive scoring model. <br> This endpoint is for Audience Studio legacy. For the latest Audience Studio, contact your Customer Success Representative.

post/audiences/{audienceId}/predictive_segments

Path parameters

audienceIdinteger required

Master Segment id of the preditive segment

Request body

namestring
descriptionstring nullable
baseSegmentIdinteger nullable
segmentIdinteger
scoredSegmentIdinteger nullable
gradeThresholdsnumber[]

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

categoricalAsColumnNamesstring[]
categoricalArrayAsColumnNamesstring[]
quantitativeAsColumnNamesstring[]

Example request

{
  "gradeThresholds": [
    75,
    50,
    25
  ]
}

Response

successful operation

audienceIdstring integer
idstring integer
baseSegmentIdstring integer nullable
segmentIdstring integer
scoredSegmentIdstring integer nullable
namestring
descriptionstring nullable
categoricalAsColumnNamesstring[]
categoricalArrayAsColumnNamesstring[]
quantitativeAsColumnNamesstring[]
accuracynumber double nullable

Accuracy for trained model evaluated on initial training.

areaUnderRocCurvenumber double nullable
gradeThresholdsnumber[]

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

createdAtstring date-time
updatedAtstring date-time

Example response

{
  "gradeThresholds": [
    75,
    50,
    25
  ]
}