Пример #1
0
 private void InitializeComponents(string[] predicateLabels, string[] outcomeNames)
 {
     PredicatesMap = new IndexHashTable <string>(predicateLabels, 0.7d);
     OutcomeNames  = outcomeNames;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractModel"/> class.
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <param name="predicatesMap">The predicates map.</param>
 /// <param name="outcomeNames">The outcome names.</param>
 public AbstractModel(Context[] parameters, IndexHashTable <string> predicatesMap, string[] outcomeNames)
 {
     PredicatesMap  = predicatesMap;
     OutcomeNames   = outcomeNames;
     EvalParameters = new EvalParameters(parameters, outcomeNames.Length);
 }