public ClassifierResult <LblT> Classify(BinaryVector <int> .ReadOnly example) { Utils.ThrowException(m_lambda == null ? new InvalidOperationException() : null); Utils.ThrowException(example == null ? new ArgumentNullException("example") : null); return(MaxEnt.Classify(example, m_lambda, m_idx_to_lbl)); }
public Prediction <LblT> Predict(BinaryVector example) { Utils.ThrowException(mLambda == null ? new InvalidOperationException() : null); Utils.ThrowException(example == null ? new ArgumentNullException("example") : null); return(MaxEnt.Classify(example, mLambda, mIdxToLbl, mNormalize)); }