AI Dictionary of Terms

Machine Learning (ML)

A core subset of artificial intelligence where computer systems learn to perform tasks and improve their performance over time by identifying patterns in data, rather than being explicitly programmed with step-by-step rules.

a machine learning model is like a student studying for an exam. Instead of memorizing a textbook of rules, the student looks at thousands of practice problems and their answers. Over time, the student figures out the underlying patterns and rules on their own, allowing them to solve new, unseen problems on the actual exam.

In traditional programming, a human writes the rules: IF temperature > 100, THEN alert. In machine learning, a human provides the data (temperatures and past alerts), and the algorithm figures out the rule: IF temperature > 98.5 AND humidity > 80%, THEN alert.

Detailed Explanation

Machine learning shifts the paradigm from “programming logic” to “learning from data.” The core components of any ML system are:

1. The Data: The fuel for ML. It must be representative, high-quality, and sufficiently large. 2. The Algorithm: The mathematical procedure that learns the patterns (e.g., Decision Trees, Support Vector Machines, Neural Networks). 3. The Model: The output of the training process. It is the algorithm plus the learned patterns (weights/parameters). 4. The Loss Function: A mathematical way to measure how wrong the model’s predictions are, guiding the learning process.

Three Main Paradigms of ML:

1. Supervised Learning:

2. Unsupervised Learning:

3. Reinforcement Learning (RL):

Deep Learning is a specialized subset of ML that uses multi-layered artificial neural networks to automatically learn complex, hierarchical features from massive amounts of data.

Key Characteristics

Business Context

ML is the engine behind most modern enterprise AI applications:

Enterprise Applications:

Strategic Considerations:

Real-World Analogy

Teaching a child to identify dogs. You don’t give them a dictionary definition of a dog (four legs, fur, tail). You show them pictures of many different dogs and say “dog,” and pictures of cats and say “not dog.” Eventually, the child’s brain abstracts the concept of “dog” and can correctly identify a dog breed they’ve never seen before. That is machine learning.

Code Example

# Supervised Machine Learning: Predicting housing prices (Regression)
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_absolute_error

# 1. The Data (Simplified)
data = {
    'square_feet': [1500, 1600, 1700, 1800, 1900, 2000],
    'bedrooms': [3, 3, 3, 4, 4, 4],
    'price': [300000, 320000, 340000, 360000, 380000, 400000]
}
df = pd.DataFrame(data)

# Separate features (X) from the target we want to predict (y)
X = df[['square_feet', 'bedrooms']]
y = df['price']

# 2. Split data: 80% for training the model, 20% for testing its generalization
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

# 3. The Algorithm & Model
# We choose a Random Forest algorithm and initialize the model
model = RandomForestRegressor(n_estimators=100, random_state=42)

# 4. Training (The "Learning" phase)
# The model analyzes X_train and y_train to find the underlying patterns
model.fit(X_train, y_train)

# 5. Evaluation (Testing generalization)
predictions = model.predict(X_test)
error = mean_absolute_error(y_test, predictions)
print(f"Mean Absolute Error: ${error:,.2f}")

# 6. Inference (Using the model on brand new data)
new_house = pd.DataFrame({'square_feet': [1750], 'bedrooms': [3]})
predicted_price = model.predict(new_house)
print(f"Predicted price for new house: ${predicted_price[0]:,.2f}")

Common Misconceptions

Sources & Further Reading