10 #ifndef FEATUREBLOCKLOGISTICREGRESSION_H_
11 #define FEATUREBLOCKLOGISTICREGRESSION_H_
33 class CFeatureBlockLogisticRegression :
public CLinearMachine
40 CFeatureBlockLogisticRegression();
49 CFeatureBlockLogisticRegression(
51 CBinaryLabels* training_labels, CIndexBlockRelation* task_relation);
54 virtual ~CFeatureBlockLogisticRegression();
57 virtual const
char* get_name()
const
59 return "FeatureBlockLogisticRegression";
65 CIndexBlockRelation* get_feature_relation()
const;
70 void set_feature_relation(CIndexBlockRelation* feature_relation);
72 virtual float64_t apply_one(int32_t vec_idx);
75 int32_t get_max_iter()
const;
79 int32_t get_regularization()
const;
81 int32_t get_termination()
const;
88 void set_max_iter(int32_t max_iter);
92 void set_regularization(int32_t regularization);
94 void set_termination(int32_t termination);
102 virtual SGVector<float64_t> apply_get_outputs(CFeatures* data);
105 virtual bool train_machine(CFeatures* data=NULL);
110 void register_parameters();
118 CIndexBlockRelation* m_feature_relation;
121 int32_t m_regularization;
124 int32_t m_termination;
140 #endif //USE_GPL_SHOGUN
#define MACHINE_PROBLEM_TYPE(PT)
all of classes and functions are contained in the shogun namespace