As Life Evolves....
02 November 2024
Offbeat Datasets
Annoying terms in post modern machine learning literature
A collection of extremely stupid, artificial(sic) and pretentious terms which have sprouted around the "AI" hype. One day, if i get time, i will attempt to write parody definitions for the terminology; as of now i merely list them below.
Ingest, Consume, Foundation Model(God only know what is "foundational" about it), Artificial General Intelligence(Really?! General intelligence?), "practitioners", "in production"(what does it produce is what i wonder), Foundry (all i can think of such foundries is producing gas), "digital twin", "stand up". "training"(you can train a monkey or a dog; you can even train a human to imitate others like apes but how can you "train" a mathematical model? one can optimise its parameters.)
Irritating fake pretend words, mostly encountered in LinkedIn:
"chuffed"(another annoying term appearing a lot in LinkedIn), "reach out", "update"(one person asking for job recommendations is then asking for an "update").
19 May 2024
07 May 2023
A simple tool for searching PDFs on your local storage
For many years i have been facing this simple problem. I download a lot of PDFs; usually they are papers, electronic academic books in the PDF format and the life. There may have been a few non academic content, such as fiction. Earlier I used to categorise them while saving them on the local storage. As an aside, this local storage is the hard disk but this can also be a network drive which is reachable by the local file commands (e.g. ls or file explorers). A lot of the time, it was or still is possible for me to recall which directory a particular paper had been saved into. As the number of papers or files keeps growing, it becomes difficult to track or remember. Therefore, it was on my mind for many months to write a small software which I could use to search the contents of the PDFs; hopefully quickly and efficiently. I did not want an exact and accurate search; if at all this was possible.
The repository here is the fruition of such efforts. This is a pure Python package. I have written an extensive README. Feel free to use it. For both positive, negative suggestions and suggestions for improvement, feel free to contact me at the e-mail ID mentioned in the README.
Of course, this can be extended to search DOC files to; drop me a line if you want that functionality.
08 April 2023
18 February 2023
A very good read on supervised contrastive learning
Supervised Contrastive Learning
Contrastive learning applied to self-supervised representation learning has seen a resurgence in recent years, leading to state of the art performance in the unsupervised training of deep image models. Modern batch contrastive approaches subsume or significantly outperform traditional contrastive losses such as triplet, max-margin and the N-pairs loss. In this work, we extend the self-supervised batch contrastive approach to the fully-supervised setting, allowing us to effectively leverage label information. Clusters of points belonging to the same class are pulled together in embedding space, while simultaneously pushing apart clusters of samples from different classes. We analyze two possible versions of the supervised contrastive (SupCon) loss, identifying the best-performing formulation of the loss. On ResNet-200, we achieve top-1 accuracy of 81.4% on the ImageNet dataset, which is 0.8% above the best number reported for this architecture. We show consistent outperformance over cross-entropy on other datasets and two ResNet variants. The loss shows benefits for robustness to natural corruptions and is more stable to hyperparameter settings such as optimizers and data augmentations. Our loss function is simple to implement, and reference TensorFlow code is released at this https URL.