Examples of Network


Examples of com.google.api.ads.dfp.v201208.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201208.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201211.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201302.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.ads.dfp.v201306.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201306.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.ads.dfp.v201308.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201308.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.ads.dfp.v201311.Network

      // Get the NetworkService.
      NetworkServiceInterface networkService = user.getService(DfpService.V201311.NETWORK_SERVICE);

      // Get the current network.
      Network network = networkService.getCurrentNetwork();

      System.out.println("Current network has network code \"" + network.getNetworkCode()
          + "\" and display name \"" + network.getDisplayName() + "\".");
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.api.services.compute.model.Network

    private JsonHelper jsonHelper;

    @Override
    public List<Resource> create(GccProvisionContextObject contextObject, int index, List<Resource> resources) throws Exception {
        Stack stack = stackRepository.findById(contextObject.getStackId());
        Network network = new Network();
        network.setName(stack.getName());
        network.setIPv4Range("10.0.0.0/24");
        Compute.Networks.Insert networkInsert = contextObject.getCompute().networks().insert(contextObject.getProjectId(), network);
        networkInsert.execute();
        return Arrays.asList(new Resource(resourceType(), stack.getName(), stack));
    }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.model.Network

   private void refreshTable()
   {
      GuiUtils.removeAllRaws(coeficientsTable);

      Network network = getLearningAlgorithm().getNetwork();
      Metadata metadata = getLearningAlgorithm().getLearningData().getMetadata();

      if (network.getLayers().size() > 0)
      {
         factorsScrollPane.setVisible(true);
         componentIsNotEnabledPanel.setVisible(false);

         int outputNeuronsCount = network.getLayers().getLast().getNeurons().size();

         if (this.outputNeuronsCount == null || this.outputNeuronsCount != outputNeuronsCount)
         {
            List<Object> columnNames = new ArrayList<Object>();
            List<ColumnInfo> outputColumns = metadata.resolveColumns(VariableType.OUT);

            columnNames.add(Localizer.getString(StringId.INPUT));

            List<String> dataOutputColumnNames = new ArrayList<String>();
            for (ColumnInfo outputColumn : outputColumns)
            {
               if (outputColumn.getDataType().equals(DataType.Category))
               {
                  for (String value : outputColumn.getValuesOfCategory())
                  {
                     dataOutputColumnNames.add(outputColumn.getName() + " - " + value);
                  }
               }
               else
               {
                  dataOutputColumnNames.add(outputColumn.getName());
               }
            }
            columnNames.addAll(dataOutputColumnNames);

            columnNames.add(Localizer.getString(StringId.AVERAGE));
            for (String dataOutputColumnName : dataOutputColumnNames)
            {
               columnNames.add(Localizer.getString(StringId.SELF_DESCRIPTIVENESS_SHORT) +
                       dataOutputColumnName);
            }

            columnNames.add(Localizer.getString(StringId.SELF_DESCRIPTIVENESS));
            columnNames.add("|" + Localizer.getString(StringId.SELF_DESCRIPTIVENESS) + "|");

            coeficientsTableModel.setColumnIdentifiers(columnNames.toArray());
            coeficientsTable.getColumnModel().getColumn(0).setMinWidth(120);

            GuiUtils.createDoubleComparatorForAllColumns(coeficientsTable);
            GuiUtils.setCellRendererForAllColumns(coeficientsTable, coloredTableRenderer);

            this.rowSorter = coeficientsTable.getRowSorter();
            this.outputNeuronsCount = outputNeuronsCount;
         }

         List<Vector> rows = new ArrayList<Vector>();
         double averageMin = Integer.MAX_VALUE;
         double averageMax = Integer.MIN_VALUE;

         List<ColumnInfo> inputColumns = metadata.resolveColumns(VariableType.IN);
         for (int j = 0; j < inputColumns.size(); ++j)
         {
            Vector row = new Vector();
            row.add(inputColumns.get(j).getName());

            double sum = 0;
            for (int i = 0; i < outputNeuronsCount; ++i)
            {
               Neuron neuron = network.getLayers().getLast().getNeurons().get(i);

               double w = neuron.getInputSynapses().get(j).getWeight();
               sum += w;

               row.add(JNMFMathUtils.roundDouble4(w));
View Full Code Here

Examples of com.linkedin.parseq.example.composite.classifier.Network

  }

  @Override
  public Network getResponse()
  {
    return new Network(_memberId);
  }
View Full Code Here

Examples of com.mongodb.MongoException.Network

  }

  @Test
  public void translateNetwork() {

    Network exception = new Network("IOException", new IOException("IOException"));
    DataAccessException translatedException = translator.translateExceptionIfPossible(exception);

    expectExceptionWithCauseMessage(translatedException, DataAccessResourceFailureException.class, "IOException");

  }
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.