TCfyRes TLogRegMd::Test(PSVMTrainSet Set, const double& threshold) { TCountCfyRes Result; for (int i = 0; i < Set->Len(); i++) Result.Add(GetCfy(Set->GetAttrSparseV(i)) - threshold, Set->GetVecParam(i)); return Result.ToTCfyRes(); }
void TLogRegPredict::GetCfy(const TVec<TFltV>& X, TFltV& OutV, const TFltV& NewTheta) { OutV.Gen(X.Len()); for (int r = 0; r < X.Len(); r++) { OutV[r] = GetCfy(X[r], NewTheta); } }