Skip to content

jg-fisher/perceptron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

perceptron

Perceptron model built with Javascript.

Import library:

const perceptron = require('./perceptron')

Intialize the model (x = inputs, y = targets):

let x = [[1, 1, 1], [0, 0, 0], [1, 0, 1]]
let y = [1, 0, 1]
let p = new perceptron(x, y, epochs=10, learn_rate=.1)

Train model:

p.fit()

About

Perceptron model built from scratch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published