⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 python 神经网络 数据挖掘 python实现的神经网络算法
💻 TXT
字号:
Python binding for fann compiled for Windows with Visual Studio C++ 2005 Professional.

To use the precompiled binding copy the contents of the python/pyfannWin32/precompiled subdirectory
to a pyfann directory in your python library directory ex. D:/Python24/Lib/pyfann/. Then use
the simple_train.py example from the python binding to get started.

-----------------------------

See Readme.txt in python\pyfannWin32 for more details.

-----------------------------

Sample usage:

from pyfann import libfann
myAnn = libfann.neural_net()
myAnn.create_standard_array([2, 8, 9, 1])
myAnn.get_num_input()
myAnn.get_num_output()
myAnn.print_parameters()

myAnn.set_learning_rate(0.7)
myAnn.set_activation_function_output(libfann.SIGMOID_SYMMETRIC_STEPWISE)

myAnn.run([1.0,1.0])
myAnn.train([1.0,1.0],[-1.0])
myAnn.run([1.0,1.0])

data = libfann.training_data()
data.set_train_data([[-1.0, -1.0], [-1.0, 1.0], [1.0, -1.0], [1.0, 1.0]], [[-1.0], [1.0], [1.0], [-1.0]])

myAnn.train_on_data(data, 1000, 50, 0.001)
myAnn.run([-1.0,-1.0])
myAnn.run([-1.0, 1.0])
myAnn.run([ 1.0,-1.0])
myAnn.run([ 1.0, 1.0])

-----------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -