logger.info("Computed ALS, now random walks");
/* Initialize drunkardmob */
DrunkardMobEngine<Integer, Float> drunkardMobEngine = new DrunkardMobEngine<Integer, Float>(baseFilename, nShards, new IntDrunkardFactory());
DrunkardJob positiveJob = drunkardMobEngine.addJob("positive", EdgeDirection.IN_AND_OUT_EDGES,
new PositiveWalkUpdate(), new IntDrunkardCompanion(2, Runtime.getRuntime().maxMemory() / 8));
DrunkardJob negativeJob = drunkardMobEngine.addJob("negative", EdgeDirection.IN_AND_OUT_EDGES,
new NegativeWalkUpdate(), new IntDrunkardCompanion(2, Runtime.getRuntime().maxMemory() / 8));
drunkardMobEngine.setEdataConverter(new FloatConverter());
/* Create list of user vertices (i.e vertices on left). But we need to find their internal ids. */
ALSMatrixFactorization.BipartiteGraphInfo graphInfo = als.getGraphInfo();