Skip to content

Training model with output values being greater than 1 returns a result of less than 1 #518

@matthewdowns

Description

@matthewdowns

A GIF or MEME to give some spice of the internet

What is wrong?

If I train a network with various inputs and the outputs are all above 1, then net.run(...) returns some decimal number starting with 0.99999...

Where does it happen?

When I try to train a neural network with the given outputs being [3,4,5,6]

How do we replicate the issue?

const net = new NeuralNetwork();
net.train([
    {
        input: [1,2,3,4,5],
        ouptut: [3]
    },
    {
        input: [2,3,4,5,6],
        ouptut: [4]
    },
    {
        input: [3,4,5,6,7],
        ouptut: [5]
    },
    {
        input: [4,5,6,7,8],
        ouptut: [6]
    },
]);
console.log(net.run([2,3,4,5,6])); // returns [0.999999994634693241234...]

How important is this (1-5)?

4

Expected behavior (i.e. solution)

I expected it to return [4], or something close to 4...

Other Comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions