Share via


IPredictorClient::get_bFailOnUnknownInputAttributes, put_bFailOnUnknownInputAttributes

Ee825860.c++_off(en-US,CS.10).gifEe825860.vb_on(en-US,CS.10).gif

The read/write bFailOnUnknownInputAttributes property controls whether the Predict method continues or fails when encountering unknown input attributes.

Definition

Get method:

HRESULT IPredictorClient::get_bFailOnUnknownInputAttributes(VARIANT_BOOL*pbVal);

Put method:

HRESULT IPredictorClient::put_bFailOnUnknownInputAttributes(VARIANT_BOOLpbval);

Parameters

pbVal

[in] When putting the property, a VARIANT_BOOL that indicates whether or not the Predict method should fail on unknown input attributes. The default value is False.
[out, retval] When getting the property, a pointer to a VARIANT_BOOL indicating whether the Predict method fails on unknown input attributes.

Return Values

These methods return an HRESULT indicating whether or not it completed successfully. See the following Error Values section for more details.

Error Values

These methods return 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.

Remarks

This property is used as a debugging flag. By default, the Predict method ignores unknown input attributes. Setting this property to True causes the Predict method to fail when unknown input attributes are encountered.

When debugging, set a default value for this property in the global.asa file to avoid setting the value for each Predict method call.

Load the prediction model using the LoadModelFromDB or LoadModelFromFile methods prior to accessing this property.

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

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

See Also

PredictorClient Object

IPredictorClient::Predict


All rights reserved.