carpentries-incubator / intro-image-classification-cnn

new lesson on image classification with convolutional neural networks
https://carpentries-incubator.github.io/intro-image-classification-cnn/
Other
2 stars 3 forks source link

use functions where helpful #24

Closed erinmgraham closed 5 months ago

erinmgraham commented 1 year ago

IDL uses functions for model definition, compilation, and plotting

erinmgraham commented 6 months ago

Made functions as part of rewrite for second trial: prepare_dataset, create_model_intro, and create_model_dropout. Note the create_model functions DO NOT include model.compile; however hypertune optimizer challenge needs it so may need to revisit

erinmgraham commented 6 months ago

Discussed adding compile to create_model(), google says best practice would be to leave it outside the function: keeps the code modular; gives flexibility to compile the model with different settings; reusability (except for gridsearch).

erinmgraham commented 5 months ago

Leaving compile outside function.