Helper functions for some common tasks which includes the following:
- Return the train data from csv and a shuffled of that trained data (
preprocess_data(filename, fraction, rand_state)) - Load and prepare image data (
load_and_prep_image(filename, img_shape=224, scale=True)) - Plot confusion matrix (
make_confusion_matrix(y_true, y_pred, classes=None, figsize=(10, 10), text_size=15, norm=False, savefig=False)) - Make predictions on image and plot them (
pred_and_plot(model, filename, class_names)) - Creates a tensorboad callback (
create_tensorboard_callback(dir_name, experiment_name)) - Plot loss curves (
plot_loss_curves(history)) - Compare histories (
compare_historys(original_history, new_history, initial_epochs=5)) - Unzip data (
unzip_data(filename)) - Walthrough directory retruning the content (
walk_through_dir(dir_path)) - Calculates accuracy, precision, recall and f1 score for a model (
calculate_results(y_true, y_pred))