void VisuParalx(Video_Win aW,Fonc_Num f,REAL & aV0,REAL & aV1,bool CalcV) { if (CalcV) ELISE_COPY ( aW.all_pts(),Rconv(f),VMin(aV0) | VMax(aV1)); ELISE_COPY ( aW.all_pts(), AUC(round_ni((f-aV0) * (255.0/(aV1-aV0)))), aW.ogray() ); }
double VarRTM::PredictAUC(RTMC &m, Mat &z_bar) { VReal real,pre; for (int d = 0; d < held_out_net_.cols(); d++) { for (SpMatInIt it(held_out_net_, d); it; ++it) { double label = it.value(); Vec pi = z_bar.col(d).cwiseProduct(z_bar.col(it.index())); double prob = Sigmoid(pi.dot(m.eta)); real.push_back(label); pre.push_back(prob); } } return AUC(real,pre); }
static Im2D_U_INT1 Im2(Im2D_U_INT1 Im1,Im2D_REAL4 XPar) { if (ImCox) return Im2D_U_INT1::FromFile("/home/pierrot/Data/Cox/pm-2.pgm"); Im2D_U_INT1 aRes(SzI.x,SzI.y); ELISE_COPY ( aRes.all_pts(), AUC( Im1.in_proj()[Virgule(FX+XPar.in(),FY)] * (0.9 + 0.2 *unif_noise_4(6)) + (unif_noise_4(2)-0.5)*20 ), aRes.out() ); return aRes; }