PHP常用人工智能库

1.NLPTools(http://php-nlp-tools.com/)
NLPTools是一个PHP自然语言处理库.能进行文本分级,聚类等操作.
2.Prediction Builder(https://github.com/denissimon/prediction-builder)
一个用PHP写成的机器学习预测库,使用了线性回归算法.
3.AIML(http://www.alicebot.org/aiml.html)
AIML是用于搭建聊天机器人平台的标记语言,可被PHP调用.
4.PHP Classifier(https://github.com/Dachande663/PHP-Classifier)
PHP朴素贝叶斯分类库.
5.PHP-FANN(https://github.com/bukka/php-fann)
PHP人工神经网络库.
6.ANN(http://ann.thwien.de/index.php?title=Main_Page)
PHP人工神经网络库.
7.PHP-ML(https://github.com/php-ai/php-ml)
PHP机器学习库,可进行支持向量机,神经网络等操作.

解决Tensorflow 使用时cpu编译不支持警告

使用TensorFlow模块时,弹出错误Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

原因是下载TensorFlow的版本不支持cpu的AVX2编译。

可能是因为安装时使用的pip install tensorflow ,这样默认会下载X86_64的SIMD版本。

2.彻底解决,换成支持cpu用AVX2编译的TensorFlow版本。

首先,卸载原来版本的TensorFlow

pip uninstall tensorflow

完成后可以用pip list查看一下所有库,检查是否成功卸载。

然后去github下载正确的tf版本,Windows点这里下载。其他操作系统可以点这里找到对应的版本。

博主用的win10,python3.6,所以选择如下图:

对应的path在上边的找到对应的.whl下载即可。

然后安装:

然后安装:

pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl

成功安装后,再次运行TensorFlow就不会报错啦~