npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

machine-learning-applied

v1.0.4

Published

Various machine learning algorithms simplified and applied

Downloads

12

Readme

Machine Learning Applied

This package contains various Machine Learning algorithms, simplified and applied. This package is inspired by 'Machine Learning' course of Andrew Ng at Coursera. My goal is to keep expanding it. Feel free to contribute!

Features

  • Linear Regression (with only one feature or input): useful for cases where you would like to predict an output based on the given inputs (only one type of feature/input) and their output
  • Linear Regression (with multiple features or inputs): useful for cases where you would like to predict an output based on the given inputs (multiple features/inputs possible) and their output
  • Logistic Regression: useful for cases where you would like to predict the possibility of an output based on the given two features/ inputs and their output

How to Install

npm install machine-learning-applied

How to Use

var {LinearRegressionUni} = require('machine-learning-applied');
var {LinearRegressionMulti} = require('machine-learning-applied');
var {LogisticPrediction} = require('machine-learning-applied');

LinearRegressionUni takes an input array and an output array of numbers, and the target input for which prediction is to happen. Then, it outputs the predicted number.

LinearRegressionMulti takes multiple input arrays, an output array and the target input for which prediction is to happen. Then, it outputs the predicted number.

LogisticRegression takes two input array with their output array which contains 0s and 1s, and the two desired inputs for which prediction is to happen. Then, it outputs a probability in range of 0 and 1.

Note:

Each of the above functions are well-documented. So, while you use the function, you should see the descriptions. Also, learning rate and number of iterations are given at default. Change it only if you know what you are doing.

Coming soon

  • Image Classifier
  • Neural Network
  • K-means Clustering
  • and more...

Quick Note

I am actively seeking a full-time position. Please let me know if you know of any at: [email protected]. Thanks a lot!

License

The MIT License © 2020 Massi Faqiri. All rights reserved.

Enjoy!