AI-Assisted Data Science
This Web site links to resources for the book “AI-Assisted Data Science” by Immanuel Trummer, ordered by chapter. For each resource, you find a link and a short description.
Chapter 1
Resource |
Description |
Prompt |
Example prompt for product review classification |
Template |
Prompt template for product review classification |
Chapter 2
Resource |
Description |
ChatGPT |
Link to the ChatGPT Web interface by OpenAI |
Review |
Example review of BananaBook laptop |
BananaDB |
Notebook supporting queries on the BananaDB database |
Chapter 3
Resource |
Description |
Visualizations |
Notebook for visualizing attention in the BERT model |
Chapter 4
Resource |
Description |
Roberta XLM |
Example description of Roberta Transformer model |
Chapter 5
Resource |
Description |
Listing 1 |
Listing available GPT models |
Listing 2 |
Example output listing available models |
Listing 3 |
Making GPT tell us a story (text completion) |
Listing 4 |
Extract of output for text completion |
Listing 5 |
Customizing story generation via parameters |
Listing 6 |
Text completion with OpenAI’s chat models |
Listing 7 |
Example output of chat completion |
Chapter 6
Resource |
Description |
Reviews.csv |
Small set of movie reviews for sentiment classification |
Listing 1 |
Classifying text by underlying sentiment |
Biographies.csv |
Small collection of biographies for text extraction |
Listing 2 |
Extracting structured data from text documents |
Textmix.csv |
Mix of poems and emails, to be used for document clustering |
Listing 3 |
Clustering text documents via their embedding vectors |
Listing 4 |
Example result when using GPT for text embedding |
Chapter 7
Resource |
Description |
Games |
Tabular data set describing video game sales |
Games SQLite |
SQLite database file containing games data |
Games NLQI |
A natural language query interface on the games database |
Listing 1 |
Translating text questions about video games to SQL queries |
Listing 2 |
Example prompt for translating question to SQL query |
Listing 3 |
Translating questions to SQL queries on arbitrary tabular data |
Listing 4 |
Example interaction with natural language query interface |
Listing 5 |
Example prompt for translating questions into Cypher queries |
Listing 6 |
Translating questions about movies into Cypher queries |
Chapter 8
Resource |
Description |
Listing 1 |
Answering questions about images |
Fruit 1 |
A JPEG image of an apple |
Listing 2 |
Tagging people in images |
Tagging |
Pictures of people for image tagging |
Listing 3 |
Generating suitable titles for videos |
Cars |
A video of cars on a road |
Chapter 9
Resource |
Description |
Listing 1 |
Transcribing audio recordings to text |
Audio |
A sample audio recording for transcription |
Listing 2 |
A voice query interface for tabular data |
Listing 3 |
A speech-to-speech translator |