gifford-lab / Keras-genomics

Perform hyper-parameter tuning, training, testing and prediction with Keras
Other
44 stars 19 forks source link

An error about Keras: Received unknown keyword arguments: {'validation_steps': 10.0} #3

Closed YYingXia closed 7 years ago

YYingXia commented 7 years ago

Hi,haoyang, I am trying to run this code,when it is running into this part: " history_callback = model.fit_generator(mymodel.BatchGenerator2(args.batchsize,trainbatch_num,'train',topdir,data_code) ,np.ceil(float(train_size)/args.batchsize),args.trainepoch,validation_data=mymodel.BatchGenerator2(args.batchsize,validbatch_num,'valid',topdir,data_code),nb_validation_steps=np.ceil(float(valid_size)/args.batchsize),callbacks = [checkpointer])" an error occurred about Keras: Received unknown keyword arguments: {'validation_steps': 10.0}. Does it relevant to the version of keras? What's the version of keras you used? Thank you!

haoyangz commented 7 years ago

Yes I used Keras 1.2. Feel free to change it to the new interface ("validation_data") if you are not using Docker.