|
Hi Tip-Sheeters, This week brings one of the most exciting times of the year for me: the National Football League kicks off its regular season. I'm a fan of the Kansas City Chiefs, and they'll be playing their opener in São Paolo, Brazil (in Arena Corinthians if there are any serious soccer fans out there). This also means Fantasy Football Season begins!! I'm a huge fantasy football fanatic, and I'll be managing five teams this year. What is fantasy football, you ask? Here is a succinct definition from the FantasyPros Fantasy Football 101: In fantasy football, you select and manage a team of real NFL players. The players on your team earn points for your team based on their real-life performance in games each week. These points are then totaled and compared to your opponent’s team each week to determine the winner.
-- FantasyPros.com
Fantasy Football, APIs, and AI: A perfect teamSince I enjoy this hobby so much, it was only natural to use it for the examples in my book that came out in April: Hands-on APIs for AI and Data Science. The book's been a success, hitting Amazon #1 New Release when it launched. I've had fun this year speaking and sharing tips from the book. So how exactly does the book use fantasy football to teach about APIs and AI? Glad you asked. Every Imaginary Business needs a WebsitePart 1 of my book walks readers through the API Product Management Lifecycle: understanding user needs and designing and building a FastAPI REST API to serve them. The business scenario is built on an imaginary website named SportsWorldCentral: Based on this business scenario, readers design and build the SportsWorldCentral API. This contains API endpoints providing data about players, teams, and scoring: You'll also learn to deploy the API using Docker, Render, and Amazon Web Services. Building Data Analytics for FootballWith a running API, you're ready to start using it for data science. One of the first projects is building a data app using Streamlit. You'll build a multi-page app with charts and data filters, sourced from the API you built. (Or based on one you can launch with the code repo if you're in a hurry.) Here's the team stats page you'll create: Developing Your Own Custom MetricsPossibly the most fun I had in writing the book was developing a metric that had been bouncing around my head for many years: The Shark League Score. This Metric used a variety of data features to answer the question: Is my fantasy league as tough as I think? The chapter uses sub-metrics like the League Balance Score and League Juice Score to make the final product: The Big Finish: Using Your API with Generative AIPart Three of the book gives readers the skills to develop custom AI agents that consume APIs. You'll use products like ChatGPT, LangChain, and Anthropic APIs to chat with your data. Here is a look at the Custom GPT you will develop: If you really want to get technical, you'll learn to build an AI Agent using LangChain. Here's the architecture you'll implement:
Are You Ready for Football, AI, and APIs?If you haven't checked checked out the book yet, I'd be flattered if you took a look at it! Here are two easy options:
Hope your fantasy football season is a good one! Keep coding, Ryan Day 👉 https://tips.handsonapibook.com/ -- no spam, just a short email every week. |
This is my weekly newsletter where I share some useful tips that I've learned while researching and writing the book Hands-on APIs for AI and Data Science, a #1 New Release from O'Reilly Publishing
Hi Tip-Sheeters, One of the key areas where APIs are used in machine learning is for model inference. This is where the model is made available for real-time API calls to receive predictions. This is one of the two primary modes of model inference (along with batch inference). Tip Sheet #12 listed some of the top Python libraries worth exploring. One of those was LitServe, which is a framework for hosting models with a FastAPI backend. This week, I'll demonstrate this framework using my...
Hi Tip-Sheeters, Today is Veteran's Day, and I want to start with appreciation for any service members who are reading this. The holiday was originally created to remember the armistice that ended the first World War in 1918. Peace is a blessing that we should never take for granted. Entering a Hackathon Quick and Dirty As data and IT pros, we are constantly honing our craft. One of the best ways is through taking on intense challenges or projects to drive our learning in a short period of...
Hi Tip-Sheeters, This week, I’m sharing a few of the questions that I’ve had this past year from readers, people at events, or folks who’ve reached out on LinkedIn. If you ever have a question or something I can assist with, please hit reply on the newsletter email, and I’ll be happy to share my thoughts. Let’s jump in! Q&A About Data, Tech, and Career Q: What is the new tool or framework you are learning about right now? If you’ve been keeping up with the Tip Sheet, you won’t be surprised...