error builtins.NameError: name 'reduce' is not defined
Opened this issue · 1 comments
Sandy4321 commented
I run example.py, using Python 3 , 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]
File "e:\Graphs_Netowrks_ML\code\Multiple Local Community Detection multicom-master\multicom_master_changed_to_python3\example.py", line 21, in
f1_scores = compute_f1_scores(communities, groundtruth)
File "e:\Graphs_Netowrks_ML\code\Multiple Local Community Detection multicom-master\multicom_master_changed_to_python3\multicom.py", line 310, in compute_f1_scores
groundtruth_indices = reduce(lambda indices, node: groundtruth_inv[node] | indices, community, set())
builtins.NameError: name 'reduce' is not defined
JJeyasudha commented
Sandy4321 have you found out the solution