2020
10-08
10-08
Keras-多输入多输出实例(多任务)
1、模型结果设计2、代码fromkerasimportInput,Modelfromkeras.layersimportDense,Concatenateimportnumpyasnpfromkeras.utilsimportplot_modelfromnumpyimportrandomasrdsamples_n=3000samples_dim_01=2samples_dim_02=2#样本数据x1=rd.rand(samples_n,samples_dim_01)x2=rd.rand(samples_n,samples_dim_02)y_1=[]y_2=[]y_3=[]forx11,x22inzip(x1,x2):y_1.append(np.sum(x11)+np.s...
继续阅读 >