Creating Mlp In Python Showing Error
Iam a newbie in neural networks while creating MLP in python using opencv 3.1.0 error pops.The code is import cv2 import numpy as np import glob print 'Loading trainin
Solution 1:
Based on this code sample, I would suggest setting the number of layers as follows:
model.setLayerSizes(layer_sizes)
You can also have a look at the Learning OpenCV 3 book.
I can't seem to be able to find a proper complete doc at the minute, but for the record here's what dir(model)
gives:
- calcError
- clear
- empty
- getBackpropMomentumScale
- getBackpropWeightScale
- getDefaultName
- getLayerSizes
- getRpropDW0
- getRpropDWMax
- getRpropDWMin
- getRpropDWMinus
- getRpropDWPlus
- getTermCriteria
- getTrainMethod
- getVarCount
- getWeights
- isClassifier
- isTrained
- predict
- save
- setActivationFunction
- setBackpropMomentumScale
- setBackpropWeightScale
- setLayerSizes
- setRpropDW0
- setRpropDWMax
- setRpropDWMin
- setRpropDWMinus
- setRpropDWPlus
- setTermCriteria
- setTrainMethod
- train
Post a Comment for "Creating Mlp In Python Showing Error"