Skip to content

Commit

Permalink
fixed linear regression
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Mar 27, 2024
1 parent 11fedd9 commit 402a439
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/machine_learning/regression/linear_regression/lin_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class linear_regression{
}
}

/**
* @brief get_results function
* @return pair<double,double> the values of a and b
*
*/
std::pair<double, double> get_results(){
int64_t n = this->data.size();
for(auto & x : data){
Expand Down

0 comments on commit 402a439

Please sign in to comment.