本文整理汇总了C#中IO.GetOutcomeLabels方法的典型用法代码示例。如果您正苦于以下问题:C# IO.GetOutcomeLabels方法的具体用法?C# IO.GetOutcomeLabels怎么用?C# IO.GetOutcomeLabels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IO
的用法示例。
在下文中一共展示了IO.GetOutcomeLabels方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GisModel
/// <summary>
/// Constructor for a maximum entropy model trained using the
/// Generalized Iterative Scaling procedure.
/// </summary>
/// <param name="reader">
/// A reader providing the data for the model.
/// </param>
public GisModel(IO.IGisModelReader reader)
{
this._reader = reader;
_outcomeNames = reader.GetOutcomeLabels();
CorrectionConstant = reader.CorrectionConstant;
CorrectionParameter = reader.CorrectionParameter;
_outcomeCount = _outcomeNames.Length;
_initialProbability = Math.Log(1.0 / _outcomeCount);
_correctionConstantInverse = 1.0 / CorrectionConstant;
_featureCounts = new int[_outcomeCount];
}
示例2: GisModel
/// <summary>
/// Constructor for a maximum entropy model trained using the
/// Generalized Iterative Scaling procedure.
/// </summary>
/// <param name="reader">
/// A reader providing the data for the model.
/// </param>
public GisModel(IO.IGisModelReader reader)
{
mReader = reader;
mOutcomeNames = reader.GetOutcomeLabels();
mCorrectionConstant = (double)reader.CorrectionConstant;
mCorrectionParameter = reader.CorrectionParameter;
mOutcomeCount = mOutcomeNames.Length;
mInitialProbability = System.Math.Log(1.0 / mOutcomeCount);
mCorrectionConstantInverse = 1.0 / mCorrectionConstant;
mFeatureCounts = new int[mOutcomeCount];
}