Ask Your Question
0

Python ANN, training parameters

asked 2018-04-25 18:34:38 -0600

sjhalayka gravatar image

updated 2018-04-26 15:38:22 -0600

EDIT: I had a question on how to use the ANN training parameters. I ended up writing the Python code, which is pretty close to C++ in this case. The network learns the XOR problem:

https://github.com/sjhalayka/python_o...

Thanks to @berak for the help!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-04-26 00:58:25 -0600

berak gravatar image

using python's builtin help function we get:

>>> help(cv2.ml)
Help on module cv2.ml in cv2:

NAME
    cv2.ml

FUNCTIONS
    ANN_MLP_create(...)
        ANN_MLP_create() -> retval
        .   @brief Creates empty model
...
DATA
    ANN_MLP_ANNEAL = 2
    ANN_MLP_BACKPROP = 0
    ANN_MLP_GAUSSIAN = 2
    ANN_MLP_IDENTITY = 0
    ANN_MLP_LEAKYRELU = 4
    ANN_MLP_NO_INPUT_SCALE = 2
    ANN_MLP_NO_OUTPUT_SCALE = 4
    ANN_MLP_RELU = 3
    ANN_MLP_RPROP = 1
    ANN_MLP_SIGMOID_SYM = 1
    ANN_MLP_UPDATE_WEIGHTS = 1
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-25 18:34:38 -0600

Seen: 154 times

Last updated: Apr 26 '18