diff options
author | 2019-05-29 09:56:55 -0400 | |
---|---|---|
committer | 2019-05-29 09:56:55 -0400 | |
commit | 5f2c937412d0f8bb0442016e15e4c78e197a45ec (patch) | |
tree | 61a9cc812b149bd0c9ef8bfde4a431ea2534f996 /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner | |
parent | metric plot based on chosen rep with k-medoid method (diff) | |
parent | calculate metrics at the end of model generation (diff) | |
download | VIATRA-Generator-5f2c937412d0f8bb0442016e15e4c78e197a45ec.tar.gz VIATRA-Generator-5f2c937412d0f8bb0442016e15e4c78e197a45ec.tar.zst VIATRA-Generator-5f2c937412d0f8bb0442016e15e4c78e197a45ec.zip |
Merge branch 'Realistic-Generation-SURE' of https://github.com/viatra/VIATRA-Generator into Realistic-Generation-SURE
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner')
-rw-r--r-- | Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/BestFirstStrategyForModelGeneration.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/BestFirstStrategyForModelGeneration.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/BestFirstStrategyForModelGeneration.java index 6f581d34..4a5b9bc5 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/BestFirstStrategyForModelGeneration.java +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner/src/hu/bme/mit/inf/dslreasoner/viatrasolver/reasoner/dse/BestFirstStrategyForModelGeneration.java | |||
@@ -212,7 +212,7 @@ public class BestFirstStrategyForModelGeneration implements IStrategy { | |||
212 | // } | 212 | // } |
213 | 213 | ||
214 | //calculate the metrics for each state | 214 | //calculate the metrics for each state |
215 | logCurrentStateMetric(); | 215 | // logCurrentStateMetric(); |
216 | 216 | ||
217 | boolean consistencyCheckResult = checkConsistency(currentTrajectoryWithFittness); | 217 | boolean consistencyCheckResult = checkConsistency(currentTrajectoryWithFittness); |
218 | if(consistencyCheckResult == true) { continue mainLoop; } | 218 | if(consistencyCheckResult == true) { continue mainLoop; } |
@@ -314,14 +314,14 @@ public class BestFirstStrategyForModelGeneration implements IStrategy { | |||
314 | } | 314 | } |
315 | } | 315 | } |
316 | 316 | ||
317 | private void logCurrentStateMetric() { | 317 | // private void logCurrentStateMetric() { |
318 | if(this.configuration.documentationLevel != DocumentationLevel.NONE || workspace == null) { | 318 | // if(this.configuration.documentationLevel != DocumentationLevel.NONE || workspace == null) { |
319 | return; | 319 | // return; |
320 | } | 320 | // } |
321 | 321 | // | |
322 | PartialInterpretation interpretation = (PartialInterpretation)context.getModel(); //pattern.get("interpretation"); | 322 | // PartialInterpretation interpretation = (PartialInterpretation)context.getModel(); //pattern.get("interpretation"); |
323 | PartialInterpretationMetric.calculateMetric(interpretation, "debug/metric/" + context.getModel().hashCode(), context.getCurrentStateId().toString()); | 323 | // PartialInterpretationMetric.calculateMetric(interpretation, "debug/metric/" + context.getModel().hashCode(), context.getCurrentStateId().toString()); |
324 | } | 324 | // } |
325 | 325 | ||
326 | public void visualiseCurrentState() { | 326 | public void visualiseCurrentState() { |
327 | PartialInterpretationVisualiser partialInterpretatioVisualiser = configuration.debugCongiguration.partialInterpretatioVisualiser; | 327 | PartialInterpretationVisualiser partialInterpretatioVisualiser = configuration.debugCongiguration.partialInterpretatioVisualiser; |