[mlpack-svn] r16057 - mlpack/trunk/src/mlpack/methods/logistic_regression

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Nov 21 13:28:01 EST 2013


Author: rcurtin
Date: Thu Nov 21 13:28:01 2013
New Revision: 16057

Log:
Add function to get predictors and responses.


Modified:
   mlpack/trunk/src/mlpack/methods/logistic_regression/logistic_regression_function.hpp

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	Thu Nov 21 13:28:01 2013
@@ -41,6 +41,11 @@
   //! Modify the regularization parameter (lambda).
   double& Lambda() { return lambda; }
 
+  //! Return the matrix of predictors.
+  const arma::mat& Predictors() const { return predictors; }
+  //! Return the vector of responses.
+  const arma::vec& Responses() const { return responses; }
+
   /**
    * Evaluate the logistic regression log-likelihood function with the given
    * parameters.  Note that if a point has 0 probability of being classified



More information about the mlpack-svn mailing list