Fork me on GitHub

Project Notes

#056 regression

Implementing linear regression, logistic regression and multi-nominal logistic regression with tensorflow-js and node.

Notes

Library Installation/Setup

Uses the following npm modules:

install with:

npm install

Data and Common Code

Linear Regression

Sources:

Run:

$ cd linear-regression
$ node index.js

r2: 0.8059265340599994
Tensor
     [[18.0580692],]

Results:

mse

mse_v_b

Logistic Regression

Sources:

Run:

$ cd logistic-regression
$ node index.js

0.88

Results:

cost

Multi-nominal Logistic Regression

Sources:

Run:

$ cd multinominal-logistic-regression
$ node efficiency-prediction.js

0.78

Results:

efficiency-prediction-cost image-recognition-cost

Credits and References

About LCK#56
noderegressiontensorflow

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

Project Source on GitHub Return to the LittleCodingKata Catalog
About LittleCodingKata

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.

Follow the Blog follow projects and notes as they are published in your favourite feed reader