patch_mdp.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:cuicuilco 作者: AlbertoEsc 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号