cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
1–10 of 20 posts
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#2Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#3Edit: OK, I was a bit snarky, but I'm serious.
I see these things on HN all the time. These are, quite literally, undergraduate projects.
I don't see people upvoting "My First Stack" or "Check out this Pet Shop I wrote in J2EE". Computational intelligence is not some land of super wise geniuses that mere mortals cannot ascend to. It's all pretty straightforward.
Eg, my Ant Colony Optimiser for a Travelling Salesman Problem:
https://github.com/jchester/ruby-ry48p-aco
and my Genetic Algorithm for optimising Ackley's Function:
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#4Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#5Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#6This makes me think I should upload my random computational intelligence assignments and get sweet, delicious karma. Edit: OK, I was a bit snarky, but I'm serious. I see these things on HN all the time. These are, quite literally, undergraduate projects. I don't see people upvoting "My First Stack" or "Check out this Pet Shop I wrote in J2EE". Computational intelligence is not some land of super wise geniuses that me…
Most Machine Learning/Neural Network code is in python or C/C++ not PHP. Something like this would be a good starting point if moving to Python is not an option.
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#7This makes me think I should upload my random computational intelligence assignments and get sweet, delicious karma. Edit: OK, I was a bit snarky, but I'm serious. I see these things on HN all the time. These are, quite literally, undergraduate projects. I don't see people upvoting "My First Stack" or "Check out this Pet Shop I wrote in J2EE". Computational intelligence is not some land of super wise geniuses that me…
Give the guy a little more credit. Most Machine Learning/Neural Network code is in python or C/C++ not PHP. Something like this would be a good starting point if moving to Python is not an option.
1. simple to code up
and
2. not very useful.[1]
You still need to pick the sort of neural network you're building (there are literally hundreds in the literature) before anything of consequence is going to happen.
The reason to use C/C++ libraries is that neural nets are slow. Slow slow slow. Computational intelligence / nature inspired computing is extremely cool, but the smart thing is to avoid it like the plague unless it is the only workable alternative.
[1] To the point that neural network research came to a screeching halt for some time when it was proved that a perceptron cannot perform a XOR on inputs.
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#8Earlier quoted context omitted.
Give the guy a little more credit. Most Machine Learning/Neural Network code is in python or C/C++ not PHP. Something like this would be a good starting point if moving to Python is not an option.
A perceptron is 1. simple to code up and 2. not very useful.[1] You still need to pick the sort of neural network you're building (there are literally hundreds in the literature) before anything of consequence is going to happen. The reason to use C/C++ libraries is that neural nets are slow. Slow slow slow. Computational intelligence / nature inspired computing is extremely cool , but the smart thing is to avoid it…
Multi-layer perceptron networks, however, can.
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#9Earlier quoted context omitted.
A perceptron is 1. simple to code up and 2. not very useful.[1] You still need to pick the sort of neural network you're building (there are literally hundreds in the literature) before anything of consequence is going to happen. The reason to use C/C++ libraries is that neural nets are slow. Slow slow slow. Computational intelligence / nature inspired computing is extremely cool , but the smart thing is to avoid it…
>a perceptron cannot perform a XOR on inputs Multi-layer perceptron networks, however, can.
* at least one layer to handle linearly separable functions,
* at least one hidden layer to handle continuous functions, and
* at least two hidden layers to solve continuous and discontinuous functions.
Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.
#10This particular example isn't very problematic, but I see this pattern in PHP way more than in other languages.