草庐IT

dnnlinearcombinedClassifier

全部标签

Tensorflow dnnlinearcombinedClassifier Train on Batch

我的代码:defbatch_input_fn(df,batch_size):def_input_fn():"""Inputbuilderfunction."""#Createsadictionarymappingfromeachcontinuousfeaturecolumnname(k)to#thevaluesofthatcolumnstoredinaconstantTensor.continuous_cols={k:tf.constant(df[k].values)forkinCONTINUOUS_COLUMNS}#Createsadictionarymappingfromeachcateg