mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-22 15:06:47 +01:00
Registered MLPPBernoulliNB into the ClassDB.
This commit is contained in:
parent
e33931aeb5
commit
b62df601fb
@ -187,3 +187,6 @@ void MLPPBernoulliNB::evaluate() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MLPPBernoulliNB::_bind_methods() {
|
||||
}
|
||||
|
@ -10,10 +10,14 @@
|
||||
|
||||
#include "core/math/math_defs.h"
|
||||
|
||||
#include "core/object/reference.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
class MLPPBernoulliNB {
|
||||
class MLPPBernoulliNB : public Reference {
|
||||
GDCLASS(MLPPBernoulliNB, Reference);
|
||||
|
||||
public:
|
||||
std::vector<real_t> model_set_test(std::vector<std::vector<real_t>> X);
|
||||
real_t model_test(std::vector<real_t> x);
|
||||
@ -25,11 +29,13 @@ public:
|
||||
MLPPBernoulliNB();
|
||||
~MLPPBernoulliNB();
|
||||
|
||||
private:
|
||||
protected:
|
||||
void compute_vocab();
|
||||
void compute_theta();
|
||||
void evaluate();
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
// Model Params
|
||||
real_t _prior_1;
|
||||
real_t _prior_0;
|
||||
|
@ -64,6 +64,7 @@ SOFTWARE.
|
||||
#include "mlpp/uni_lin_reg/uni_lin_reg.h"
|
||||
#include "mlpp/wgan/wgan.h"
|
||||
#include "mlpp/c_log_log_reg/c_log_log_reg.h"
|
||||
#include "mlpp/bernoulli_nb/bernoulli_nb.h"
|
||||
|
||||
#include "test/mlpp_tests.h"
|
||||
|
||||
@ -110,6 +111,7 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
||||
ClassDB::register_class<MLPPExpReg>();
|
||||
ClassDB::register_class<MLPPDualSVC>();
|
||||
ClassDB::register_class<MLPPCLogLogReg>();
|
||||
ClassDB::register_class<MLPPBernoulliNB>();
|
||||
|
||||
ClassDB::register_class<MLPPDataESimple>();
|
||||
ClassDB::register_class<MLPPDataSimple>();
|
||||
|
Loading…
Reference in New Issue
Block a user