mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-21 14:56:47 +01:00
Moved classes out from the mlpp folder.
This commit is contained in:
parent
1e925bb0c4
commit
f940e805e4
@ -90,10 +90,10 @@ env.Append(CCFLAGS = ['-DGDNATIVE'])
|
|||||||
sources = [
|
sources = [
|
||||||
"gdlibrary.cpp",
|
"gdlibrary.cpp",
|
||||||
|
|
||||||
"mlpp/lin_alg/mlpp_vector.cpp",
|
"lin_alg/mlpp_vector.cpp",
|
||||||
"mlpp/lin_alg/mlpp_matrix.cpp",
|
"lin_alg/mlpp_matrix.cpp",
|
||||||
"mlpp/lin_alg/mlpp_tensor3.cpp",
|
"lin_alg/mlpp_tensor3.cpp",
|
||||||
"mlpp/lin_alg/lin_alg.cpp",
|
"lin_alg/lin_alg.cpp",
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
84
SCsub
84
SCsub
@ -12,49 +12,49 @@ if ARGUMENTS.get('pmlpp_build_tests', 'yes') == 'no':
|
|||||||
sources = [
|
sources = [
|
||||||
"register_types.cpp",
|
"register_types.cpp",
|
||||||
|
|
||||||
"mlpp/lin_alg/mlpp_vector.cpp",
|
"lin_alg/mlpp_vector.cpp",
|
||||||
"mlpp/lin_alg/mlpp_matrix.cpp",
|
"lin_alg/mlpp_matrix.cpp",
|
||||||
"mlpp/lin_alg/mlpp_tensor3.cpp",
|
"lin_alg/mlpp_tensor3.cpp",
|
||||||
|
|
||||||
"mlpp/activation/activation.cpp",
|
"activation/activation.cpp",
|
||||||
"mlpp/ann/ann.cpp",
|
"ann/ann.cpp",
|
||||||
"mlpp/auto_encoder/auto_encoder.cpp",
|
"auto_encoder/auto_encoder.cpp",
|
||||||
"mlpp/bernoulli_nb/bernoulli_nb.cpp",
|
"bernoulli_nb/bernoulli_nb.cpp",
|
||||||
"mlpp/c_log_log_reg/c_log_log_reg.cpp",
|
"c_log_log_reg/c_log_log_reg.cpp",
|
||||||
"mlpp/convolutions/convolutions.cpp",
|
"convolutions/convolutions.cpp",
|
||||||
"mlpp/cost/cost.cpp",
|
"cost/cost.cpp",
|
||||||
"mlpp/data/data.cpp",
|
"data/data.cpp",
|
||||||
"mlpp/dual_svc/dual_svc.cpp",
|
"dual_svc/dual_svc.cpp",
|
||||||
"mlpp/exp_reg/exp_reg.cpp",
|
"exp_reg/exp_reg.cpp",
|
||||||
"mlpp/gan/gan.cpp",
|
"gan/gan.cpp",
|
||||||
"mlpp/gaussian_nb/gaussian_nb.cpp",
|
"gaussian_nb/gaussian_nb.cpp",
|
||||||
"mlpp/gauss_markov_checker/gauss_markov_checker.cpp",
|
"gauss_markov_checker/gauss_markov_checker.cpp",
|
||||||
"mlpp/hidden_layer/hidden_layer.cpp",
|
"hidden_layer/hidden_layer.cpp",
|
||||||
"mlpp/hypothesis_testing/hypothesis_testing.cpp",
|
"hypothesis_testing/hypothesis_testing.cpp",
|
||||||
"mlpp/kmeans/kmeans.cpp",
|
"kmeans/kmeans.cpp",
|
||||||
"mlpp/knn/knn.cpp",
|
"knn/knn.cpp",
|
||||||
"mlpp/lin_alg/lin_alg.cpp",
|
"lin_alg/lin_alg.cpp",
|
||||||
"mlpp/lin_reg/lin_reg.cpp",
|
"lin_reg/lin_reg.cpp",
|
||||||
"mlpp/log_reg/log_reg.cpp",
|
"log_reg/log_reg.cpp",
|
||||||
"mlpp/mann/mann.cpp",
|
"mann/mann.cpp",
|
||||||
"mlpp/mlp/mlp.cpp",
|
"mlp/mlp.cpp",
|
||||||
"mlpp/multinomial_nb/multinomial_nb.cpp",
|
"multinomial_nb/multinomial_nb.cpp",
|
||||||
"mlpp/multi_output_layer/multi_output_layer.cpp",
|
"multi_output_layer/multi_output_layer.cpp",
|
||||||
"mlpp/numerical_analysis/numerical_analysis.cpp",
|
"numerical_analysis/numerical_analysis.cpp",
|
||||||
"mlpp/outlier_finder/outlier_finder.cpp",
|
"outlier_finder/outlier_finder.cpp",
|
||||||
"mlpp/output_layer/output_layer.cpp",
|
"output_layer/output_layer.cpp",
|
||||||
"mlpp/pca/pca.cpp",
|
"pca/pca.cpp",
|
||||||
"mlpp/probit_reg/probit_reg.cpp",
|
"probit_reg/probit_reg.cpp",
|
||||||
"mlpp/regularization/reg.cpp",
|
"regularization/reg.cpp",
|
||||||
"mlpp/softmax_net/softmax_net.cpp",
|
"softmax_net/softmax_net.cpp",
|
||||||
"mlpp/softmax_reg/softmax_reg.cpp",
|
"softmax_reg/softmax_reg.cpp",
|
||||||
"mlpp/stat/stat.cpp",
|
"stat/stat.cpp",
|
||||||
"mlpp/svc/svc.cpp",
|
"svc/svc.cpp",
|
||||||
"mlpp/tanh_reg/tanh_reg.cpp",
|
"tanh_reg/tanh_reg.cpp",
|
||||||
"mlpp/transforms/transforms.cpp",
|
"transforms/transforms.cpp",
|
||||||
"mlpp/uni_lin_reg/uni_lin_reg.cpp",
|
"uni_lin_reg/uni_lin_reg.cpp",
|
||||||
"mlpp/utilities/utilities.cpp",
|
"utilities/utilities.cpp",
|
||||||
"mlpp/wgan/wgan.cpp",
|
"wgan/wgan.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
if module_env.pmlpp_build_tests:
|
if module_env.pmlpp_build_tests:
|
||||||
|
@ -30,51 +30,51 @@
|
|||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
#include "mlpp/data/data.h"
|
#include "data/data.h"
|
||||||
#include "mlpp/lin_alg/mlpp_matrix.h"
|
#include "lin_alg/mlpp_matrix.h"
|
||||||
#include "mlpp/lin_alg/mlpp_tensor3.h"
|
#include "lin_alg/mlpp_tensor3.h"
|
||||||
#include "mlpp/lin_alg/mlpp_vector.h"
|
#include "lin_alg/mlpp_vector.h"
|
||||||
|
|
||||||
#include "mlpp/activation/activation.h"
|
#include "activation/activation.h"
|
||||||
#include "mlpp/convolutions/convolutions.h"
|
#include "convolutions/convolutions.h"
|
||||||
#include "mlpp/cost/cost.h"
|
#include "cost/cost.h"
|
||||||
#include "mlpp/gauss_markov_checker/gauss_markov_checker.h"
|
#include "gauss_markov_checker/gauss_markov_checker.h"
|
||||||
#include "mlpp/hypothesis_testing/hypothesis_testing.h"
|
#include "hypothesis_testing/hypothesis_testing.h"
|
||||||
#include "mlpp/lin_alg/lin_alg.h"
|
#include "lin_alg/lin_alg.h"
|
||||||
#include "mlpp/numerical_analysis/numerical_analysis.h"
|
#include "numerical_analysis/numerical_analysis.h"
|
||||||
#include "mlpp/regularization/reg.h"
|
#include "regularization/reg.h"
|
||||||
#include "mlpp/stat/stat.h"
|
#include "stat/stat.h"
|
||||||
#include "mlpp/transforms/transforms.h"
|
#include "transforms/transforms.h"
|
||||||
#include "mlpp/utilities/utilities.h"
|
#include "utilities/utilities.h"
|
||||||
|
|
||||||
#include "mlpp/hidden_layer/hidden_layer.h"
|
#include "hidden_layer/hidden_layer.h"
|
||||||
#include "mlpp/multi_output_layer/multi_output_layer.h"
|
#include "multi_output_layer/multi_output_layer.h"
|
||||||
#include "mlpp/output_layer/output_layer.h"
|
#include "output_layer/output_layer.h"
|
||||||
|
|
||||||
#include "mlpp/ann/ann.h"
|
#include "ann/ann.h"
|
||||||
#include "mlpp/auto_encoder/auto_encoder.h"
|
#include "auto_encoder/auto_encoder.h"
|
||||||
#include "mlpp/bernoulli_nb/bernoulli_nb.h"
|
#include "bernoulli_nb/bernoulli_nb.h"
|
||||||
#include "mlpp/c_log_log_reg/c_log_log_reg.h"
|
#include "c_log_log_reg/c_log_log_reg.h"
|
||||||
#include "mlpp/dual_svc/dual_svc.h"
|
#include "dual_svc/dual_svc.h"
|
||||||
#include "mlpp/exp_reg/exp_reg.h"
|
#include "exp_reg/exp_reg.h"
|
||||||
#include "mlpp/gan/gan.h"
|
#include "gan/gan.h"
|
||||||
#include "mlpp/gaussian_nb/gaussian_nb.h"
|
#include "gaussian_nb/gaussian_nb.h"
|
||||||
#include "mlpp/kmeans/kmeans.h"
|
#include "kmeans/kmeans.h"
|
||||||
#include "mlpp/knn/knn.h"
|
#include "knn/knn.h"
|
||||||
#include "mlpp/lin_reg/lin_reg.h"
|
#include "lin_reg/lin_reg.h"
|
||||||
#include "mlpp/log_reg/log_reg.h"
|
#include "log_reg/log_reg.h"
|
||||||
#include "mlpp/mann/mann.h"
|
#include "mann/mann.h"
|
||||||
#include "mlpp/mlp/mlp.h"
|
#include "mlp/mlp.h"
|
||||||
#include "mlpp/multinomial_nb/multinomial_nb.h"
|
#include "multinomial_nb/multinomial_nb.h"
|
||||||
#include "mlpp/outlier_finder/outlier_finder.h"
|
#include "outlier_finder/outlier_finder.h"
|
||||||
#include "mlpp/pca/pca.h"
|
#include "pca/pca.h"
|
||||||
#include "mlpp/probit_reg/probit_reg.h"
|
#include "probit_reg/probit_reg.h"
|
||||||
#include "mlpp/softmax_net/softmax_net.h"
|
#include "softmax_net/softmax_net.h"
|
||||||
#include "mlpp/softmax_reg/softmax_reg.h"
|
#include "softmax_reg/softmax_reg.h"
|
||||||
#include "mlpp/svc/svc.h"
|
#include "svc/svc.h"
|
||||||
#include "mlpp/tanh_reg/tanh_reg.h"
|
#include "tanh_reg/tanh_reg.h"
|
||||||
#include "mlpp/uni_lin_reg/uni_lin_reg.h"
|
#include "uni_lin_reg/uni_lin_reg.h"
|
||||||
#include "mlpp/wgan/wgan.h"
|
#include "wgan/wgan.h"
|
||||||
|
|
||||||
#ifdef TESTS_ENABLED
|
#ifdef TESTS_ENABLED
|
||||||
#include "test/mlpp_matrix_tests.h"
|
#include "test/mlpp_matrix_tests.h"
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include "core/log/logger.h"
|
#include "core/log/logger.h"
|
||||||
|
|
||||||
#include "../mlpp/lin_alg/mlpp_matrix.h"
|
#include "../lin_alg/mlpp_matrix.h"
|
||||||
|
|
||||||
void MLPPMatrixTests::run_tests() {
|
void MLPPMatrixTests::run_tests() {
|
||||||
PLOG_MSG("RUNNIG MLPPMatrixTests!");
|
PLOG_MSG("RUNNIG MLPPMatrixTests!");
|
||||||
|
@ -40,41 +40,41 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "../mlpp/lin_alg/mlpp_matrix.h"
|
#include "../lin_alg/mlpp_matrix.h"
|
||||||
#include "../mlpp/lin_alg/mlpp_vector.h"
|
#include "../lin_alg/mlpp_vector.h"
|
||||||
|
|
||||||
#include "../mlpp/activation/activation.h"
|
#include "../activation/activation.h"
|
||||||
#include "../mlpp/ann/ann.h"
|
#include "../ann/ann.h"
|
||||||
#include "../mlpp/auto_encoder/auto_encoder.h"
|
#include "../auto_encoder/auto_encoder.h"
|
||||||
#include "../mlpp/bernoulli_nb/bernoulli_nb.h"
|
#include "../bernoulli_nb/bernoulli_nb.h"
|
||||||
#include "../mlpp/c_log_log_reg/c_log_log_reg.h"
|
#include "../c_log_log_reg/c_log_log_reg.h"
|
||||||
#include "../mlpp/convolutions/convolutions.h"
|
#include "../convolutions/convolutions.h"
|
||||||
#include "../mlpp/cost/cost.h"
|
#include "../cost/cost.h"
|
||||||
#include "../mlpp/data/data.h"
|
#include "../data/data.h"
|
||||||
#include "../mlpp/dual_svc/dual_svc.h"
|
#include "../dual_svc/dual_svc.h"
|
||||||
#include "../mlpp/exp_reg/exp_reg.h"
|
#include "../exp_reg/exp_reg.h"
|
||||||
#include "../mlpp/gan/gan.h"
|
#include "../gan/gan.h"
|
||||||
#include "../mlpp/gaussian_nb/gaussian_nb.h"
|
#include "../gaussian_nb/gaussian_nb.h"
|
||||||
#include "../mlpp/kmeans/kmeans.h"
|
#include "../kmeans/kmeans.h"
|
||||||
#include "../mlpp/knn/knn.h"
|
#include "../knn/knn.h"
|
||||||
#include "../mlpp/lin_alg/lin_alg.h"
|
#include "../lin_alg/lin_alg.h"
|
||||||
#include "../mlpp/lin_reg/lin_reg.h"
|
#include "../lin_reg/lin_reg.h"
|
||||||
#include "../mlpp/log_reg/log_reg.h"
|
#include "../log_reg/log_reg.h"
|
||||||
#include "../mlpp/mann/mann.h"
|
#include "../mann/mann.h"
|
||||||
#include "../mlpp/mlp/mlp.h"
|
#include "../mlp/mlp.h"
|
||||||
#include "../mlpp/multinomial_nb/multinomial_nb.h"
|
#include "../multinomial_nb/multinomial_nb.h"
|
||||||
#include "../mlpp/numerical_analysis/numerical_analysis.h"
|
#include "../numerical_analysis/numerical_analysis.h"
|
||||||
#include "../mlpp/outlier_finder/outlier_finder.h"
|
#include "../outlier_finder/outlier_finder.h"
|
||||||
#include "../mlpp/pca/pca.h"
|
#include "../pca/pca.h"
|
||||||
#include "../mlpp/probit_reg/probit_reg.h"
|
#include "../probit_reg/probit_reg.h"
|
||||||
#include "../mlpp/softmax_net/softmax_net.h"
|
#include "../softmax_net/softmax_net.h"
|
||||||
#include "../mlpp/softmax_reg/softmax_reg.h"
|
#include "../softmax_reg/softmax_reg.h"
|
||||||
#include "../mlpp/stat/stat.h"
|
#include "../stat/stat.h"
|
||||||
#include "../mlpp/svc/svc.h"
|
#include "../svc/svc.h"
|
||||||
#include "../mlpp/tanh_reg/tanh_reg.h"
|
#include "../tanh_reg/tanh_reg.h"
|
||||||
#include "../mlpp/transforms/transforms.h"
|
#include "../transforms/transforms.h"
|
||||||
#include "../mlpp/uni_lin_reg/uni_lin_reg.h"
|
#include "../uni_lin_reg/uni_lin_reg.h"
|
||||||
#include "../mlpp/wgan/wgan.h"
|
#include "../wgan/wgan.h"
|
||||||
|
|
||||||
Vector<real_t> dstd_vec_to_vec(const std::vector<real_t> &in) {
|
Vector<real_t> dstd_vec_to_vec(const std::vector<real_t> &in) {
|
||||||
Vector<real_t> r;
|
Vector<real_t> r;
|
||||||
|
Loading…
Reference in New Issue
Block a user