Move comments below include guards.

This commit is contained in:
Relintai 2023-01-24 18:57:18 +01:00
parent db79c6215b
commit 284355ac6a
38 changed files with 152 additions and 114 deletions

View File

@ -1,12 +1,13 @@
#ifndef MLPP_ACTIVATION_H
#define MLPP_ACTIVATION_H
// //
// Activation.hpp // Activation.hpp
// //
// Created by Marc Melikyan on 1/16/21. // Created by Marc Melikyan on 1/16/21.
// //
#ifndef MLPP_ACTIVATION_H
#define MLPP_ACTIVATION_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,12 +1,12 @@
#ifndef MLPP_ANN_H
#define MLPP_ANN_H
// //
// ANN.hpp // ANN.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_ANN_H
#define MLPP_ANN_H
#include "hidden_layer/hidden_layer.h" #include "hidden_layer/hidden_layer.h"
#include "output_layer/output_layer.h" #include "output_layer/output_layer.h"

View File

@ -1,12 +1,13 @@
#ifndef MLPP_AUTO_ENCODER_H
#define MLPP_AUTO_ENCODER_H
// //
// AutoEncoder.hpp // AutoEncoder.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_AUTO_ENCODER_H
#define MLPP_AUTO_ENCODER_H
#include <vector> #include <vector>
#include <tuple> #include <tuple>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_BERNOULLI_NB_H
#define MLPP_BERNOULLI_NB_H
// //
// BernoulliNB.hpp // BernoulliNB.hpp
// //
// Created by Marc Melikyan on 1/17/21. // Created by Marc Melikyan on 1/17/21.
// //
#ifndef MLPP_BERNOULLI_NB_H
#define MLPP_BERNOULLI_NB_H
#include <vector> #include <vector>
#include <map> #include <map>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_C_LOG_LOG_REG_H
#define MLPP_C_LOG_LOG_REG_H
// //
// CLogLogReg.hpp // CLogLogReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_C_LOG_LOG_REG_H
#define MLPP_C_LOG_LOG_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,11 +1,13 @@
#ifndef MLPP_COST_H
#define MLPP_COST_H
// //
// Cost.hpp // Cost.hpp
// //
// Created by Marc Melikyan on 1/16/21. // Created by Marc Melikyan on 1/16/21.
// //
#ifndef MLPP_COST_H
#define MLPP_COST_H
#include <vector> #include <vector>

View File

@ -1,3 +1,7 @@
#ifndef MLPP_DATA_H
#define MLPP_DATA_H
// //
// Data.hpp // Data.hpp
// MLP // MLP
@ -5,8 +9,6 @@
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_DATA_H
#define MLPP_DATA_H
#include <vector> #include <vector>
#include <tuple> #include <tuple>

View File

@ -1,3 +1,7 @@
#ifndef MLPP_DUAL_SVC_H
#define MLPP_DUAL_SVC_H
// //
// DualSVC.hpp // DualSVC.hpp
// //
@ -7,9 +11,6 @@
// http://ciml.info/dl/v0_99/ciml-v0_99-ch11.pdf // http://ciml.info/dl/v0_99/ciml-v0_99-ch11.pdf
// Were excellent for the practical intution behind the dual formulation. // Were excellent for the practical intution behind the dual formulation.
#ifndef MLPP_DUAL_SVC_H
#define MLPP_DUAL_SVC_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_EXP_REG_H
#define MLPP_EXP_REG_H
// //
// ExpReg.hpp // ExpReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_EXP_REG_H
#define MLPP_EXP_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_GAN_hpp
#define MLPP_GAN_hpp
// //
// GAN.hpp // GAN.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_GAN_hpp
#define MLPP_GAN_hpp
#include "../hidden_layer/hidden_layer.h" #include "../hidden_layer/hidden_layer.h"
#include "../output_layer/output_layer.h" #include "../output_layer/output_layer.h"

View File

@ -1,12 +1,13 @@
#ifndef MLPP_GAUSS_MARKOV_CHECKER_H
#define MLPP_GAUSS_MARKOV_CHECKER_H
// //
// GaussMarkovChecker.hpp // GaussMarkovChecker.hpp
// //
// Created by Marc Melikyan on 11/13/20. // Created by Marc Melikyan on 11/13/20.
// //
#ifndef MLPP_GAUSS_MARKOV_CHECKER_H
#define MLPP_GAUSS_MARKOV_CHECKER_H
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -1,11 +1,13 @@
#ifndef MLPP_GAUSSIAN_NB_H
#define MLPP_GAUSSIAN_NB_H
// //
// GaussianNB.hpp // GaussianNB.hpp
// //
// Created by Marc Melikyan on 1/17/21. // Created by Marc Melikyan on 1/17/21.
// //
#ifndef MLPP_GAUSSIAN_NB_H
#define MLPP_GAUSSIAN_NB_H
#include <vector> #include <vector>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_HIDDEN_LAYER_H
#define MLPP_HIDDEN_LAYER_H
// //
// HiddenLayer.hpp // HiddenLayer.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_HIDDEN_LAYER_H
#define MLPP_HIDDEN_LAYER_H
#include "../activation/activation.h" #include "../activation/activation.h"
#include <vector> #include <vector>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_HYPOTHESIS_TESTING_H
#define MLPP_HYPOTHESIS_TESTING_H
// //
// HypothesisTesting.hpp // HypothesisTesting.hpp
// //
// Created by Marc Melikyan on 3/10/21. // Created by Marc Melikyan on 3/10/21.
// //
#ifndef MLPP_HYPOTHESIS_TESTING_H
#define MLPP_HYPOTHESIS_TESTING_H
#include <vector> #include <vector>
#include <tuple> #include <tuple>

View File

@ -1,11 +1,13 @@
#ifndef MLPP_K_MEANS_H
#define MLPP_K_MEANS_H
// //
// KMeans.hpp // KMeans.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_K_MEANS_H
#define MLPP_K_MEANS_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_KNN_H
#define MLPP_KNN_H
// //
// kNN.hpp // kNN.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_KNN_H
#define MLPP_KNN_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,12 +1,13 @@
#ifndef MLPP_LIN_ALG_H
#define MLPP_LIN_ALG_H
// //
// LinAlg.hpp // LinAlg.hpp
// //
// Created by Marc Melikyan on 1/8/21. // Created by Marc Melikyan on 1/8/21.
// //
#ifndef MLPP_LIN_ALG_H
#define MLPP_LIN_ALG_H
#include <vector> #include <vector>
#include <tuple> #include <tuple>

View File

@ -1,11 +1,13 @@
#ifndef MLPP_LIN_REG_H
#define MLPP_LIN_REG_H
// //
// LinReg.hpp // LinReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_LIN_REG_H
#define MLPP_LIN_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,13 +1,13 @@
#ifndef MLPP_LOG_REG_H
#define MLPP_LOG_REG_H
// //
// LogReg.hpp // LogReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_LOG_REG_H
#define MLPP_LOG_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_MANN_H
#define MLPP_MANN_H
// //
// MANN.hpp // MANN.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_MANN_H
#define MLPP_MANN_H
#include "../hidden_layer/hidden_layer.h" #include "../hidden_layer/hidden_layer.h"
#include "../multi_output_layer/multi_output_layer.h" #include "../multi_output_layer/multi_output_layer.h"

View File

@ -1,12 +1,13 @@
#ifndef MLPP_MLP_H
#define MLPP_MLP_H
// //
// MLP.hpp // MLP.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_MLP_H
#define MLPP_MLP_H
#include <vector> #include <vector>
#include <map> #include <map>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_MULTI_OUTPUT_LAYER_H
#define MLPP_MULTI_OUTPUT_LAYER_H
// //
// MultiOutputLayer.hpp // MultiOutputLayer.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_MULTI_OUTPUT_LAYER_H
#define MLPP_MULTI_OUTPUT_LAYER_H
#include "../activation/activation.h" #include "../activation/activation.h"
#include "../cost/cost.h" #include "../cost/cost.h"

View File

@ -1,12 +1,13 @@
#ifndef MLPP_MULTINOMIAL_NB_H
#define MLPP_MULTINOMIAL_NB_H
// //
// MultinomialNB.hpp // MultinomialNB.hpp
// //
// Created by Marc Melikyan on 1/17/21. // Created by Marc Melikyan on 1/17/21.
// //
#ifndef MLPP_MULTINOMIAL_NB_H
#define MLPP_MULTINOMIAL_NB_H
#include <vector> #include <vector>
#include <map> #include <map>

View File

@ -1,11 +1,12 @@
#ifndef MLPP_NUMERICAL_ANALYSIS_H
#define MLPP_NUMERICAL_ANALYSIS_H
// //
// NumericalAnalysis.hpp // NumericalAnalysis.hpp
// //
// //
#ifndef MLPP_NUMERICAL_ANALYSIS_H
#define MLPP_NUMERICAL_ANALYSIS_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_OUTLIER_FINDER_H
#define MLPP_OUTLIER_FINDER_H
// //
// OutlierFinder.hpp // OutlierFinder.hpp
// //
// Created by Marc Melikyan on 11/13/20. // Created by Marc Melikyan on 11/13/20.
// //
#ifndef MLPP_OUTLIER_FINDER_H
#define MLPP_OUTLIER_FINDER_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,12 +1,13 @@
#ifndef MLPP_OUTPUT_LAYER_H
#define MLPP_OUTPUT_LAYER_H
// //
// OutputLayer.hpp // OutputLayer.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_OUTPUT_LAYER_H
#define MLPP_OUTPUT_LAYER_H
#include "../activation/activation.h" #include "../activation/activation.h"
#include "../cost/cost.h" #include "../cost/cost.h"

View File

@ -1,12 +1,13 @@
#ifndef MLPP_PCA_H
#define MLPP_PCA_H
// //
// PCA.hpp // PCA.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_PCA_H
#define MLPP_PCA_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,13 +1,13 @@
#ifndef MLPP_PROBIT_REG_H
#define MLPP_PROBIT_REG_H
// //
// ProbitReg.hpp // ProbitReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_PROBIT_REG_H
#define MLPP_PROBIT_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,14 @@
#ifndef MLPP_REG_H
#define MLPP_REG_H
// //
// Reg.hpp // Reg.hpp
// //
// Created by Marc Melikyan on 1/16/21. // Created by Marc Melikyan on 1/16/21.
// //
#ifndef MLPP_REG_H
#define MLPP_REG_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,13 +1,13 @@
#ifndef MLPP_SOFTMAX_NET_H
#define MLPP_SOFTMAX_NET_H
// //
// SoftmaxNet.hpp // SoftmaxNet.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_SOFTMAX_NET_H
#define MLPP_SOFTMAX_NET_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,13 +1,13 @@
#ifndef MLPP_SOFTMAX_REG_H
#define MLPP_SOFTMAX_REG_H
// //
// SoftmaxReg.hpp // SoftmaxReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_SOFTMAX_REG_H
#define MLPP_SOFTMAX_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_STAT_H
#define MLPP_STAT_H
// //
// Stat.hpp // Stat.hpp
// //
// Created by Marc Melikyan on 9/29/20. // Created by Marc Melikyan on 9/29/20.
// //
#ifndef MLPP_STAT_H
#define MLPP_STAT_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,3 +1,7 @@
#ifndef MLPP_SVC_H
#define MLPP_SVC_H
// //
// SVC.hpp // SVC.hpp
// //
@ -7,9 +11,6 @@
// https://towardsdatascience.com/svm-implementation-from-scratch-python-2db2fc52e5c2 // https://towardsdatascience.com/svm-implementation-from-scratch-python-2db2fc52e5c2
// Illustratd a practical definition of the Hinge Loss function and its gradient when optimizing with SGD. // Illustratd a practical definition of the Hinge Loss function and its gradient when optimizing with SGD.
#ifndef MLPP_SVC_H
#define MLPP_SVC_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,13 +1,13 @@
#ifndef MLPP_TANH_REG_H
#define MLPP_TANH_REG_H
// //
// TanhReg.hpp // TanhReg.hpp
// //
// Created by Marc Melikyan on 10/2/20. // Created by Marc Melikyan on 10/2/20.
// //
#ifndef MLPP_TANH_REG_H
#define MLPP_TANH_REG_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,11 +1,12 @@
#ifndef MLPP_TRANSFORMS_H
#define MLPP_TRANSFORMS_H
// //
// Transforms.hpp // Transforms.hpp
// //
// //
#ifndef MLPP_TRANSFORMS_H
#define MLPP_TRANSFORMS_H
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_UNI_LIN_REG_H
#define MLPP_UNI_LIN_REG_H
// //
// UniLinReg.hpp // UniLinReg.hpp
// //
// Created by Marc Melikyan on 9/29/20. // Created by Marc Melikyan on 9/29/20.
// //
#ifndef MLPP_UNI_LIN_REG_H
#define MLPP_UNI_LIN_REG_H
#include <vector> #include <vector>
namespace MLPP{ namespace MLPP{

View File

@ -1,12 +1,13 @@
#ifndef MLPP_UTILITIES_H
#define MLPP_UTILITIES_H
// //
// Utilities.hpp // Utilities.hpp
// //
// Created by Marc Melikyan on 1/16/21. // Created by Marc Melikyan on 1/16/21.
// //
#ifndef MLPP_UTILITIES_H
#define MLPP_UTILITIES_H
#include <vector> #include <vector>
#include <tuple> #include <tuple>
#include <string> #include <string>

View File

@ -1,12 +1,13 @@
#ifndef MLPP_WGAN_H
#define MLPP_WGAN_H
// //
// WGAN.hpp // WGAN.hpp
// //
// Created by Marc Melikyan on 11/4/20. // Created by Marc Melikyan on 11/4/20.
// //
#ifndef MLPP_WGAN_H
#define MLPP_WGAN_H
#include "../hidden_layer/hidden_layer.h" #include "../hidden_layer/hidden_layer.h"
#include "../output_layer/output_layer.h" #include "../output_layer/output_layer.h"