' ########################################################################################
' 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
%EQUATE `OLEDBDM_INC = 1
%EQUATE `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
%EQUATE `DM_NODE_TYPE_MODEL = 1&
%EQUATE `DM_NODE_TYPE_CLASSIFICATION_TREE_ROOT = 2&
%EQUATE `DM_NODE_TYPE_TREE_INTERIOR = 3&
%EQUATE `DM_NODE_TYPE_TREE_DISTRIBUTION = 4&
%EQUATE `DM_NODE_TYPE_CLUSTER = 5&
%EQUATE `DM_NODE_TYPE_UNKNOWN = 6&
%EQUATE `DM_NODE_TYPE_ITEMSET = 7&
%EQUATE `DM_NODE_TYPE_ASSOCIATION_RULE = 8&
%EQUATE `DM_NODE_TYPE_NB_PREDICTABLE_ATTRIBUTE = 9&
%EQUATE `DM_NODE_TYPE_NB_INPUT_ATTRIBUTE = 10&
%EQUATE `DM_NODE_TYPE_NB_INPUT_ATTRIBUTE_STATE = 11&
%EQUATE `DM_NODE_TYPE_SEQUENCE = 13&
%EQUATE `DM_NODE_TYPE_TRANSITION = 14&
%EQUATE `DM_NODE_TYPE_TIME_SERIES = 15&
%EQUATE `DM_NODE_TYPE_TS_TREE = 16&
%EQUATE `DM_NODE_TYPE_NN_SUBNETWORK = 17&
%EQUATE `DM_NODE_TYPE_NN_INPUT_LAYER = 18&
%EQUATE `DM_NODE_TYPE_NN_HIDDEN_LAYER = 19&
%EQUATE `DM_NODE_TYPE_NN_OUTPUT_LAYER = 20&
%EQUATE `DM_NODE_TYPE_NN_INPUT_NODE = 21&
%EQUATE `DM_NODE_TYPE_NN_HIDDEN_NODE = 22&
%EQUATE `DM_NODE_TYPE_NN_OUTPUT_NODE = 23&
%EQUATE `DM_NODE_TYPE_NN_MARGINAL_STAT_NODE = 24&
%EQUATE `DM_NODE_TYPE_REGRESSION_TREE_ROOT = 25&
%EQUATE `DM_NODE_TYPE_NB_MARGINAL_STAT_NODE = 26&
%EQUATE `DM_NODE_TYPE_CUSTOM_BASE = 1000&
'//
'// Tree Operators for MINING_MODEL_CONTENT schema rowset
%EQUATE `DMTREEOP_CHILDREN = &H01
%EQUATE `DMTREEOP_SIBLINGS = &H02
%EQUATE `DMTREEOP_PARENT = &H04
%EQUATE `DMTREEOP_SELF = &H08
%EQUATE `DMTREEOP_DESCENDANTS = &H10
%EQUATE `DMTREEOP_ANCESTORS = &H20
' enum DM_MiningServiceTypeID
%EQUATE `DM_SERVICETYPE_CLASSIFICATION = &H1
%EQUATE `DM_SERVICETYPE_CLUSTERING = &H2
%EQUATE `DM_SERVICETYPE_ASSOCIATION = &H4
%EQUATE `DM_SERVICETYPE_DENSITY_ESTIMATE = &H8
%EQUATE `DM_SERVICETYPE_SEQUENCE = &H10
' enum DM_MiningServiceTrainingComplexity
%EQUATE `DM_TRAINING_COMPLEXITY_LOW = 0
%EQUATE `DM_TRAINING_COMPLEXITY_MEDIUM = 1
%EQUATE `DM_TRAINING_COMPLEXITY_HIGH = 2
' enum DM_MiningServicePredictionComplexity
%EQUATE `DM_PREDICTION_COMPLEXITY_LOW = 0
%EQUATE `DM_PREDICTION_COMPLEXITY_MEDIUM = 1
%EQUATE `DM_PREDICTION_COMPLEXITY_HIGH = 2
' enum DM_MiningServiceExpectedQuality
%EQUATE `DM_EXPECTED_QUALITY_LOW = 0
%EQUATE `DM_EXPECTED_QUALITY_MEDIUM = 1
%EQUATE `DM_EXPECTED_QUALITY_HIGH = 2
' enum DM_MiningServiceScaling
%EQUATE `DM_SCALING_LOW = 0
%EQUATE `DM_SCALING_MEDIUM = 1
%EQUATE `DM_SCALING_HIGH = 2
' enum DM_MiningServiceControl
%EQUATE `DM_CONTROL_NONE = 0
%EQUATE `DM_CONTROL_CANCEL = 1
%EQUATE `DM_CONTROL_SUSPENDRESUME = 2
%EQUATE `DM_CONTROL_SUSPENDWITHRESULT = 3
' enum DM_MiningServiceParameterFlags
%EQUATE `DM_PARAMETER_TRAINING = &H1
%EQUATE `DM_PARAMETER_PREDICTION = &H2
%EQUATE `DMMVALUETYPE_AUTODETECT = 0
%EQUATE `DMMVALUETYPE_MISSING = 1
%EQUATE `DMMVALUETYPE_EXISTING = 2
%EQUATE `DMMVALUETYPE_CONTINUOUS = 3
%EQUATE `DMMVALUETYPE_DISCRETE = 4
%EQUATE `DMMVALUETYPE_DISCRETIZED = 5
%EQUATE `DMMVALUETYPE_BOOLEAN = 6
%EQUATE `DMMVALUETYPE_COEFFICIENT = 7
%EQUATE `DMMVALUETYPE_SCOREGAIN = 8
%EQUATE `DMMVALUETYPE_STATISTICS = 9
%EQUATE `DMMVALUETYPE_NODE_UNIQUE_NAME = 10
%EQUATE `DMMVALUETYPE_INTERCEPT = 11
#ENDIF
