Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }