17 using namespace shogun;
45 SG_ERROR(
"LatentModel is not set!\n")
55 ASSERT(latent_model != NULL)
64 SG_ERROR(
"LatentModel is not set!\n")
75 float64_t decrement = 0.0, primal_obj = 0.0, prev_po = 0.0;
86 SG_DEBUG(
"Do the inner loop of CCCP: optimize for w for fixed h*\n")
90 decrement = prev_po - primal_obj;
92 SG_DEBUG(
"decrement: %f\n", decrement)
93 SG_DEBUG(
"primal objective: %f\n", primal_obj)
96 stop = (inner_eps < (0.5*
m_C*m_epsilon+1E-8)) && (decrement <
m_C*
m_epsilon);
98 inner_eps = -decrement*0.01;
100 SG_DEBUG(
"inner epsilon: %f\n", inner_eps)
103 SG_DEBUG(
"Find and set h_i = argmax_h (w, psi(x_i,h))\n")
106 SG_DEBUG(
"Recalculating PSI (x,h) with the new h variables\n")
116 void CLinearLatentMachine::init()