diff --git a/src/main/java/nl/peterbloem/motive/DPlainMotifExtractor.java b/src/main/java/nl/peterbloem/motive/DPlainMotifExtractor.java index bb33c0c..24c47e0 100644 --- a/src/main/java/nl/peterbloem/motive/DPlainMotifExtractor.java +++ b/src/main/java/nl/peterbloem/motive/DPlainMotifExtractor.java @@ -124,7 +124,7 @@ public DPlainMotifExtractor( private void run() { - Global.log().info("Sampling motifs"); + if(samples > 10000) Global.log().info("Sampling motifs"); fm = new FrequencyModel>(); // * The (overlapping) instances @@ -135,12 +135,12 @@ private void run() // SubgraphGenerator gen = new SubgraphGenerator(data, intGen); - Global.log().info("Start sampling."); + if(samples > 10000) Global.log().info("Start sampling."); int interval = samples / 20; for (int i : Series.series(samples)) { - if (i % interval == 0) + if (i % interval == 0 && samples > 10000) Global.log().info("Samples finished: " + i + " (" + ((i*100)/samples) + "%)"); List indices = gen.generate(); @@ -162,7 +162,7 @@ private void run() occurrences.get(sub).add(occurrence); } - Global.log().info("Removing overlapping occurrences."); + if(samples > 10000) Global.log().info("Removing overlapping occurrences."); // * Remove overlapping occurrences // (keep the ones with the lowest exdegrees) FrequencyModel> newFm = @@ -225,7 +225,7 @@ private void run() fm = newFm; occurrences = newOccurrences; - Global.log().info("Finished sampling motifs and removing overlaps."); + if(samples > 10000) Global.log().info("Finished sampling motifs and removing overlaps."); tokens = new ArrayList>(fm.sorted()); }