save/load weights for different epochs line-by-line (for json support)