42 using namespace Eigen;
62 REQUIRE(feat_type,
"Input features (%s) must be DotFeatures"
65 "The dim of feature spaces between"
66 " input features (%d) and inducing features (%d) must be same\n",
74 SG_WARNING(
"Input features (%s) and inducing features (%s) are"
80 SG_WARNING(
"Input features and inducing features are difference types\n");
99 void CSparseInferenceBase::init()
115 REQUIRE(noise>0,
"Noise (%f) for inducing points must be postive",noise);
virtual const char * get_name() const =0
virtual bool init(CFeatures *lhs, CFeatures *rhs)
virtual void check_members() const
SGVector< float64_t > m_ktrtr_diag
SGVector< float64_t > m_alpha
The Inference Method base class.
virtual void convert_features()
virtual void set_inducing_features(CFeatures *feat)
virtual float64_t get_inducing_noise()
The class Labels models labels, i.e. class assignments of objects.
SGMatrix< float64_t > m_kuu
virtual SGMatrix< float64_t > get_cholesky()
virtual void update_train_kernel()
SGMatrix< float64_t > m_ktru
An abstract class of the mean function.
Features that support dot products among other operations.
SGMatrix< float64_t > m_inducing_features
SGMatrix< float64_t > get_kernel_matrix()
SGVector< float64_t > m_mu
virtual int32_t get_dim_feature_space() const =0
virtual void check_features()
SGMatrix< float64_t > m_L
virtual EFeatureClass get_feature_class() const =0
virtual void set_inducing_noise(float64_t noise)
SGMatrix< float64_t > m_Sigma
all of classes and functions are contained in the shogun namespace
virtual CFeatures * get_inducing_features()
The class Features is the base class of all feature objects.
static float64_t exp(float64_t x)
SGVector< float64_t > get_kernel_diagonal(SGVector< float64_t > preallocated=SGVector< float64_t >())
static float64_t log(float64_t v)
virtual void check_members() const
float64_t m_log_ind_noise
SGMatrix< float64_t > get_computed_dot_feature_matrix()
virtual ~CSparseInferenceBase()
virtual bool parameter_hash_changed()
The Likelihood model base class.
virtual EFeatureType get_feature_type() const =0
virtual SGVector< float64_t > get_alpha()