Examples of processInput()


Examples of aima.core.learning.neural.FeedForwardNeuralNetwork.processInput()

    FeedForwardNeuralNetwork ffnn = new FeedForwardNeuralNetwork(
        hiddenLayerWeightMatrix, hiddenLayerBiasVector,
        outputLayerWeightMatrix, outputLayerBiasVector);
    ffnn.setTrainingScheme(new BackPropLearning(learningRate,
        momentumFactor));
    ffnn.processInput(input);
    ffnn.processError(error);

    Matrix finalHiddenLayerWeights = ffnn.getHiddenLayerWeights();
    Assert.assertEquals(-0.265, finalHiddenLayerWeights.get(0, 0), 0.001);
    Assert.assertEquals(-0.419, finalHiddenLayerWeights.get(1, 0), 0.001);
View Full Code Here

Examples of aima.core.learning.neural.FeedForwardNeuralNetwork.processInput()

        hiddenLayerWeightMatrix, hiddenLayerBiasVector,
        outputLayerWeightMatrix, outputLayerBiasVector);

    ffnn.setTrainingScheme(new BackPropLearning(learningRate,
        momentumFactor));
    ffnn.processInput(input);
    ffnn.processError(error);

    Matrix finalHiddenLayerWeights = ffnn.getHiddenLayerWeights();
    Assert.assertEquals(-0.2675, finalHiddenLayerWeights.get(0, 0), 0.001);
    Assert.assertEquals(-0.4149, finalHiddenLayerWeights.get(1, 0), 0.001);
View Full Code Here

Examples of com.manning.gia.todo.utils.CommandLineInputHandler.processInput()

            commandLineInputHandler.printOptions();
            String input = commandLineInputHandler.readInput();
            char[] inputChars = input.length() == 1 ? input.toCharArray() : new char[]{DEFAULT_INPUT};
            command = inputChars[0];
            CommandLineInput commandLineInput = CommandLineInput.getCommandLineInputForInput(command);
            commandLineInputHandler.processInput(commandLineInput);
        }
    }
}
View Full Code Here

Examples of com.manning.gia.todo.utils.CommandLineInputHandler.processInput()

            commandLineInputHandler.printOptions();
            String input = commandLineInputHandler.readInput();
            System.out.println("-----> " + CharUtils.toChar(input, DEFAULT_INPUT));
            command = CharUtils.toChar(input, DEFAULT_INPUT);
            CommandLineInput commandLineInput = CommandLineInput.getCommandLineInputForInput(command);
            commandLineInputHandler.processInput(commandLineInput);
        }
    }
}
View Full Code Here

Examples of nextapp.echo2.app.ListBox.processInput()

        ActionHandler actionHandler = new ActionHandler();
        listBox.addActionListener(actionHandler);

        assertTrue(listBox.hasActionListeners());
       
        listBox.processInput(ListBox.INPUT_ACTION, null);
        assertNotNull(actionHandler.lastEvent);
        assertEquals(listBox, actionHandler.lastEvent.getSource());
        assertEquals("action!", actionHandler.lastEvent.getActionCommand());

        listBox.removeActionListener(actionHandler);
View Full Code Here

Examples of nextapp.echo2.app.SelectField.processInput()

        ActionHandler actionHandler = new ActionHandler();
        selectField.addActionListener(actionHandler);

        assertTrue(selectField.hasActionListeners());
       
        selectField.processInput(SelectField.INPUT_ACTION, null);
        assertNotNull(actionHandler.lastEvent);
        assertEquals(selectField, actionHandler.lastEvent.getSource());
        assertEquals("action!", actionHandler.lastEvent.getActionCommand());

        selectField.removeActionListener(actionHandler);
View Full Code Here

Examples of nextapp.echo2.app.SplitPane.processInput()

    public void testInput() {
        SplitPane splitPane = new SplitPane();
        splitPane.add(new Label("one label"));
        splitPane.add(new Label("one more label"));
        splitPane.setSeparatorPosition(new Extent(80));
        splitPane.processInput(SplitPane.PROPERTY_SEPARATOR_POSITION, new Extent(212));
        assertEquals(new Extent(212), splitPane.getSeparatorPosition());
    }
   
    /**
     * Attempt to illegally add more than two children, tests for failure.
View Full Code Here

Examples of nextapp.echo2.app.TextField.processInput()

    /**
     * Test receiving input from client.
     */
    public void testInput() {
        TextField textField = new TextField();
        textField.processInput(TextField.TEXT_CHANGED_PROPERTY, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
        assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", textField.getDocument().getText());
    }

    /**
     * Test primary constructor.
View Full Code Here

Examples of nextapp.echo2.app.WindowPane.processInput()

    public void testInput() {
        WindowPane windowPane = new WindowPane();
        windowPane.add(new Label("a label"));
        windowPane.setPositionX(TestConstants.EXTENT_100_PX);
        windowPane.setPositionY(TestConstants.EXTENT_100_PX);
        windowPane.processInput(WindowPane.PROPERTY_POSITION_X, TestConstants.EXTENT_200_PX);
        windowPane.processInput(WindowPane.PROPERTY_POSITION_Y, TestConstants.EXTENT_30_PX);
        assertEquals(TestConstants.EXTENT_200_PX, windowPane.getPositionX());
        assertEquals(TestConstants.EXTENT_30_PX, windowPane.getPositionY());
    }
   
View Full Code Here

Examples of nextapp.echo2.app.WindowPane.processInput()

        WindowPane windowPane = new WindowPane();
        windowPane.add(new Label("a label"));
        windowPane.setPositionX(TestConstants.EXTENT_100_PX);
        windowPane.setPositionY(TestConstants.EXTENT_100_PX);
        windowPane.processInput(WindowPane.PROPERTY_POSITION_X, TestConstants.EXTENT_200_PX);
        windowPane.processInput(WindowPane.PROPERTY_POSITION_Y, TestConstants.EXTENT_30_PX);
        assertEquals(TestConstants.EXTENT_200_PX, windowPane.getPositionX());
        assertEquals(TestConstants.EXTENT_30_PX, windowPane.getPositionY());
    }
   
    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.