def extract_data_from_funcs(node_funcs):
print("node_funcs is:", node_funcs)
if isinstance(node_funcs, list):
node_data = []
for func in node_funcs:
if inspect.isfunction(func):
node_data.append(func())
else:
node_data.append(func)
return node_data
elif inspect.isfunction(node_funcs):
return node_funcs()
else:
return node_funcs
# Tells the dimensionality of the data (independent of number of samples or number of data arrays)
评论列表
文章目录