Package org.ar.redoexperiments.strategies.selection

Examples of org.ar.redoexperiments.strategies.selection.TrivialStrategy


    Set<OWLProperty<?, ?>> currentProperties = new HashSet<OWLProperty<?, ?>>();

    StepSizeStrategy currentStepSizeStrategy = StrategyFactory
        .newStepSizeStrategy("EqualParts", currentPoint.size());

    TrivialStrategy currentSelectionStrategy = new TrivialStrategy(
        new HashSet<OWLClass>(currentPoint), currentProperties,
        currentStepSizeStrategy, currentPoint, currentID + "");

    /*new ExperimentManager().run(currentSelectionStrategy,
        datasetsDirectory, ontology, resultsDirectory, tmpDirectory);
    currentGainScore = new IntegralCalculator().getGainScore(
        resultsDirectory, ontology, currentSelectionStrategy.getID());*/

    double maxGainScore = currentGainScore;
    ArrayList<OWLClass> maxPoint = new ArrayList<OWLClass>(currentPoint);
    double maxID = currentID;

    currentID++;

    for (int i = 0; i < maxIterations; i++)
    {
      ArrayList<OWLClass> neighborPoint = getNeighborPoint(currentPoint);
      for (int j = 0; j < 7; j++)
        neighborPoint = getNeighborPoint(neighborPoint);
      Set<OWLProperty<?, ?>> neighborProperties = new HashSet<OWLProperty<?, ?>>();

      StepSizeStrategy neighborStepSizeStrategy = StrategyFactory
          .newStepSizeStrategy("EqualParts", currentPoint.size());

      TrivialStrategy neighborSelectionStrategy = new TrivialStrategy(
          new HashSet<OWLClass>(neighborPoint), neighborProperties,
          neighborStepSizeStrategy, neighborPoint, currentID + "");
      /*new ExperimentManager()
          .run(neighborSelectionStrategy, datasetsDirectory,
              ontology, resultsDirectory, tmpDirectory);*/
      double neighborGainScore = new IntegralCalculator().getGainScore(
          resultsDirectory, ontology, neighborSelectionStrategy
              .getID());

      double probability = 1;

      if (neighborGainScore < currentGainScore)
View Full Code Here


      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);

      SelectionStrategy selectionStrategyCopy = new TrivialStrategy(
          selectionStrategy.getConceptsSet(), properties,
          StrategyFactory.newStepSizeStrategy("EqualParts",
              selectionStrategy.getConceptsSet().size()),
          selectionStrategy.getConceptsList(), selectionStrategy
              .getID());
View Full Code Here

TOP

Related Classes of org.ar.redoexperiments.strategies.selection.TrivialStrategy

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.