// FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
@Override
        public void interruptionOccurred(int currentIteration, int numIterations) {
            // FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
            String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
            try {
                SOMLibMapOutputter.writeWeightVectorFile(GrowingSOM.this, fileProperties.outputDirectory(), filename,
                        true, "$CURRENT_ITERATION=" + currentIteration, "$NUM_ITERATIONS=" + numIterations);
            } catch (IOException e) {
                Logger.getLogger("at.tuwien.ifs.somtoolbox").severe(
                        "Could not open or write to output file " + filename + ": " + e.getMessage());
            }
        }
@Override
public void interruptionOccurred(int currentIteration, int numIterations) {
// FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
try {
@Override
public void interruptionOccurred(int currentIteration, int numIterations) {
// FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
try {
SOMLibMapOutputter.writeWeightVectorFile(GrowingSOM.this, fileProperties.outputDirectory(), filename,
true, "$CURRENT_ITERATION=" + currentIteration, "$NUM_ITERATIONS=" + numIterations);
} catch (IOException e) {
Logger.getLogger("at.tuwien.ifs.somtoolbox").severe(
"Could not open or write to output file " + filename + ": " + e.getMessage());
}
}
@Override
public void interruptionOccurred(int currentIteration, int numIterations) {
// FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
try {
SOMLibMapOutputter.writeWeightVectorFile(GrowingSOM.this, fileProperties.outputDirectory(), filename,
true, "$CURRENT_ITERATION=" + currentIteration, "$NUM_ITERATIONS=" + numIterations);
} catch (IOException e) {
Logger.getLogger("at.tuwien.ifs.somtoolbox").severe(
"Could not open or write to output file " + filename + ": " + e.getMessage());
}
}