Live data from Hacker News

cPerceptron: A neural network (Simple Perceptron) implemented in PHP.

github.com

1–10 of 20 posts

Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.

#3
This 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 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:

https://github.com/jchester/ruby-ackley-genetic-algorithm

Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.

#6

This 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.

Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.

#7

This 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.

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 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.

#8

Earlier 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…

>a perceptron cannot perform a XOR on inputs

Multi-layer perceptron networks, however, can.

Re: cPerceptron: A neural network (Simple Perceptron) implemented in PHP.

#9
post #8

Earlier 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.

Right. According to my old notes you need:

* 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.

#10
I find it quite interesting how PHP developers try their best to encrypt their function names as much as possible? rdmFloat? Why not randomFloat or random_float?

This particular example isn't very problematic, but I see this pattern in PHP way more than in other languages.

Post reply on HN