mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-22 15:06:47 +01:00
Registered MLPPCLogLogReg into the ClassDB.
This commit is contained in:
parent
be9947a8b9
commit
e33931aeb5
@ -248,3 +248,6 @@ void MLPPCLogLogReg::forward_pass() {
|
||||
_z = propagatem(_input_set);
|
||||
_y_hat = avn.cloglog(_z);
|
||||
}
|
||||
|
||||
void MLPPCLogLogReg::_bind_methods() {
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user