19 CSparseInverseCovariance::CSparseInverseCovariance() :
21 m_max_iter(1000), m_f_gap(1e-6), m_x_gap(1e-4),
24 register_parameters();
27 CSparseInverseCovariance::~CSparseInverseCovariance()
31 void CSparseInverseCovariance::register_parameters()
33 SG_ADD(&m_lasso_max_iter,
"lasso_max_iter",
35 SG_ADD(&m_max_iter,
"max_iter",
"maximum total iteration",
46 int32_t n = S.num_cols;
48 for (int32_t i=0; i<n; i++)
52 float64_t* W = SG_CALLOC(float64_t, n*n);
54 invCov(Theta, W, S.matrix, lambda_c, sum_S, n, m_lasso_max_iter,
55 m_f_gap, m_x_gap, m_max_iter, m_xtol);
58 return
SGMatrix<float64_t>(Theta,n,n);
60 #endif //USE_GPL_SHOGUN
Class SGObject is the base class of all shogun objects.
all of classes and functions are contained in the shogun namespace