IPredictorServiceSiteAdmin2::get_lCaseCount Property [C++]

The lCaseCount property is a read-only Long that contains a count of the number of cases used by a model configuration.

Definition

[C++]

HRESULT IPredictorServiceSiteAdmin2::get_lCaseCount(BSTRsConfigName,
  long*plCaseCount);

[Visual Basic]

Property lCaseCount(sConfigName As String) As Long

Parameters

  • sConfigName[C++]
    [in] A BSTR that contains the model configuration name.
  • sConfigName[Visual Basic]
    A String that contains the model configuration name.
  • plCaseCount[C++]
    [out, retval] A pointer to a long that contains the number of cases for the specified model configuration.

[C++]

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the following Error Values section for more details.

Error Values

[C++] This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT 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, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] This property 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

A case is the set of information known about a particular user. This information might include user profile data, purchase history, URL click history, or other user associated data. The number of cases used to build a model affects the accuracy of that model. In general, predictions will be more accurate when many cases are available for the model. However, the time necessary to build the model increases with the number of cases in the configuration and increases in accuracy are slight when the number of cases becomes very large (typically, greater than 50,000 cases).

Use the slModelConfigs property of the PredictorServiceAdmin object to retrieve a list of the available model configurations.

Connect to the Data Warehouse using the Init method before accessing this property.

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

[C++]

The plCaseCount parameter contains valid data only if the property is accessed successfully.

See Also

[C++]PredictorServiceAdmin Object

[C++]PredictorServiceSiteAdmin Object

[C++]PredModelBuilder Object

[Visual Basic]PredictorServiceAdmin Object

[Visual Basic]PredictorServiceSiteAdmin Object

[Visual Basic]PredModelBuilder Object

Copyright © 2005 Microsoft Corporation.
All rights reserved.