ALSMatrixFactorization als = new ALSMatrixFactorization(D, baseFilename, nShards);
logger.info("Set latent factor dimension to: " + als.D);
/* Run GraphChi */
GraphChiEngine<Integer, Float> engine = new GraphChiEngine<Integer, Float>(baseFilename, nShards);
engine.setEdataConverter(new FloatConverter());
engine.setEnableDeterministicExecution(false);
engine.setVertexDataConverter(null); // We do not access vertex values.
engine.setModifiesInedges(false); // Important optimization
engine.setModifiesOutedges(false); // Important optimization