25 using namespace shogun;
58 get_first_feature_obj();
78 void CExactInferenceMethod::check_members()
84 SG_ERROR(
"Expected RegressionLabels\n");
90 SG_ERROR(
"Number of training vectors does not match number of labels\n");
96 get_first_feature_obj();
99 SG_ERROR(
"Specified features are not of type CFeatures\n");
102 SG_ERROR(
"Expected Simple Features\n");
105 SG_ERROR(
"Expected Real Features\n");
113 SG_ERROR(
"Specified features are not of type CFeatures\n");
116 SG_ERROR(
"Expected Simple Features\n");
119 SG_ERROR(
"Expected Real Features\n");
126 SG_ERROR(
"No mean function assigned!\n");
130 SG_ERROR(
"Exact Inference Method can only use " \
131 "Gaussian Likelihood Function.\n");
172 clapack_dpotrs(CblasColMajor, CblasUpper,
184 cblas_dsymm(CblasColMajor, CblasLeft, CblasUpper,
200 3+para_dict.get_num_elements(),
201 3+para_dict.get_num_elements());
203 for (
index_t i = 0; i < para_dict.get_num_elements(); i++)
205 shogun::CMapNode<TParameter*, CSGObject*>*
node =
206 para_dict.get_node_ptr(i);
220 bool deriv_found =
false;
222 for (
index_t g = 0; g < length; g++)
260 else if (mean_derivatives.
vlen > 0)
262 sum = mean_derivatives.
dot(mean_derivatives.
vector,
272 gradient.
add(param, variables);
294 gradient.
add(param, scale);
295 para_dict.add(param,
this);
305 gradient.
add(param, sigma);
408 cblas_dsymm(CblasColMajor, CblasLeft, CblasUpper,
418 clapack_dpotrf(CblasColMajor, CblasUpper,
427 for (
int i = 0; i < temp1.
num_rows; i++)
429 for (
int j = 0; j < temp1.
num_cols; j++)
461 clapack_dposv(CblasColMajor, CblasLower,
471 #endif // HAVE_LAPACK