?? readme.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])
-----------------------------
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -