I`m trying to create a neural network in java (eclipse) and when I try using the createNewNeuralNetwork method i recieve the following error :
"The method createNewNeuralNetwork(String, Dimension, ColorMode, List< String >, List< Integer >, TransferFunctionType) in the type ImageRecognitionHelper is not applicable for the arguments (String, Dimension, ColorMode, List< String >, List< Integer >, TransferFunctionType)"
As you can see, the argument types and number are the same as required. I can't figure it out why wouldn't it work. I would really apreciate if someone could help me with this problem. Bellow is the code snippet where all the fields are created and populated :
List< String > imageLabels = new ArrayList< String >();
HashMap<String, FractionRgbData=""> rgbDataMap = new HashMap<String, FractionRgbData="">();
Iterator it = Loader.getPatterns().iterator();
Person p = new Person();
p = (Person) it.next();
rgbDataMap.put(p.getName(), new FractionRgbData(p.getImage()));
List < Integer > neuronsCount = new ArrayList< Integer >();
nn = ImageRecognitionHelper.createNewNeuralNetwork("PersonsNet",new Dimension(50,50),ColorMode.FULL_COLOR,imageLabels, neuronsCount, TransferFunctionType.SIGMOID);
nevermind, i figured it out. It seems like the method needs org.neuroph.imgrec.image.Dimension and I was using java.awt.Dimension. Problem solved!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.