4 ms·
import VGG16, preprocess_input from keras.applications.vgg16 This approach has a couple of downsides: - no editor autocomplete while typing (JS modules have t
by Timon3 3y ago
import VGG16, preprocess_input from keras.applications.vgg16
This approach has a couple of downsides:
- no editor autocomplete while typing (JS modules have the same downside)
- more difficult to read multiple imports from modules in the same hierarchy (since the "from" parts aren't aligned)
- import sorting becomes less clear (do you sort by imported things or by the module you import from?)
JS uses your suggested format, and I dislike it much more than the Python equivalent due to the reasons stated above.