Module ch06

Module ch06 

Source
Expand description

Examples from Chapter 6

Modules§

addons
Auxiliary module for examples::ch06

Structs§

EG01
Example usage of download_and_unzip_spam_data
EG02
Example usage of download_smsspam_parquet
EG03
Example usage of create_balanced_dataset
EG04
Example usage of random_split
EG05
Creating SpamDataset for train, test, and validation via SpamDatasetBuilder
EG06
Creating a SpamDataLoader for each of the train, val and test datasets.
EG07
Example usage of download_and_load_gpt2.
EG08
Printing the model variables via varmap.data()
EG09
Modifying the out_head of a GPT2Model and running inference
EG10
Toy example of using candle_nn::softmax on output values to classify spam/ham
EG11
Example usage of calc_accuracy_loader to compute accuracy on test, train, val sets
EG12
Example usage of calc_loss_loader to compute cross-entropy loss on train, val, test sets
EG13
Example usage of train_classifier_simple and plot_values functions
EG14
Loading fine-tuned model and calculate performance on whole train, val and test sets.
EG15
Example usage of classify_review