Giter Site home page Giter Site logo

fagan2888 / rudy.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sigmamonstr/rudy.js

0.0 1.0 0.0 420 KB

A ML library for JavaScript (in development)

Home Page: https://sigmamonstr.github.io/rudy.js/

JavaScript 86.25% HTML 12.53% R 1.23%

rudy.js's Introduction

rudy.js - A ML library for JavaScript (in development)

(Rudy: cause it might not be fun to do ML in JavaScript, but we just have to keep at it)

###Example data Some data for illustration

var test_set = [{"id": 1, "target": 1, "input": 1, "input2": 2},
             {"id": 2, "target": 1, "input": 2, "input2": 3},
             {"id": 3, "target": 1, "input": 3, "input2": 4},
             {"id": 4, "target": 1, "input": 3, "input2": 4},
             {"id": 5, "target": 0, "input": 5, "input2": 5},
             {"id": 6, "target": 0, "input": 6, "input2": 6},
             {"id": 7, "target": 0, "input": 7, "input2": 7},
             {"id": 8, "target": 0, "input": 5, "input2": 8},
             {"id": 9, "target": 0, "input": 4, "input2": 3},
             {"id": 10, "target": 0, "input": 3, "input2": 5},
             {"id": 10, "target": 1, "input": 3, "input2": 6},
             {"id": 10, "target": 1, "input": 2, "input2": 8},
             {"id": 11, "target": 0, "input": 7, "input2": 9},
             {"id": 12, "target": 0, "input": 6, "input2": 0},
             {"id": 13, "target": 0, "input": 7, "input2": 4}
            ];

##Basic functionality - basics.js ###tab() - basic cross tabs

  • v1: given an array and user-specified attributes, returns an array of cross-tabs.
tab(test_set,"input","target")

###summary() - in-development

###unique() - unique values in list

##Supervised Learning - rudyTree.js ###binaryTree() - for discrete tree learning v1: A easy to use decision tree for binary targets and numeric input variables. v2: In development will support discrete input variables and provide facility for ROC curves

inputs = ["input","input2"];
output = binaryTree(test_set,inputs,"target",5)

###ROC() - Receiving-Operating Characteristics Curve

##Unsupervised Learning - rudyKmeans.js ###kmeans() -

rudy.js's People

Contributors

sigmamonstr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.