from fastai.gen_doc.nbdoc import * from fastai.train import * from fastai.vision import * show_doc(fit_one_cycle) show_doc(one_cycle_scheduler) show_doc(lr_find) show_doc(to_fp16) show_doc(to_fp32) show_doc(mixup) show_doc(ClassificationInterpretation) path = untar_data(URLs.MNIST_SAMPLE) data = ImageDataBunch.from_folder(path) show_doc(ShowGraph, title_level=3) show_doc(ShowGraph.on_epoch_end) show_doc(GradientClipping) learn = cnn_learner(data, models.resnet18, metrics=accuracy, callback_fns=partial(GradientClipping, clip=0.1)) learn.fit(1) show_doc(GradientClipping.on_backward_end) show_doc(BnFreeze) learn = cnn_learner(data, models.resnet18, metrics=accuracy, callback_fns=BnFreeze) learn.fit(1) show_doc(BnFreeze.on_epoch_begin) show_doc(ClassificationInterpretation.plot_top_losses) show_doc(ClassificationInterpretation.from_learner) show_doc(ClassificationInterpretation.top_losses) show_doc(ClassificationInterpretation.confusion_matrix) show_doc(ClassificationInterpretation.most_confused) show_doc(ClassificationInterpretation.plot_confusion_matrix) show_doc(ClassificationInterpretation.plot_multi_top_losses)