Skip to content

Predictive Segments

Using Treasure Data’s predictive scoring model, based on predictive segments, marketers can predict profile behavior such as who is likely to churn, purchase, click, or convert in the near future.

A predictive model is a set of rules that makes it possible to predict an unmeasured value from other, known values. The form of the rules is suggested by reviewing the data collected. Training is then used to make some predictions. Predictive modeling uses statistics to predict outcomes.

Predictive modeling is a typically used statistical technique to predict future behavior. Predictive modeling solutions analyze historical and current data and the generated model helps predict future outcomes. In predictive modeling, data is collected, a statistical model is formulated, predictions are made, and the model is validated (or revised) as additional data becomes available. For example, risk models can be created to combine member information in complex ways with demographic and lifestyle information from external sources to improve underwriting accuracy. Predictive models analyze past performance to assess how likely a customer is to exhibit a specific behavior in the future. This category also encompasses models that seek out subtle data patterns to answer questions about customer performance, such as fraud detection models. Predictive models often perform calculations during live transactions—for example, to evaluate the risk or opportunity of a given customer or transaction to guide a decision.

Treasure Data’s predictive scoring model uses predictive segments to customize predictive scoring models for a particular segment.

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" } ]