简体   繁体   中英

Pattern Recognition Algorithms in Node.js or PHP?

I would like to begin experimenting with algorithms that recognize patterns in data. I deal with many types of sequences (image pixels, text input, user movement), and it would be fun to make use of Pattern Recognition to try to pull meaningful data out of different datasets. Like the majority of the web, my data is mostly text or integer-key based.

Are their any classes that give the basic framework for checking/creating patterns for PHP or Nodejs?

I've never found a single library that encapsulates different analysis patterns. You may find specific solutions easily though.

N-Gram analysis for example can be done with this PHP extension: http://pecl.php.net/package/TextCat

There are several bayes implementations as well, even tutorials.

I've never found Kohonen-nets or self-organizing maps implemented in PHP, but multi-layer perceptrons are trivial. IA can do pattern analysis fairily well.

There are projects that bind PHP to OpenCV (a library for realtime image/video analysis). Currently, the only implementation I know is for detecting human faces in pictures. The source is open https://github.com/infusion/PHP-Facedetect , so it should be easy to bind other OpenCV goodness (OpenCV can do a lot of stuff with images).

PHP itself is interpreted, most heavy solutions for pattern analysis won't perform well under this limitation. This is why most solutions for this in PHP are written in C as an extension.

For machine learning you might consider using a language that is more 'at home' as it'd be easier to express the model..

For example the source code for the new 'Machine Learning for Hackers' book, written in R can be found in Github https://github.com/johnmyleswhite/ML_for_Hackers

And then, there's also the Google Prediction API, which is good for experimenting https://developers.google.com/prediction/docs/developer-guide

I realise this is an old question, but since it came at the top of a Google query, it thought it ought to contain a reference to the Node bindings for opencv, node-opencv .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM