Package com.github.neuralnetworks.architecture

Examples of com.github.neuralnetworks.architecture.Connections


    @Override
    public void calculate(List<Connections> connections, ValuesProvider valuesProvider, Layer targetLayer) {
  if (connections.size() > 0) {
      List<Connections> notBias = new ArrayList<>();
      Connections bias = null;

      for (Connections c : connections) {
    // bias layer scenarios
    if (Util.isBias(c.getInputLayer())) {
        bias = c;
View Full Code Here


     * @param layer
     * @return whether layer is in fact bias layer
     */
    public static boolean isBias(Layer layer) {
  if (layer.getConnections().size() == 1) {
      Connections c = layer.getConnections().get(0);
      if (c.getInputLayer() == layer) {
    if (c instanceof Conv2DConnection) {
        Conv2DConnection cc = (Conv2DConnection) c;
        return cc.getInputFilters() == 1 && cc.getInputFeatureMapRows() == cc.getOutputFeatureMapRows() && cc.getInputFeatureMapColumns() == cc.getOutputFeatureMapColumns();
    } else if (c instanceof GraphConnections) {
        GraphConnections cg = (GraphConnections) c;
View Full Code Here

     * @param layer
     * @return whether layer is in fact bias layer
     */
    public static boolean isBias(Layer layer) {
  if (layer.getConnections().size() == 1) {
      Connections c = layer.getConnections().get(0);
      if (c.getInputLayer() == layer) {
    if (c instanceof Conv2DConnection) {
        Conv2DConnection cc = (Conv2DConnection) c;
        return cc.getInputFilters() == 1 && cc.getInputFeatureMapRows() == cc.getOutputFeatureMapRows() && cc.getInputFeatureMapColumns() == cc.getOutputFeatureMapColumns();
    } else if (c instanceof FullyConnected) {
        FullyConnected cg = (FullyConnected) c;
View Full Code Here

    @Override
    public void calculate(List<Connections> connections, ValuesProvider valuesProvider, Layer targetLayer) {
  if (connections.size() > 0) {
      List<Connections> notBias = new ArrayList<>();
      Connections bias = null;

      for (Connections c : connections) {
    // bias layer scenarios
    if (Util.isBias(c.getInputLayer())) {
        bias = c;
View Full Code Here

TOP

Related Classes of com.github.neuralnetworks.architecture.Connections

Copyright © 2018 www.massapicom. 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.