Skip to content

sonic-onkaringale/Multiple_Linear_Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple Linear Regression in C++.

This Repo is for desktop client. For Android Repo visit below link.

Installation :

  1. Download the zip of this repository.

  2. Include the header file

    #include "LinearReg.h"
  3. Enjoy :)

Usage :

#include <iostream>
#include "LinearReg.h"

using namespace dataset;
using namespace linearreg;
using namespace std;

int main()
{
    Dataset self("C:/Users/Onkar Ingale/Desktop/Drills/ML/Matrix/Startups.csv");
    self.X_train("R&D Spend","Administration","Marketing Spend");
    self.Y_train("Profit");
    LinearReg reg(self);
    cout<<"\n Intercept(Beta 0) : "<<reg.intercept()<<endl<<"\n Coefficients : "<<reg.coef();
    cout<<"\n R2 SCORE :";
    reg.r2_score();
    return 0;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages