Giter VIP home page Giter VIP logo

simple-neural-network's People

Contributors

miloharper 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-neural-network's Issues

Result . . . . 2 out of 8 correct . . .

I do not quite understand is that we are not getting enough correct answers to call it much of an accomplishment . . . Take this last line in the code:

output = neural_network.think(np.array([1, 0, 0]))

This is the resulting output for each corresponding input :
Input Output
0 [0, 0, 0] --> [ 0.5]
1 [1, 0, 0] --> [ 0.99993704]
2 [0, 1, 0] --> [ 0.44822538]
3 [1, 1, 0] --> [ 0.9999225]
4 [0, 0, 1] --> [ 0.009664]
5 [1, 0, 1] --> [ 0.99358931]
6 [0, 1, 1] --> [ 0.00786466]
7 [1, 1, 1] --> [ 0.99211997]

This is for the XOR function:
INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0

So we need to consider . . . . are we XORing all three values or just the first two values. . . . but nevertheless, when we plug in 1, 0, 0 we get the outcome 0.99993704, . . (1), and that is correct, however, look at all the other values! 0, 2, 3, 4, 5, 6 would be wrong, using the first two or all three, and I am not sure why we would bother with the rest if only the first two digits matter. This is pretty serious,
given that only 1 and 7 give a correct answer . . .

Results accuracy

Hi, how do I know if the result is 0 or 1 for each sample? Should I compare think method result

No module named numpy

I am trying python and this for the first time. I installed python 2.7 and when I run the command "python main.py" I get "No module name NumPy" error

Getting Error of name 'xrange' is not defined

I m new to this, but just copied full code in python 3.6 and got error xrange not defined is there any input file or something needed other than just coping code down and executing?

ImportError

Hello guys

Iโ€™m getting this soon as I run

except ImportError:
        msg = """Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there."""
        raise ImportError(msg)``

Can some one give a light
Thanks

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.