There is model.summary() method in Keras. It prints table to stdout. Is it possible to save this to file?
There is model.summary() method in Keras. It prints table to stdout. Is it possible to save this to file?
Here you have another option:
with open('modelsummary.txt', 'w') as f:
model.summary(print_fn=lambda x: f.write(x + '\n'))