protected AbstractModel(Context[] parameters, IndexHashTable <string> map, string[] outcomeNames) { this.map = map; this.outcomeNames = outcomeNames; evalParameters = new EvalParameters(parameters, outcomeNames.Length); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> /// <param name="other">An object to compare with this object.</param> public bool Equals(IndexHashTable <T> other) { if (other == null) { return(false); } if (other.count != count) { return(false); } for (var i = 0; i < lastIndex; i++) { if (slots[i].hashCode > 0 && !other.Contains(slots[i].value)) { return(false); } } return(true); }
private AbstractModel(string[] predLabels, string[] outcomeNames) { map = new IndexHashTable <string>(predLabels, 0.7d); this.outcomeNames = outcomeNames; }