fix deepwalk on windows
@@ -174,9 +174,9 @@ def main(args):
if not os.path.isdir(walk_save_path):
os.makedirs(walk_save_path)
pool = Pool(args.processes)
- args_list = [(x, dataset.graph, walk_save_path, 1,
- batch_size, walk_len, np.random.randint(2**32))
- for x in range(epoch)]
+ args_list = [(x, dataset.graph, walk_save_path, 1, batch_size,
+ walk_len, np.random.randint(
+ 2**32, dtype="int64")) for x in range(epoch)]
pool.map(process, args_list)
filelist = glob.glob(os.path.join(walk_save_path, "*"))
log.info("Random walk on disk Done.")
