Result of a multivariate Lasso regression with intercept.
More...
#include <LinearRegression.hpp>
|
std::string | to_string () const |
| Formats the result as string.
|
|
Eigen::VectorXd | predict (Eigen::Ref< const Eigen::MatrixXd > X) const |
| Predicts Y given X. More...
|
|
Eigen::VectorXd | predict (Eigen::Ref< const Eigen::MatrixXd > X) const |
| Predicts Y given X. More...
|
|
double | predict_single (Eigen::Ref< const Eigen::VectorXd > x) const |
| Predicts Y given X. More...
|
|
double | var_y () const |
| Estimated variance of observations Y, equal to rss / dof .
|
|
double | r2 () const |
| R2 coefficient. More...
|
|
double | adjusted_r2 () const |
| Adjusted R2 coefficient. More...
|
|
Result of a multivariate Lasso regression with intercept.
◆ predict()
Eigen::VectorXd ml::LinearRegression::RegularisedRegressionResult::predict |
Predicts Y given X.
- Parameters
-
X | Matrix of independent variables with data points in columns. |
- Returns
- Vector of predicted Y(X) with size
X.cols()
.
- Exceptions
-
std::invalid_argument | If X.rows() + 1 != beta.size() . |
The documentation for this struct was generated from the following file: