Share via


PredictorClient.PredictAllSegments

Ee784773.c++_on(en-US,CS.10).gifEe784773.vb_off(en-US,CS.10).gif

Use this method to predict the probabilities that a particular user, the current case, belongs to each segment of a population.

Definition

Sub PredictAllSegments(dCurrentCase As Object,pvsavSegmentNames As Variant,pvsavProbabilities As Variant)

Parameters

dCurrentCase

A Dictionary object that contains the current case.

pvsavSegmentNames

A Variant used to return a SafeArray containing the segment names.

pvsavProbabilities

A Variant used to return a SafeArray containing the membership probabilities associated with the segment names.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The Microsoft Research Cluster Engine Data Modeler groups similar users into segments. Similar segments are further grouped into higher order collections of segments, creating a hierarchy from which to analyze trends and discover hidden correlations. The returned probability associated with each segment name indicates the probability that the current user belongs to that segment.

Load the segment model using the LoadModelFromDB or LoadModelFromFile methods prior to using this method.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' dCase is a Dictionary object
' vsavSegmentNames and vsavProbabilities are Variant SafeArrays
oPredictorClient.PredictAllSegments dCase, vsavSegmentNames, _
 vsavProbabilities

See Also

PredictorClient Object


All rights reserved.