[mlpack-svn] r16029 - mlpack/trunk/src/mlpack/methods/logistic_regression
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Nov 13 13:28:13 EST 2013
Author: rcurtin
Date: Wed Nov 13 13:28:07 2013
New Revision: 16029
Log:
Remove getSigmoid() and add class documentation.
Modified:
mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.cpp
mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.hpp
Modified: mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.cpp (original)
+++ mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.cpp Wed Nov 13 13:28:07 2013
@@ -36,16 +36,6 @@
this->initialPoint = arma::zeros<arma::mat>(predictors.n_rows + 1, 1);
}
-/*
-arma::vec LogisticRegressionFunction::getSigmoid(const arma::vec& values,
- arma::vec& output) const
-{
- arma::vec out = arma::ones<arma::vec>(values.n_rows,1) /
- (arma::ones<arma::vec>(values.n_rows,1) + arma::exp(-values));
- return out;
-}
-*/
-
/**
* Evaluate the logistic regression objective function given the estimated
* parameters.
Modified: mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.hpp (original)
+++ mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.hpp Wed Nov 13 13:28:07 2013
@@ -14,6 +14,11 @@
namespace mlpack {
namespace regression {
+/**
+ * The log-likelihood function for the logistic regression objective function.
+ * This is used by various mlpack optimizers to train a logistic regression
+ * model.
+ */
class LogisticRegressionFunction
{
public:
@@ -26,8 +31,6 @@
const arma::mat& initialPoint,
const double lambda = 0);
- arma::vec getSigmoid(const arma::vec& values) const;
-
//! Return the initial point for the optimization.
const arma::mat& InitialPoint() const { return initialPoint; }
//! Modify the initial point for the optimization.
More information about the mlpack-svn
mailing list