如何在 Cdlib 中获取 ground truth
How to fetch ground truth in Cdlib
我正在与 Cdlib 合作。我想通过以下代码获取空手道数据集的基本事实
gt_coms = datasets.fetch_network_data(fetch_ground_truth_data ="karate_club")
这给了我以下错误
fetch_network_data() got an unexpected keyword argument 'fetch_ground_truth_data'
我猜你想要 fetch_network_ground_truth
function. Looks like the documentation has a slight error, the parameter should be net_name
instead of fetch_ground_truth_data
, see here:
from cdlib import datasets
G, gt_coms = datasets.fetch_network_ground_truth(net_name="karate_club", net_type="igraph")
我正在与 Cdlib 合作。我想通过以下代码获取空手道数据集的基本事实
gt_coms = datasets.fetch_network_data(fetch_ground_truth_data ="karate_club")
这给了我以下错误
fetch_network_data() got an unexpected keyword argument 'fetch_ground_truth_data'
我猜你想要 fetch_network_ground_truth
function. Looks like the documentation has a slight error, the parameter should be net_name
instead of fetch_ground_truth_data
, see here:
from cdlib import datasets
G, gt_coms = datasets.fetch_network_ground_truth(net_name="karate_club", net_type="igraph")