Registered MLPPCLogLogReg into the ClassDB.

This commit is contained in:
Relintai 2023-02-12 18:23:33 +01:00
parent be9947a8b9
commit e33931aeb5
3 changed files with 13 additions and 2 deletions

View File

@ -248,3 +248,6 @@ void MLPPCLogLogReg::forward_pass() {
_z = propagatem(_input_set);
_y_hat = avn.cloglog(_z);
}
void MLPPCLogLogReg::_bind_methods() {
}

View File

@ -10,10 +10,14 @@
#include "core/math/math_defs.h"
#include "core/object/reference.h"
#include <string>
#include <vector>
class MLPPCLogLogReg {
class MLPPCLogLogReg : public Reference {
GDCLASS(MLPPCLogLogReg, 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);
@ -30,7 +34,7 @@ public:
MLPPCLogLogReg();
~MLPPCLogLogReg();
private:
protected:
void weight_initialization(int k);
void bias_initialization();
@ -44,6 +48,8 @@ private:
void forward_pass();
static void _bind_methods();
std::vector<std::vector<real_t>> _input_set;
std::vector<real_t> _output_set;
std::vector<real_t> _y_hat;

View File

@ -63,6 +63,7 @@ SOFTWARE.
#include "mlpp/tanh_reg/tanh_reg.h"
#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 "test/mlpp_tests.h"
@ -108,6 +109,7 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
ClassDB::register_class<MLPPGAN>();
ClassDB::register_class<MLPPExpReg>();
ClassDB::register_class<MLPPDualSVC>();
ClassDB::register_class<MLPPCLogLogReg>();
ClassDB::register_class<MLPPDataESimple>();
ClassDB::register_class<MLPPDataSimple>();