Essentials for Taming AI, the Dataset
A Dataset is a collection of data gathered and organized for specific purposes like AI model training and validation.
The JSONL file created for fine-tuning in the previous lesson is also a type of a dataset.
What kind of data is included in a dataset?
A dataset can contain a variety of data forms, including tables, images, text, and time-series data.
-
Tabular Data: Table-formatted data comprised of rows and columns, such as Excel files (.xlsx) and CSV files (.csv).
-
Image Data: Consists of image files like PNG and JPG, mainly utilized in computer vision.
-
Text Data: Data in the form of documents, sentences, and words, widely utilized in Natural Language Processing (NLP).
-
Time Series Data: Data collected over time, such as stock market data and temperature data over time.
What is the general structure of a dataset?
Most datasets are structured into three main components:
-
Feature: Data that is input into the AI model and serves as the focus of learning. In a chatbot model, the user's 'question' could be a feature, while in an image classification model, the 'photo' could be a feature.
-
Label: Represents the answer or result of the dataset. If a photo contains a cat, the label of that photo would be 'cat'.
-
Metadata: Additional information about the data, such as its source and creation date.
| Features | Label | Metadata |
|---|---|---|
| Image file path: /images/cat.jpg | Cat | File size: 3MB, Capture date: 2021-01-15, Source: User Upload |
| Text: "How are you feeling today?" | Feeling inquiry | Length: 24 characters, Author: Admin, Creation date: 2021-02-01 |
| Numeric data: [2, 14, 15, 23] | Sum of sequence: 54 | Data type: Integer array, Input date: 2021-03-22 |
Commonly Used Datasets
-
MNIST Dataset: A dataset composed of handwritten digit images, frequently used in the field of computer vision.
-
Iris Dataset: A tabular dataset used for predicting Iris flower species.
-
IMDB Review Dataset: A dataset of movie review texts used for sentiment analysis and other applications.
Lessons in this chapter · Essential Knowledge for Understanding Machine Learning
- 1. The Essential Ingredient for Training AI: Datasets
- 2. Data File Formats Used in AI Training
- 3. Preprocessing: Preparing Data for AI
- 4. Handling Missing Data with Python
- 5. Multiple Choice Quiz
- 6. Normalization: Adjusting the Scale of Data
- 7. Standardization: Matching Data Scales
- 8. Normalization vs. Standardization: When to Use Which?
- 9. Encoding Categorical Data
- 10. Label Encoding vs. One-Hot Encoding
- 11. Fill-in-the-Blank Quiz
- 12. What Are Features in Machine Learning?
- 13. Feature Selection and Dimensionality Reduction
- 14. Labels: The Ground Truth of Data
- 15. Weights: Determining Feature Importance
- 16. Bias: Adjusting the Output Baseline
- 17. Multiple Choice Quiz
- 18. Loss Functions: Comparing Predictions to Reality
- 19. Cost Functions: Average Error Across All Data
- 20. The Goal of Training: Optimization and Gradient Descent
- 21. Fill-in-the-Blank Quiz
Which word best completes the sentence?
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help