simpan ringkasan mdoel python

with open('modelsummary.txt', 'w') as f:

    model.summary(print_fn=lambda x: f.write(x + '\n'))
Nagisa Furukawa