' ########################################################################################
' Microsoft Windows
' File: oledbdm.inc
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_oledbdm_PBI)
#DEFINE PBX_oledbdm_PBI
%OLEDBDM_INC = 1
%DBSOURCETYPE_DATASOURCE_DM = 4
$OLEDB_DM_PROVIDER_STRING = "OLE DB DM Provider"
$DMSCHEMA_MINING_SERVICES = GUID$("{3ADD8A95-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_SERVICE_PARAMETERS = GUID$("{3ADD8A75-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_MODEL_CONTENT = GUID$("{3ADD8A76-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_MODEL_XML = GUID$("{4290B2D5-0E9C-4AA7-9369-98C95CFD9D13}")
$DMSCHEMA_MINING_MODELS = GUID$("{3ADD8A77-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_COLUMNS = GUID$("{3ADD8A78-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_FUNCTIONS = GUID$("{3ADD8A79-D8B9-11D2-8D2A-00E029154FDE}")
$DMSCHEMA_MINING_STRUCTURES = GUID$("{883269F3-0CAD-462F-B6F5-E88A72418C4B}")
$DMSCHEMA_MINING_STRUCTURE_COLUMNS = GUID$("{9952E836-BFBF-4D1F-8535-9B67DBD9DDFE}")
'// Fixing spec compliance issue in previous versions
$DMSCHEMA_MINING_MODEL_CONTENT_PMML = $DMSCHEMA_MINING_MODEL_XML
'// Node types in MINING_MODEL_CONTENT schema rowset
%DM_NODE_TYPE_MODEL = 1&
%DM_NODE_TYPE_CLASSIFICATION_TREE_ROOT = 2&
%DM_NODE_TYPE_TREE_INTERIOR = 3&
%DM_NODE_TYPE_TREE_DISTRIBUTION = 4&
%DM_NODE_TYPE_CLUSTER = 5&
%DM_NODE_TYPE_UNKNOWN = 6&
%DM_NODE_TYPE_ITEMSET = 7&
%DM_NODE_TYPE_ASSOCIATION_RULE = 8&
%DM_NODE_TYPE_NB_PREDICTABLE_ATTRIBUTE = 9&
%DM_NODE_TYPE_NB_INPUT_ATTRIBUTE = 10&
%DM_NODE_TYPE_NB_INPUT_ATTRIBUTE_STATE = 11&
%DM_NODE_TYPE_SEQUENCE = 13&
%DM_NODE_TYPE_TRANSITION = 14&
%DM_NODE_TYPE_TIME_SERIES = 15&
%DM_NODE_TYPE_TS_TREE = 16&
%DM_NODE_TYPE_NN_SUBNETWORK = 17&
%DM_NODE_TYPE_NN_INPUT_LAYER = 18&
%DM_NODE_TYPE_NN_HIDDEN_LAYER = 19&
%DM_NODE_TYPE_NN_OUTPUT_LAYER = 20&
%DM_NODE_TYPE_NN_INPUT_NODE = 21&
%DM_NODE_TYPE_NN_HIDDEN_NODE = 22&
%DM_NODE_TYPE_NN_OUTPUT_NODE = 23&
%DM_NODE_TYPE_NN_MARGINAL_STAT_NODE = 24&
%DM_NODE_TYPE_REGRESSION_TREE_ROOT = 25&
%DM_NODE_TYPE_NB_MARGINAL_STAT_NODE = 26&
%DM_NODE_TYPE_CUSTOM_BASE = 1000&
'//
'// Tree Operators for MINING_MODEL_CONTENT schema rowset
%DMTREEOP_CHILDREN = &H01
%DMTREEOP_SIBLINGS = &H02
%DMTREEOP_PARENT = &H04
%DMTREEOP_SELF = &H08
%DMTREEOP_DESCENDANTS = &H10
%DMTREEOP_ANCESTORS = &H20
' enum DM_MiningServiceTypeID
%DM_SERVICETYPE_CLASSIFICATION = &H1
%DM_SERVICETYPE_CLUSTERING = &H2
%DM_SERVICETYPE_ASSOCIATION = &H4
%DM_SERVICETYPE_DENSITY_ESTIMATE = &H8
%DM_SERVICETYPE_SEQUENCE = &H10
' enum DM_MiningServiceTrainingComplexity
%DM_TRAINING_COMPLEXITY_LOW = 0
%DM_TRAINING_COMPLEXITY_MEDIUM = 1
%DM_TRAINING_COMPLEXITY_HIGH = 2
' enum DM_MiningServicePredictionComplexity
%DM_PREDICTION_COMPLEXITY_LOW = 0
%DM_PREDICTION_COMPLEXITY_MEDIUM = 1
%DM_PREDICTION_COMPLEXITY_HIGH = 2
' enum DM_MiningServiceExpectedQuality
%DM_EXPECTED_QUALITY_LOW = 0
%DM_EXPECTED_QUALITY_MEDIUM = 1
%DM_EXPECTED_QUALITY_HIGH = 2
' enum DM_MiningServiceScaling
%DM_SCALING_LOW = 0
%DM_SCALING_MEDIUM = 1
%DM_SCALING_HIGH = 2
' enum DM_MiningServiceControl
%DM_CONTROL_NONE = 0
%DM_CONTROL_CANCEL = 1
%DM_CONTROL_SUSPENDRESUME = 2
%DM_CONTROL_SUSPENDWITHRESULT = 3
' enum DM_MiningServiceParameterFlags
%DM_PARAMETER_TRAINING = &H1
%DM_PARAMETER_PREDICTION = &H2
%DMMVALUETYPE_AUTODETECT = 0
%DMMVALUETYPE_MISSING = 1
%DMMVALUETYPE_EXISTING = 2
%DMMVALUETYPE_CONTINUOUS = 3
%DMMVALUETYPE_DISCRETE = 4
%DMMVALUETYPE_DISCRETIZED = 5
%DMMVALUETYPE_BOOLEAN = 6
%DMMVALUETYPE_COEFFICIENT = 7
%DMMVALUETYPE_SCOREGAIN = 8
%DMMVALUETYPE_STATISTICS = 9
%DMMVALUETYPE_NODE_UNIQUE_NAME = 10
%DMMVALUETYPE_INTERCEPT = 11