18 using namespace shogun;
42 void CLinearARDKernel::init()
55 CDotKernel::init(l, r);
72 REQUIRE(alen==blen,
"Number of Right and Left Hand "\
73 "Features Must be the Same./n");
79 for (int32_t i=0; i < alen; i++)
83 SG_DEBUG(
"Initialized weights for LinearARDKernel (%p).\n",
this);
91 SG_ERROR(
"Index %i out of range for LinearARDKernel."\
102 SG_ERROR(
"Index %i out of range for LinearARDKernel."\
120 "Features Must be the Same./n");
136 if (!strcmp(param->
m_name,
"weights") && obj ==
this)
150 "Features Must be the Same./n");
152 derivative(j,k) = avec[index]*bvec[index]*
m_weights[index];