Examples of denumerize()


Examples of aima.core.learning.neural.IrisDataSetNumerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(5.1, 3.5, 1.4, 0.2), io.getFirst());
    Assert.assertEquals(Arrays.asList(0.0, 0.0, 1.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(0.0, 0.0, 1.0));
    Assert.assertEquals("setosa", plant_category);
  }

  @Test
  public void testNumerizesAndDeNumerizesIrisDataSetExample2()
View Full Code Here

Examples of aima.core.learning.neural.IrisDataSetNumerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(6.4, 3.2, 4.5, 1.5), io.getFirst());
    Assert.assertEquals(Arrays.asList(0.0, 1.0, 0.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(0.0, 1.0, 0.0));
    Assert.assertEquals("versicolor", plant_category);
  }

  @Test
  public void testNumerizesAndDeNumerizesIrisDataSetExample3()
View Full Code Here

Examples of aima.core.learning.neural.IrisDataSetNumerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(6.3, 3.3, 6.0, 2.5), io.getFirst());
    Assert.assertEquals(Arrays.asList(1.0, 0.0, 0.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(1.0, 0.0, 0.0));
    Assert.assertEquals("virginica", plant_category);
  }
}
View Full Code Here

Examples of aima.core.learning.neural.Numerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(5.1, 3.5, 1.4, 0.2), io.getFirst());
    Assert.assertEquals(Arrays.asList(0.0, 0.0, 1.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(0.0, 0.0, 1.0));
    Assert.assertEquals("setosa", plant_category);
  }

  @Test
  public void testNumerizesAndDeNumerizesIrisDataSetExample2()
View Full Code Here

Examples of aima.core.learning.neural.Numerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(6.4, 3.2, 4.5, 1.5), io.getFirst());
    Assert.assertEquals(Arrays.asList(0.0, 1.0, 0.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(0.0, 1.0, 0.0));
    Assert.assertEquals("versicolor", plant_category);
  }

  @Test
  public void testNumerizesAndDeNumerizesIrisDataSetExample3()
View Full Code Here

Examples of aima.core.learning.neural.Numerizer.denumerize()

    Pair<List<Double>, List<Double>> io = n.numerize(first);

    Assert.assertEquals(Arrays.asList(6.3, 3.3, 6.0, 2.5), io.getFirst());
    Assert.assertEquals(Arrays.asList(1.0, 0.0, 0.0), io.getSecond());

    String plant_category = n.denumerize(Arrays.asList(1.0, 0.0, 0.0));
    Assert.assertEquals("virginica", plant_category);
  }
}
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.