Giter VIP home page Giter VIP logo

dnn's People

Contributors

junku901 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnn's Issues

Question about inputs to LogisticRegression

Thanks for posting this project! I have a newbie question about how the x array should be coded as input. Does this assume that all attributes of the rows of the x variable are {0,1} dummy coded binary values? Or can they be numeric inputs?

Serialize to/from JSON?

Great library! It's very easy to use. Any hope of adding methods to serialize a trained network to/from json?

// Serialize to json.
var json = dbn.toJSON();

// Deserialize from json.
var network = dbn.fromJSON(json);
var output = network.predict([ ... ]);

RIP Joonku Kang, from your brother Minku Kang

I've never forgotten you when you write this code as a high school student in Seoul.

You got job offers from California
and some prominent tech companies from Korea when you were even a high schooler.

You had talked about your GitHub even though I did not know about the ABC of machine learning.

He passed away on 16 June 2018.
I miss you Joonku Kang so much.

Best regards,
Minku Kang

[BUG] LogisticRegression Final Cross Entropy : NaN

In the following scenario we are getting an invalid (NaN) value for final cross entropy

var dnn = require('dnn');
// Training set
var x = [
    [0, 1],
    [0, 1],
    [0, 1],
    [1, 0],
    [1, 0],
    [1, 0],
];
var y = [
    [1],
    [1],
    [1],
    [1],
    [1],
    [1]
];

var lrClassifier = new dnn.LogisticRegression({
    'input': x,
    'label': y,
    'n_in': 2,
    'n_out': 1
});

// lrClassifier.set('log level', 0); // 0 : nothing, 1 : info, 2 : warning.
lrClassifier.train({});

x = [
    [0, 0],
    [0, 0],
    [0, 0],
    [1, 1],
    [1, 1],
    [1, 1],
];

console.log("Result : ", lrClassifier.predict(x));

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.