方法名
| 实现(参考)
| 备注
|
GetServiceName
| return "MyFirstAlgorithmPlugin"
| 这个方法的返回值中不能带有空格字符
|
GetServiceDescription
| return "Sample Algorithm Plugin";
| |
GetServiceType
| PlugInServiceType.ServiceTypeOther;
| |
GetViewerType
| return string.Empty
| |
GetScaling
| return MiningScaling.Medium;
| 用于指定算法适用的规模,这个值不会被服务器使用而是显示在模式行集中,为用户提供算法的一些相关信息。
|
GetTrainingComplexity
| return MiningTrainingComplexity.Low
| 用于指定算法训练适用的复杂度,这个值不会被服务器使用而是显示在模式行集中,为用户提供算法的一些相关信息。
|
GetPredictionComplexity
| return MiningPredictionComplexity.Low
| 用于指定预测复杂度,这个值不会被服务器使用而是显示在模式行集中,为用户提供算法的一些相关信息。
|
GetSupportsDMDimensions
| retrun false;
| |
GetSupportsDrillThrough
| return false;
| 指定这个算法是否支持钻透功能。
|
GetDrillThroughMustIncludeChildren
| return false;
| |
GetCaseIdModeled
| return false;
| |
GetMarginalRequirements
| return MarginalRequirements.AllStats
| |
GetParametersCollection
| return null;
| 算法参数,因为本文中的例子没有参数,所以这里返回空。
|
GetSupInputContentTypes
| MiningColumnContent[] arInputContentTypes = new MiningColumnContent[]
{
MiningColumnContent.Discrete,
MiningColumnContent.Continuous,
MiningColumnContent.Discretized,
MiningColumnContent.NestedTable,
MiningColumnContent.Key
};
return arInputContentTypes;
| 指定算法所支持的输入属性的数据类型,如连续型、离散型等。
|
GetSupPredictContentTypes
| MiningColumnContent[] arPredictContentTypes = new MiningColumnContent[]
{
MiningColumnContent.Discrete,
MiningColumnContent.Continuous,
MiningColumnContent.Discretized,
MiningColumnContent.NestedTable,
MiningColumnContent.Key
};
return arPredictContentTypes;
| 与上一个方法类似,这里是指定预测属性所支持的数据类型。
|
GetSupportedStandardFunctions
| SupportedFunction[] arFuncs
= new SupportedFunction[] {
SupportedFunction.PredictSupport,
SupportedFunction.PredictHistogram,
SupportedFunction.PredictProbability,
SupportedFunction.PredictAdjustedProbability,
SupportedFunction.PredictAssociation,
SupportedFunction.PredictStdDev,
SupportedFunction.PredictVariance,
SupportedFunction.RangeMax,
SupportedFunction.RangeMid,
SupportedFunction.RangeMin,
SupportedFunction.DAdjustedProbability,
SupportedFunction.DProbability,
SupportedFunction.DStdDev,
SupportedFunction.DSupport,
SupportedFunction.DVariance,
// content-related functions
SupportedFunction.IsDescendent,
SupportedFunction.PredictNodeId,
SupportedFunction.IsInNode,
SupportedFunction.DNodeId,
};
return arFuncs;
| 指定DMX所支持的函数。
|
CreateAlgorithm
| return new Algorithm();
| 返回算法实例,Algorithm是接下来要创建的类。
|