Santiago Viquez

Santiago Viquez

@santiviquez.com

ML @ NannyML. Writing “The Little Book of ML Metrics” https://www.nannyml.com/metrics?via=santiago Personal website: https://www.santiviquez.com

1.5K followers233 following128 posts

Big kudos to my colleagues Jakub and Wojtek for their work on this! I’ll be honest, even at the risk of sounding biased. There are many ML monitoring companies out there, but none of them are solving the real problem. Most monitor the data, not the models.

If people don’t think what you do is cringe, then you’re not pushing hard enough. Every person you admire was once considered cringe by someone. A Writer, YouTuber, Founder, Musician, you name it. They all got to where they are because they constantly shared their work with the world. Constantly.

We’re deciding what book to read next in the "AI from Scratch" study group. So far, we have these two: 1. AI Engineering by Chip Huyen 2. Hands-On Generative AI with Transformers and Diffusion Models by Omar Sanseviero and gang Any other suggestions?

Santiago Viquez reposted

• Work hard • Keep learning • Cherish loved ones • Find people who inspire you • Be kind & egoless • Eat healthy, exercise, sleep well • Read & write • Practice gratitude & meditate • Be present • Enjoy food & nature • Don’t sweat the small stuff • Smile =)

First AI from Scratch session of 2025! A big thanks to @carloscapote.bsky.social and Michael Erasmus for their excellent explanations in today's meeting.

Santiago Viquez@santiviquez.com

Yesterday I forgot to post about our study group meeting 😅 It was an amazing one! @carloscapote.bsky.social walked us through Chapter 5: Pretraining on Unlabeled Data. Next week, we’ll take a short break, but we’ll be back after the holidays to finish Chapters 6 and 7 💪

Which ranking metrics am I missing? In the coming weeks, I'll be working on the ranking chapter for "The Little Book of ML Metrics", and I want to make sure I'm not missing any popular ranking/recsys metrics.

Here are the ones I have so far: • MRR: Mean Reciprocal Rank • ARHR@k: Average Reciprocal Hit-Rank at K • nDCG@K: Normalized Discounted Cumulative Gain • Precision@k • Recall@k • F1@K • Average Recall@k • Average Precision@k • MAP: Mean Average Precision

View full thread
View full thread

During the pandemic—specifically, on May 7, 2020—I wrote some goals on a piece of paper. I folded it, stored it in my wallet, and forgot about it. Today, I found it and realized I’ve accomplished all of them.

View full thread

4. "Be more present for my family." 5. "Improve my relationship with my friends." 6. "Live abroad with Kathu and Maple."When I wrote this, I didn’t know we’d move to Italy.

7. "Be able to dedicate myself to personal projects and make money doing so."Okay, maybe not a lot of money yet, but I’ve done some. 8. "Be creative and empathetic." 9. "Work at Webflow." At the time, Webflow was my dream company. 10. "Be grateful for every step." 11. "Exercise."

During the pandemic—specifically, on May 7, 2020—I wrote some goals on a piece of paper. I folded it, stored it in my wallet, and forgot about it. Today, I found it and realized I’ve accomplished all of them.

Translation 1. "Find a job where I feel genuinely passionate and can contribute and grow professionally." I’m so happy to have found NannyML. 2. “Be constant in continuing to learn about Data Science and keep creating personal projects." 3. "Keep building a circle of love with Kathu and Maple."

If you're feeling generous and want to buy me a Christmas present while also getting yourself one, hit that pre-order button! 😂 Just kidding—sharing this would mean the world to me too 🫶 📔About the book: www.nannyml.com/metrics?via=...

nannyml.comThe Little Book of ML MetricsThe book every data scientist needs on their desk. Metrics are arguably the most important part of data science work, yet they are rarely taught in courses or university degrees. Even senior data scie...

Hear me out. Post-deployment data science. The part of data science that focuses on models after they have been deployed. - Checking if the model is delivering value. - Continuously estimating model performance. - Understanding performance issues and fixing them.

View full thread

If the reconstruction error is bigger than an threshold, we say that the structure learned by PCA no longer represents the underlying structure of the initial data. Indicating that there is MULTIVARIATE data drift in the production data.

View full thread

In this example, we only have two variables, so it’s easy to see the change. But what if we have a model with 10, 50, or 100 features? For that, we need algorithms capable of learning the relationships between many features and detecting when they change substantially.

We came up with a method for this. It’s called Data Reconstruction with PCA. This method uses PCA to compress the feature space into a latent space. The algorithm then decompresses the latent space data and reconstructs it with some error. This error is called the reconstruction error.

We can say that both look like normal distributions. If we run univariate drift detection methods such as Jensen-Shannon, Kolmogorov-Smirnov or any other, we wouldn't be alerted by those minimal changes. But if we look at their joint distribution, the story is different.

The distributions of X and Z didn't change independently, but we do see sudden changes in the relationship between them. This is called Multivariate Data Drift, and no traditional univariate drift detection method can detect it.

Yesterday I forgot to post about our study group meeting 😅 It was an amazing one! @carloscapote.bsky.social walked us through Chapter 5: Pretraining on Unlabeled Data. Next week, we’ll take a short break, but we’ll be back after the holidays to finish Chapters 6 and 7 💪

Santiago Viquez@santiviquez.com

Today’s session was a fun one. We started putting everything together and implemented a GPT model. My favorite part of the book is the way Sebastian outlined and structured it to progressively build on previous sections. That alone makes it worth every penny.

Santiago Viquez reposted

Replying to @santiviquez.com

I've almost completed the preparations for the session about pretraining. For the moment, I'm pretty happy with the results. Sebastian's book is a source of information and inspiration. Now I've so many ideas about how to inspect an LLM to understand it better. 🎉 github.com/elcapo/llm-f...

github.comllm-from-scratch/chapter-5.ipynb at main · elcapo/llm-from-scratchImplementation of an LLM from scratch following Sebastian Raschka's book. - elcapo/llm-from-scratch

800 GitHub stars on The Little Book of ML Metrics 🌟 But even more exciting than the stars is that for the past week, every day I've been waking up to at least two PRs from the community helping me write the book 🔥

Today’s session was a fun one. We started putting everything together and implemented a GPT model. My favorite part of the book is the way Sebastian outlined and structured it to progressively build on previous sections. That alone makes it worth every penny.

Santiago Viquez@santiviquez.com

Today's session was a great one. I feel like the intuition behind Q, K, and V matrices in self-attention finally clicked for many of us.