Examples of DataSet


Examples of aima.core.learning.framework.DataSet

    DecisionTree tree = new DecisionTree(chosenAttribute);
    ConstantDecisonTree m = majorityValue(ds);

    List<String> values = ds.getPossibleAttributeValues(chosenAttribute);
    for (String v : values) {
      DataSet filtered = ds.matchingDataSet(chosenAttribute, v);
      List<String> newAttribs = Util.removeFrom(attributeNames,
          chosenAttribute);
      DecisionTree subTree = decisionTreeLearning(filtered, newAttribs, m);
      tree.addNode(v, subTree);
View Full Code Here

Examples of bt.Dataset

public class TestOfBayesianTest {
  public static void main(String[] args) {
    String fullPathToDataset = "data/example4BinaryVariables.csv";
    int maxNumberOfExamples = 10; // read only first 10 examples
    Dataset dataset = new Dataset(maxNumberOfExamples, Dataset.getBinaryDomain(4));
    try {
      dataset = dataset.readDataset(new java.io.File(fullPathToDataset), maxNumberOfExamples, 1);
      List<Integer> x = new ArrayList<Integer>();
      x.add(0);
      List<Integer> y = new ArrayList<Integer>();
      y.add(1);
      List<Integer> z = new ArrayList<Integer>();
View Full Code Here

Examples of co.cask.cdap.api.dataset.Dataset

   * @param conf Configuration that contains RecordScannable name to load, CDAP and HBase configuration.
   * @return RecordScannable which name is contained in the {@code conf}.
   * @throws IOException in case the conf does not contain a valid RecordScannable.
   */
  public static RecordScannable getRecordScannable(Configuration conf) throws IOException {
    Dataset dataset = instantiate(conf);

    if (!(dataset instanceof RecordScannable)) {
      throw new IOException(
        String.format("Dataset %s does not implement RecordScannable, and hence cannot be queried in Hive.",
                      conf.get(Constants.Explore.DATASET_NAME)));
View Full Code Here

Examples of com.cloudera.cdk.data.Dataset

    if (!initialized) {
      // initialize here rather than in activateOptions to avoid initialization
      // cycle in Configuration and log4j
      try {
        DatasetRepository repo = DatasetRepositories.open(datasetRepositoryUri);
        Dataset dataset = repo.load(datasetName);
        if (dataset.getDescriptor().isPartitioned()) {
          partitionStrategy = dataset.getDescriptor().getPartitionStrategy();
        }
        URL schemaUrl = dataset.getDescriptor().getSchemaUrl();
        if (schemaUrl != null) {
          setAvroSchemaUrl(schemaUrl.toExternalForm());
        }
      } catch (Exception e) {
        throw new FlumeException(e);
View Full Code Here

Examples of com.ebay.erl.mobius.core.builder.Dataset

    // represent property name, $datasetID.key.columns
    String joinKeyPropertyName = null;
   
    for( byte assignedDatasetID=0;assignedDatasetID<this.datasets.length;assignedDatasetID++ )
    {
      Dataset aDataset = this.datasets[assignedDatasetID];
      if( aColumn.getDataset().equals(aDataset) )
      {
        JobSetup.validateColumns(aDataset, aColumn);       
        Configuration aJobConf  = aDataset.createJobConf(assignedDatasetID);
        this.jobConf      = Util.merge(this.jobConf, aJobConf);       
        joinKeyPropertyName    = assignedDatasetID+".key.columns";
        break;
      }
    }
View Full Code Here

Examples of com.google.api.services.bigquery.model.Dataset

  }
  return r;
}

Dataset getDataset(String projectid, String datasetid) {
  Dataset dataset = null;
  try {
    Bigquery.Datasets.Get getrequest = bigquery.datasets().get(projectid, datasetid);
    dataset = getrequest.execute();
  } catch (IOException e) {
    log.info("getDataset exception: " + e);
View Full Code Here

Examples of com.google.api.services.genomics.model.Dataset

    command.bamFiles = Lists.newArrayList("uri1");
    command.datasetId = "abc";

    Mockito.when(datasets.get("abc")).thenReturn(datasetGet);
    Mockito.when(datasetGet.execute()).thenReturn(
        new Dataset().setId("abc").setName("1kg"));

    Mockito.when(readsets.call(new CallReadGroupSetsRequest()
        .setDatasetId("abc").setSourceUris(Lists.newArrayList("uri1"))))
        .thenReturn(readsetCall);
    Mockito.when(readsetCall.execute()).thenReturn(
View Full Code Here

Examples of com.greentea.relaxation.jnmf.util.data.Dataset

   public Dataset clasterizeData(Dataset data)
   {
      Art2mAlgorithm art2m = new Art2mAlgorithm();

      Dataset clasterizedData = art2m.createClustersAndClusterizeData(data, p);

      updateDiagrams(clasterizedData, art2m.getClustersCount());

      return clasterizedData;
   }
View Full Code Here

Examples of com.heatonresearch.aifh.normalize.DataSet

                System.out.println("Cannot access data set, make sure the resources are available.");
                System.exit(1);
            }
            GenerateRandom rnd = new MersenneTwisterGenerateRandom();

            final DataSet ds = DataSet.load(istream);
            // The following ranges are setup for the Iris data set.  If you wish to normalize other files you will
            // need to modify the below function calls other files.
            ds.normalizeRange(0, -1, 1);
            ds.normalizeRange(1, -1, 1);
            ds.normalizeRange(2, -1, 1);
            ds.normalizeRange(3, -1, 1);
            final Map<String, Integer> species = ds.encodeOneOfN(4);
            istream.close();

            final RBFNetworkGenomeCODEC codec = new RBFNetworkGenomeCODEC(4, 4, 3);

            final List<BasicData> trainingData = ds.extractSupervised(0,
                    codec.getInputCount(), codec.getRbfCount(), codec.getOutputCount());

            Population pop = initPopulation(rnd, codec);

            ScoreFunction score = new ScoreRegressionData(trainingData);
View Full Code Here

Examples of com.hp.hpl.jena.query.Dataset

       
        // read some (more) data into a dataset graph.
        RiotLoader.read("data2.trig", dsg) ;
       
        // Create a daatset,
        Dataset ds = DatasetFactory.create() ;
        // read in data.
        RiotLoader.read("data2.trig", ds.asDatasetGraph()) ;

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