Building Multiple Models at the Same Time Takes Longer than Expected (277371)
The information in this article applies to:
- Microsoft Commerce Server 2002
- Microsoft Commerce Server 2000
This article was previously published under Q277371 SYMPTOMS
If you build a large number of models at the same time through the Microsoft Management Console (MMC), it takes much longer than if you build them one at a time.
WORKAROUND
If you want to build more than one model at the same time, do it through a script rather than the MMC. If you have a model in the building process and you want to stop the process, right-click the model line, and then click Stop.
The following Microsoft Visual Basic code demonstrates how to use script to build multiple models:
Dim dBuildParams As Commerce.Dictionary
Set dBuildParams = Server.CreateObject("Commerce.Dictionary")
dBuildParams("ModelType") = 0
dBuildParams("ComplexityPenalty") = 75
dBuildParams("InputAttributeFraction") = 0.5
dBuildParams("MeasuredAccuracyMaxPredictions") = 10
dBuildParams("MeasuredAccuracySampleFraction") = 0.2
dBuildParams("MinimumCasesToSplit") = 10
dBuildParams("OutputAttributeFraction") = .5
dBuildParams("SampleSize") = 15,000
Dim oPersistXML As IPersistXML
Set oPersistXML = dBuildParams
Dim sXMLBuildParams As String
sXMLBuildParams = oPersistXML.SaveXML(0)
Set oPersistXML = Nothing
Set dBuildParams = Nothing
Dim oPredModelBuilder As Commerce.PredictorModelBuilder
Set oPredModelBuilder = _
Server.CreateObject("Commerce.PredictorModelBuilder")
Dim lBuildID(5) As Long
Dim I As Integer
For I=0 To 5
lBuildID(I) = oPredModelBuilder.Start(sDWConnect, "", _
"PurchaseCfg1", "Purchase" & I, sXMLBuildParams, True)
Next I
Set oPersistXML = Nothing
Set dBuildParams = Nothing
Set oPredModelBuilder = Nothing
STATUSMicrosoft has confirmed that this is a problem in Microsoft Commerce Server 2000.
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | kbbug kbpending KB277371 |
---|
|