Machine Learning Notebooks

A personal collection of reusable code snippets in notebooks for machine learning.

Each notebook contain minimal code demonstrating usage of a library on a dummy dataset.

External Notebooks which are not written by me are marked with *.

Name Goal Colab
emojicloud Visualize EmojiCloud from text Open In Colab
faiss Use faiss for semantic search Open In Colab
fasttext Train custom word vectors in fasttext library Open In Colab
flair Use NER, Embeddings and Sentiment in flair Open In Colab
flair Perform sentiment classification in flair Open In Colab
gensim Train custom fasttext word vectors in gensim Open In Colab
gensim Train LDA topic model Open In Colab
hdbscan-umap Use UMAP+HDBSCAN for text clustering Open In Colab
huggingface* Huggingface Transformers on GLUE tasks Open In Colab
huggingface Predict upvote, context relatedness and
human-like score of generated reply using DialogRPT model
Open In Colab
huggingface Generate questions that a piece of text can answer using doc2query Open In Colab
huggingface Generate paraphrases of a question using pegasus Open In Colab
huggingface Perform next sentence prediction Open In Colab
huggingface Generate sentence embeddings using DECLUTR model Open In Colab
huggingface* Train Causal and Masked LM using Trainer API Open In Colab
huggingface* Predict emojis for a text Open In Colab
lm_scorer Use language model score for zero-shot classification Open In Colab
pytorch Use efficientnet model Open In Colab
seaborn Visualize sentiment of word in sentence Open In Colab
spacy Train text classification model in Spacy Open In Colab
spacy Train NER model in Spacy Open In Colab
squarify Generate tree-map chart in python Open In Colab
stylecloud Generate wordcloud inside icons Open In Colab
txtai Use txtai for semantic search Open In Colab
ulmfit Classify text using ULMFit in Fastai 1.0 Open In Colab
wandb* Log different data types in weights and biases Open In Colab
wandb* Run hyperparameter sweep for Pytorch Lightning Open In Colab