Machine Learning Course Introduction
- 121Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- โPrevious card
- โNext card
What is machine learning?
Machine learning is a subfield of artificial intelligence in which computers learn patterns from data and use them to make decisions or predictions without being explicitly programmed for every task.
Or swipe the card
121 cards
What is machine learning?
Machine learning is a subfield of artificial intelligence in which computers learn patterns from data and use them to make decisions or predictions without being explicitly programmed for every task.
How are artificial intelligence, machine learning, and deep learning related?
Artificial intelligence is the broadest field; machine learning is a subset of AI; deep learning is a subset of machine learning that uses multilayer neural networks.
What is artificial intelligence?
Artificial intelligence is the broader concept of machines performing tasks in ways that replicate human-like intelligence, behavior, or decision-making.
What is deep learning?
Deep learning is a type of machine learning that trains deep neural networks to learn complex patterns and representations from large amounts of data.
What is the basic machine-learning workflow?
Train an algorithm on labeled or unlabeled data, produce a model, provide new input data, generate predictions, evaluate accuracy, and retrain if performance is unacceptable.
What is the difference between explicit programming and machine learning?
Explicit programming gives a computer predefined rules for a task; machine learning lets the computer infer patterns and rules from data.
Why does deep learning usually require more data than traditional machine learning?
Deep-learning models contain many parameters and need large datasets to learn useful representations accurately.
Why do deep-learning systems commonly use GPUs?
GPUs efficiently perform the large number of matrix multiplications required by deep neural networks.
What is feature engineering?
Feature engineering is the process of using domain knowledge to transform data so that important patterns become easier for a learning algorithm to detect.
How does deep learning differ from traditional machine learning in feature extraction?
Traditional machine learning usually relies on manually designed features, whereas deep learning automatically learns useful features from raw data.
How do traditional machine learning and deep learning differ in problem-solving approach?
Traditional machine learning often breaks a task into subproblems and combines their results; deep learning can learn an end-to-end mapping from input to output.
Why can deep-learning models be difficult to interpret?
Although the activated nodes can sometimes be identified, it is often unclear what individual neurons and layers represent collectively.
What is supervised learning?
Supervised learning learns a mapping from input variables X to a known output variable Y using labeled training data.
Why is supervised learning called supervised?
It is called supervised because the known answers act like a teacher that corrects the algorithm's predictions during training.
What types of outputs can supervised learning predict?
It can predict discrete categorical values, as in classification, or real-valued continuous outcomes, as in regression.
What are common supervised-learning algorithms?
Common algorithms include linear regression, logistic regression, decision trees, random forests, support vector machines, naive Bayes, and k-nearest neighbors.
Give examples of supervised-learning applications.
Applications include speech recognition, biometric identification, creditworthiness prediction, healthcare readmission prediction, and product-association analysis.
What is unsupervised learning?
Unsupervised learning finds patterns or structure in input data X when no corresponding output labels are provided.
What is clustering?
Clustering groups similar data instances together without using predefined labels.
Why is unsupervised learning called unsupervised?
There are no known correct answers or teacher-provided labels, so the algorithm must discover structure on its own.
What are common unsupervised-learning algorithms?
Common algorithms include k-means clustering, hierarchical clustering, the Apriori algorithm, and fuzzy c-means clustering.
Give examples of unsupervised-learning applications.
Applications include customer segmentation, grouping similar fruits or images, MRI categorization, and recommending products from past purchases.
What is reinforcement learning?
Reinforcement learning trains an agent to choose actions in an environment in order to maximize cumulative reward.
What are the two central mechanisms in reinforcement learning?
Exploration means trying actions to gain information; exploitation means using knowledge already learned to obtain rewards.
What are the main components of a reinforcement-learning system?
The main components are an agent, environment, state, action, reward, policy, and value.
What is the reinforcement-learning interaction loop?
The environment provides a state; the agent selects an action; the environment returns a reward and a new state; the agent updates its knowledge and repeats.
What is an agent in reinforcement learning?
An agent is the learning system or algorithm that observes the environment and chooses actions.
What is a reward in reinforcement learning?
A reward is immediate feedback from the environment that evaluates the agent's latest action.
What is a policy in reinforcement learning?
A policy is the strategy an agent uses to select its next action based on its current state.
What is a state in reinforcement learning?
A state is the current condition or situation reported by the environment.
What is Q-learning?
Q-learning is a reinforcement-learning method that estimates the value of taking a particular action in a particular state.
What is the difference between regression and classification?
Regression predicts continuous numerical values; classification predicts discrete categories or labels.
What is linear regression?
Linear regression models the relationship between variables with a linear equation such as y=mx+c.
What is the goal of the least-squares method in linear regression?
It chooses the regression line that minimizes the sum of squared errors between observed and predicted values.
What is the slope formula for simple linear regression?
For data with means xห and yหโ, the slope is m=โ(xiโโxห)2โ(xiโโxห)(yiโโyหโ)โ.
What is the purpose of the R2 statistic?
R2 measures how closely the observations fit the regression model; it is also called the coefficient of determination.
What is logistic regression used for?
Logistic regression is used to predict categorical outcomes, especially binary outcomes such as 0 or 1, yes or no, or true or false.
What function does logistic regression use to produce binary probabilities?
It uses the sigmoid function, which maps values from negative infinity to positive infinity into the interval from 0 to 1.
How do linear and logistic regression differ?
Linear regression predicts continuous values using a line; logistic regression predicts categorical outcomes using a sigmoid curve and probability threshold.
What is classification?
Classification divides observations into categories by learning from labeled examples.
What is anomaly detection?
Anomaly detection identifies unusual observations or patterns that do not conform to expected behavior.
What is a decision tree?
A decision tree is a graph of decisions in which internal nodes test attributes, branches represent outcomes, and leaf nodes provide predictions.
What are the main decision-tree terms?
A root node begins the tree, a split divides data by a condition, branches connect decisions, child nodes result from splits, and leaf nodes contain final predictions.
What is entropy in a decision tree?
Entropy measures uncertainty or impurity in a dataset. For class probabilities piโ, it is H(S)=โโiโpiโlog2โpiโ.
What is information gain?
Information gain is the reduction in entropy produced by splitting a dataset on an attribute.
What is Gini impurity?
Gini impurity measures how often a randomly chosen item would be incorrectly classified if labeled according to the class distribution of a node.
What is a random forest?
A random forest is an ensemble of decision trees whose predictions are combined, commonly by majority voting for classification.
Why can random forests outperform a single decision tree?
Combining many diverse trees reduces variance and makes predictions more robust than relying on one tree.
What is the k-nearest neighbors algorithm?
k-nearest neighbors classifies a new observation using the labels of the k most similar training observations.
What does the k in k-nearest neighbors represent?
k is the number of nearest training examples considered when predicting the class of a new observation.
What is Euclidean distance?
For points P1โ and P2โ, Euclidean distance is d(P1โ,P2โ)=โiโ(P1iโโP2iโ)2โ.
What is Manhattan distance?
Manhattan distance is the sum of absolute coordinate differences: d(P1โ,P2โ)=โiโโฃP1iโโP2iโโฃ.
What is a support vector machine?
A support vector machine is a supervised algorithm that finds a hyperplane separating classes while maximizing the margin from the closest data points.
What is the margin in a support vector machine?
The margin is the distance between the separating hyperplane and the nearest support vectors.
How can an SVM classify nonlinear data?
It can use a kernel function to transform nonlinear data into a higher-dimensional feature space where a separating hyperplane can be found.
What is naive Bayes?
Naive Bayes is a probabilistic classification algorithm based on Bayes' theorem that assumes predictors are conditionally independent given the class.
What is Bayes' theorem?
Bayes' theorem is P(HโฃE)=P(E)P(EโฃH)P(H)โ, relating a posterior probability to a prior probability and likelihood.
What is probability?
Probability measures how likely an event is and can be expressed as the ratio of desired outcomes to total possible outcomes.
What are a random experiment, sample space, and event?
A random experiment has uncertain outcomes; the sample space contains all possible outcomes; an event is one or more outcomes of the experiment.
What is marginal probability?
Marginal probability is the probability of an event without conditioning on another event.
What is joint probability?
Joint probability is the probability that two events occur together.
What is conditional probability?
Conditional probability is the probability of one event given that another event has occurred: P(BโฃA)=P(A)P(AโฉB)โ.
What is a probability density function?
A probability density function describes the relative likelihood of values of a continuous random variable over a range.
What is a normal distribution?
A normal distribution is a symmetric, bell-shaped probability distribution characterized by its mean and standard deviation.
What does the central limit theorem state?
For a sufficiently large sample size, the sampling distribution of the sample mean is approximately normal, even if the underlying population is not normal.
What is data?
Data consists of facts and statistics collected for reference or analysis.
What is qualitative data?
Qualitative data describes characteristics or categories that are generally observed rather than measured numerically.
What is nominal data?
Nominal data consists of categories with no inherent order or ranking.
What is ordinal data?
Ordinal data consists of categories that have a meaningful order or sequence.
What is quantitative data?
Quantitative data consists of numerical values that can be measured objectively.
What is the difference between discrete and continuous data?
Discrete data has a finite or countable set of possible values; continuous data can take infinitely many values within a range.
What is the difference between a population and a sample?
A population is the complete set of individuals or objects being studied; a sample is a subset selected to represent that population.
What is random sampling?
Random sampling gives every member of the population an equal chance of being selected.
What is systematic sampling?
Systematic sampling selects every nth record from a population.
What is stratified sampling?
Stratified sampling divides a population into subgroups sharing a characteristic and then samples from each subgroup.
What is descriptive statistics?
Descriptive statistics summarizes and describes the characteristics of a specific dataset using numerical and graphical measures.
What is inferential statistics?
Inferential statistics uses sample data to make estimates, predictions, or conclusions about a larger population.
What is the mean?
The mean is the arithmetic average: xห=nโi=1nโxiโโ.
What is the median?
The median is the middle value after data is ordered; with an even number of observations, it is the average of the two middle values.
What is the mode?
The mode is the value or category occurring most frequently in a dataset.
What is the range?
The range is the difference between the maximum and minimum values: range=xmaxโโxminโ.
What is the interquartile range?
The interquartile range is IQR=Q3โโQ1โ, the difference between the third and first quartiles.
What is variance?
Variance measures the average squared deviation from the mean; for a population, ฯ2=Nโ(xiโโฮผ)2โ.
What is standard deviation?
Standard deviation is the square root of variance and measures the typical spread of observations around the mean.
What is a confusion matrix?
A confusion matrix compares actual and predicted classes to summarize the performance of a classifier.
What are true positives and true negatives?
A true positive is a correctly predicted positive case; a true negative is a correctly predicted negative case.
What are false positives and false negatives?
A false positive predicts positive when the actual class is negative; a false negative predicts negative when the actual class is positive.
How is classification accuracy calculated?
Accuracy is TP+TN+FP+FNTP+TNโ.
What is point estimation?
Point estimation uses sample data to produce a single value as an estimate of an unknown population parameter.
What is interval estimation?
Interval estimation gives a range of values that is expected to contain an unknown population parameter.
What is a confidence interval?
A confidence interval is an estimated range used to describe uncertainty about a population parameter.
What is the margin of error?
The margin of error is the greatest expected distance between a point estimate and the population parameter for a specified confidence level.
What is hypothesis testing?
Hypothesis testing uses sample data to determine whether there is enough evidence to reject a claim about a population.
What is the null hypothesis?
The null hypothesis represents the default assumption or claim that there is no meaningful effect or difference.
What is the alternative hypothesis?
The alternative hypothesis represents the claim supported when the data provides sufficient evidence against the null hypothesis.
What is the Apriori algorithm used for?
Apriori discovers frequent itemsets and generates association rules from transaction data.
What is support in association-rule mining?
Support is the fraction of transactions containing an itemset, such as both A and B.
What is confidence in association-rule mining?
Confidence measures how often B occurs in transactions that contain A: confidence(AโB)=support(A)support(AโฉB)โ.
What is lift in association-rule mining?
Lift measures the strength of an association beyond random co-occurrence: lift(AโB)=support(A)support(B)support(AโฉB)โ.
What is k-means clustering?
k-means partitions observations into k clusters by repeatedly assigning points to the nearest centroid and recalculating centroids.
How does the elbow method select k in k-means?
It plots the within-cluster sum of squared errors against k and selects the point where adding more clusters produces a sharply smaller improvement.
What is hierarchical clustering?
Hierarchical clustering builds a tree-like hierarchy of clusters by repeatedly merging nearby clusters or dividing larger clusters.
What is the difference between hard and soft clustering?
Hard clustering assigns each observation to one cluster; soft clustering allows an observation to have degrees of membership in multiple clusters.
What is Jupyter Notebook?
Jupyter Notebook is an interactive environment that combines executable code, outputs, explanations, and visualizations in a notebook document.
What is the basic structure of a Jupyter Notebook file?
A notebook is fundamentally a JSON document containing metadata, notebook-format information, and a list of cells.
What are the main tabs in the Jupyter dashboard?
The dashboard includes tabs for files, running processes or notebooks, and available clusters.
What is a typical Jupyter Notebook workflow?
Create a project notebook, add code and analysis steps, display outputs, and use Markdown to organize and communicate the complete analysis.
What is Anaconda Navigator?
Anaconda Navigator is a graphical interface for launching applications and managing Conda packages, environments, and channels.
What is the Iris dataset commonly used for?
The Iris dataset is a small classification dataset with 150 observations, four numeric flower measurements, and three species: setosa, versicolor, and virginica.
Why is data split into training and validation or test sets?
The training set fits the model, while unseen validation or test data estimates how well the model generalizes.
What is cross-validation?
Cross-validation repeatedly divides data into training and testing portions to estimate model performance more reliably.
Why should a test set be kept separate until final evaluation?
Keeping the test set unseen helps detect overfitting and prevents data leakage from producing overly optimistic performance estimates.
What is the main purpose of data preprocessing?
Data preprocessing cleans data, handles missing values, converts categories into usable representations, and prepares features for modeling.
Why are categorical variables often converted into dummy variables?
Dummy encoding represents categories numerically so that machine-learning algorithms can process them.
What skills are important for a machine-learning engineer?
Important skills include programming, linear algebra, calculus, probability, statistics, signal processing, applied mathematics, neural networks, and natural-language processing.
What soft skills are important for a machine-learning engineer?
Important soft skills include industry knowledge, effective communication, rapid prototyping, and staying current with research and technology.
What does a machine-learning engineer do?
A machine-learning engineer designs learning systems, selects data and algorithms, trains and evaluates models, performs statistical analysis, and deploys or improves machine-learning applications.
Why is industry knowledge important for machine-learning engineers?
Industry knowledge helps engineers identify real business problems, choose useful objectives, and ensure that technical solutions create practical value.
Why is communication important in machine learning?
Machine-learning engineers must explain technical findings and model behavior to nontechnical stakeholders and collaborate with teams such as marketing, sales, and engineering.
What is rapid prototyping in machine learning?
Rapid prototyping is the quick creation and testing of candidate models or solutions to identify what works before investing in full development.
Why must machine-learning professionals stay updated?
Machine learning changes quickly through new algorithms, architectures, tools, research papers, conferences, and software releases.

Ask anything
We've read this whole study set, so questions about it get the best answers.