医学博士在读,程序小白,最近想用VAE对一份基因表达数据进行降维,代码是仿照github上的,
https://github.com/suinleelab/DeepProfile同时参考了其他一些文章,如
https://mp.weixin.qq.com/s/1K2Lxws_3QmhwzKB3ucIeA但是运行的时候老是通不过,断断续续研究一个礼拜了,实在搞不定,特向各位朋友求助。错误为:
TypeError: Cannot convert a symbolic Keras input/output to a numpy array. This error may indicate that you're trying to pass a symbolic value to a NumPy call, which is not supported. Or, you may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model.
更新:楼下N多人都说我数据没处理好,对,我是个小白,但起码的数据处理我还是知道的,好歹也是读到博士了,虽然R和python我都是自学的,但学习能力自认不差,英文我也是能读懂的,我也在数据问题上排查了一个礼拜左右,各种办法我都试了,一直没解决。今天换了个思路,一直搞到刚刚,终于解决了,卖个关子,因为网上没有答案。为啥求助,其实也是我一直怀疑的问题,就想让同样配置了VAE的人也跑下我这个数据,是不是一样的错误,呵呵,没人,一上来就说我数据处理不对,连代码都没跑一遍,都没看看代码,哎。压缩包我删了。