Skip to content

This program demonstrates simple learning by using a linear regression model to predict house prices given house attributes.

Notifications You must be signed in to change notification settings

twnbay78/Simple-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Summary

In the new age of Artificial Intelligence, machine learning has become quite popular due to how powerful it can be. One field that utilizes machine learning quite frequently is finance, particularly in the real-estate sector.

This program will take in training data from a .txt file consisting of house attributes (number of bathrooms, year the house was built, size of the house, etc...), and minimize the sum of squared residuals, or "data fits" the systems of equations in order to find weights associated with the data. The weights are then applied to test data, which consists of solely house attributes in order to estimate the cost of a house.

Usage

Compiling and linking necessary files is made simple using the "make" command in terminal:

$make

Runnint the program is accomplished by initializing the following terminal command:

$./learn train_file.txt test_file.txt

Implementation

Calculating the weights needed to estimate the house cost is done by computing the Moore-Penrose "pseudoinverse." the equation is as follows:
W = (XTT * X)^−1 * X^T * Y

About

This program demonstrates simple learning by using a linear regression model to predict house prices given house attributes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published