? null
: new FastByIDMap<FastIDSet>(10000);
theCurrentGeneration = new Generation(newKnownItemsIDs,
new FastByIDMap<float[]>(10000),
new FastByIDMap<float[]>(10000),
new FastIDSet(1000),
new FastIDSet(1000));
}
log.info("Computing model from input in {}", inputDir);
FastByIDMap<FastIDSet> knownItemIDs;
if (Boolean.valueOf(System.getProperty(Generation.NO_KNOWN_ITEMS_KEY))) {
knownItemIDs = null;
} else {
knownItemIDs = new FastByIDMap<FastIDSet>(10000);
}
FastByIDMap<FastByIDFloatMap> RbyRow = new FastByIDMap<FastByIDFloatMap>(10000);
FastByIDMap<FastByIDFloatMap> RbyColumn = new FastByIDMap<FastByIDFloatMap>(10000);
FastIDSet itemTagIDs = new FastIDSet(1000);
FastIDSet userTagIDs = new FastIDSet(1000);
InputFilesReader.readInputFiles(knownItemIDs, RbyRow, RbyColumn, itemTagIDs, userTagIDs, inputDir);
if (!RbyRow.isEmpty() && !RbyColumn.isEmpty()) {
// Compute latest generation:
MatrixFactorizer als;