Process (clsMiningModel)

Analysis Services Programming

Analysis Services Programming

Process (clsMiningModel)

The Process method of an object of ClassType clsMiningModel creates and trains a mining model on the Analysis server.

Syntax

object.Process([ByVal Options As ProcessTypes])

object

The mining model object to process.

Options

One of the constants in the ProcessTypes enumeration. For more information, see ProcessTypes.

The following ProcessTypes values are valid for processing a mining model.

Option Description
processFull Creates, updates, and trains the mining model on the Analysis server
processRefreshData Retrains a mining model on the Analysis server
Remarks

If you set a value for the TrainingQuery property, the value is used to train the mining model. If you do not set a value for TrainingQuery, the SHAPE query used to train the mining model is generated from the Columns collection of the model.

Example

The following example updates an existing mining model and saves it. It then locks the model with an informational message and processes the model. After processing the model is complete it unlocks the model.

dsoDmm.LastUpdated = Now
dsoDmm.Update
dsoDmm.LockObject olapLockProcess, "Processing the mining model in checkin test."
dsoDmm.Process processFull
dsoDmm.UnlockObject

See Also

clsColumn

clsMiningModel

ProcessTypes

TrainingQuery