1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Course Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning Course Introduction

  • 105Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Machine Learning Foundations

What is machine learning?

105 questions

  1. 1

    What is machine learning?

    Model answer

    Machine learning is a subfield of artificial intelligence in which systems learn patterns from data and use them to make decisions or predictions without being explicitly programmed for every task.

    Explanation

    The content defines machine learning as learning from experience, where experience is represented by data, and improving when exposed to new data.

  2. 2

    How are artificial intelligence, machine learning, and deep learning related?

    Model answer

    Artificial intelligence is the broadest concept; machine learning is a subset of AI, and deep learning is a subset of machine learning that uses deep neural networks.

    Explanation

    The relationship is hierarchical: AI includes machine learning, while machine learning includes deep learning.

  3. 3

    How does a typical machine learning workflow operate?

    Model answer

    An algorithm is trained on labeled or unlabeled data to create a model, the model predicts outcomes for new data, and its accuracy is evaluated. If performance is inadequate, the model is retrained with improved data or settings.

    Explanation

    The workflow described includes training, prediction, evaluation, deployment when performance is acceptable, and retraining when it is not.

  4. 4

    What is the difference between explicit programming and machine learning?

    Model answer

    Explicit programming provides rules for a machine to follow, whereas machine learning allows the system to infer patterns and improve its behavior from data.

    Explanation

    Machine learning replaces task-specific instructions with learned relationships extracted from examples.

  5. 5

    What is supervised learning?

    Model answer

    Supervised learning learns a mapping from input variables XXX to a known output variable YYY using labeled training examples.

    Explanation

    Each training instance contains input attributes and an expected output, which acts like a teacher during learning.

  6. 6

    Why is supervised learning called supervised?

    Model answer

    It is called supervised learning because the algorithm's predictions are compared with known correct answers, allowing errors to be corrected during training.

    Explanation

    The labeled outputs provide supervision and determine when the model has reached an acceptable level of performance.

  7. 7

    What is unsupervised learning?

    Model answer

    Unsupervised learning finds patterns, structures, or distributions in data that has input values but no corresponding labeled outputs.

    Explanation

    The algorithm discovers relationships on its own rather than learning from predefined correct answers.

  8. 8

    Why is unsupervised learning useful when labels are unavailable?

    Model answer

    It can organize data according to inherent similarities, revealing groups or structures without requiring a human to provide labels.

    Explanation

    Clustering is an example in which similar observations are grouped even though the meaning of each group may remain unknown.

  9. 9

    What is reinforcement learning?

    Model answer

    Reinforcement learning trains an agent to choose actions in an environment so that it maximizes the rewards it receives over time.

    Explanation

    The agent learns through interaction, trial and error, rewards, and penalties rather than through labeled input-output examples.

  10. 10

    How do exploration and exploitation differ in reinforcement learning?

    Model answer

    Exploration tries unfamiliar actions to gain information about the environment, while exploitation uses known information to obtain rewards.

    Explanation

    An effective agent must balance discovering potentially better actions with using actions that already appear successful.

  11. 11

    What are the main differences between machine learning and deep learning in data requirements?

    Model answer

    Traditional machine learning can often perform well with smaller data sets, whereas deep learning generally requires much larger amounts of data.

    Explanation

    Deep neural networks contain many parameters and need extensive data to learn useful representations reliably.

  12. 12

    Why do deep learning systems commonly require GPUs?

    Model answer

    Deep learning performs large numbers of matrix multiplication operations, which GPUs can process efficiently in parallel.

    Explanation

    The hardware requirements arise from the computational structure of neural-network training and inference.

  13. 13

    What is feature engineering?

    Model answer

    Feature engineering is the process of using domain knowledge to transform data so that relevant patterns become easier for a learning algorithm to detect.

    Explanation

    In traditional machine learning, experts may manually identify features such as shape, texture, position, or orientation.

  14. 14

    How does deep learning differ from traditional machine learning in feature extraction?

    Model answer

    Traditional machine learning often requires experts to identify and code features, while deep learning automatically learns increasingly abstract features from raw data.

    Explanation

    For example, a convolutional network may learn edges first, then parts of objects, and finally complete object representations.

  15. 15

    How do traditional machine learning and deep learning differ in problem-solving approach?

    Model answer

    Traditional machine learning commonly breaks a problem into separate stages, whereas deep learning can learn an end-to-end mapping from raw input to the final output.

    Explanation

    Object detection may require separate detection and recognition stages in traditional methods but can be handled end to end by a deep model.

  16. 16

    How do machine learning and deep learning differ in training and testing time?

    Model answer

    Deep learning usually takes longer to train because it has many parameters, but it can be faster during testing. Traditional machine learning often trains faster, while some methods become slower during testing as data grows.

    Explanation

    The content contrasts lengthy deep-learning training with relatively efficient deep-learning inference and methods such as KNN that may have expensive testing.

  17. 17

    Why is deep learning often considered less interpretable than traditional machine learning?

    Model answer

    Deep neural networks contain many layers and parameters whose collective reasoning is difficult to explain, whereas models such as decision trees can provide explicit rules.

    Explanation

    Although activated nodes can be inspected, the meaning of individual neurons and the combined reasoning of the layers may remain unclear.

  18. 18

    What is data in statistics?

    Model answer

    Data is a collection of facts and statistics gathered for reference, analysis, measurement, or visualization.

    Explanation

    Data can include values generated by observations, transactions, devices, or digital activity.

  19. 19

    What is the difference between qualitative and quantitative data?

    Model answer

    Qualitative data describes characteristics or categories, while quantitative data consists of numerical values that can be measured objectively.

    Explanation

    Qualitative data includes types such as nominal and ordinal data; quantitative data includes discrete and continuous data.

  20. 20

    What is nominal data?

    Model answer

    Nominal data consists of categories with no inherent order or ranking, such as gender or race.

    Explanation

    The categories identify groups but do not indicate that one category is greater or less than another.

  21. 21

    What is ordinal data?

    Model answer

    Ordinal data consists of categories that have a meaningful order, such as poor, average, and good service ratings.

    Explanation

    The ranking is meaningful, although the differences between adjacent categories are not necessarily equal.

  22. 22

    How do discrete and continuous quantitative data differ?

    Model answer

    Discrete data has a finite or countable set of possible values, while continuous data can take infinitely many values within a range.

    Explanation

    The number of students is discrete, whereas a person's weight is continuous.

  23. 23

    What is the difference between a dependent and an independent variable?

    Model answer

    An independent variable is used to explain or influence another variable, while a dependent variable is the outcome whose value depends on one or more independent variables.

    Explanation

    Regression and experimental analysis commonly examine how changes in independent variables relate to a dependent variable.

  24. 24

    What is statistics?

    Model answer

    Statistics is applied mathematics concerned with collecting, analyzing, interpreting, and presenting data.

    Explanation

    Statistics is not limited to analysis; it also includes data collection, interpretation, visualization, and presentation.

  25. 25

    What is a population in statistics?

    Model answer

    A population is the complete set of individuals, objects, or events whose properties are being studied.

    Explanation

    A population may consist of all customers, patients, students, or observations relevant to a research question.

  26. 26

    What is a sample in statistics?

    Model answer

    A sample is a subset of a population selected for analysis and intended to represent the population.

    Explanation

    A well-chosen sample provides information about population parameters without requiring study of every population member.

  27. 27

    Why is sampling used instead of studying an entire population?

    Model answer

    Sampling reduces the time, cost, and effort required to study a large population while still allowing researchers to infer population characteristics.

    Explanation

    Surveying every member of a very large population may be impractical or impossible.

  28. 28

    What is random sampling?

    Model answer

    Random sampling is a probability-sampling method in which every member of the population has an equal chance of being selected.

    Explanation

    The method aims to reduce selection bias by choosing observations randomly.

  29. 29

    What is systematic sampling?

    Model answer

    Systematic sampling selects every nnnth record from an ordered population to form the sample.

    Explanation

    The sampling interval determines which records are selected after the starting position is established.

  30. 30

    What is stratified sampling?

    Model answer

    Stratified sampling divides a population into subgroups that share a characteristic and then selects observations from those subgroups, often using random sampling.

    Explanation

    For example, a population may be divided into male and female strata before observations are selected.

  31. 31

    How do descriptive and inferential statistics differ?

    Model answer

    Descriptive statistics summarizes and describes observed data, while inferential statistics uses sample data to make estimates or predictions about a broader population.

    Explanation

    Descriptive statistics focuses on the data at hand; inferential statistics generalizes beyond the observed sample.

  32. 32

    What are the three main measures of central tendency?

    Model answer

    The three main measures of central tendency are the mean, median, and mode.

    Explanation

    These measures summarize the center or typical value of a data set in different ways.

  33. 33

    How is the mean calculated?

    Model answer

    The mean is calculated by adding all data values and dividing the total by the number of values: xห‰=โˆ‘xin\bar{x}=\frac{\sum x_i}{n}xห‰=nโˆ‘xiโ€‹โ€‹.

    Explanation

    The mean represents the arithmetic average of the observations.

  34. 34

    What is the median?

    Model answer

    The median is the middle value after the data is arranged in ascending or descending order; with an even number of values, it is the average of the two middle values.

    Explanation

    The median represents the central position of an ordered data set.

  35. 35

    What is the mode?

    Model answer

    The mode is the value or category that occurs most frequently in a data set.

    Explanation

    For example, the most common cylinder type in a data set is its modal cylinder type.

  36. 36

    What are the main measures of spread?

    Model answer

    The main measures of spread are range, interquartile range, variance, and standard deviation.

    Explanation

    These measures describe how widely observations vary around the center of a data set.

  37. 37

    How is the range calculated?

    Model answer

    The range is calculated by subtracting the minimum value from the maximum value.

    Explanation

    It gives the total span of the observed values.

  38. 38

    What are quartiles and how is the interquartile range calculated?

    Model answer

    Quartiles divide ordered data into four parts, and the interquartile range is calculated as IQR=Q3โˆ’Q1IQR=Q_3-Q_1IQR=Q3โ€‹โˆ’Q1โ€‹.

    Explanation

    The interquartile range measures the spread of the middle half of the data.

  39. 39

    What is variance?

    Model answer

    Variance measures the average squared deviation of observations from their mean; for a population it is ฯƒ2=โˆ‘(xiโˆ’ฮผ)2N\sigma^2=\frac{\sum (x_i-\mu)^2}{N}ฯƒ2=Nโˆ‘(xiโ€‹โˆ’ฮผ)2โ€‹.

    Explanation

    Squaring the deviations prevents positive and negative differences from canceling.

  40. 40

    What is standard deviation?

    Model answer

    Standard deviation measures the typical distance of observations from the mean and is the square root of variance.

    Explanation

    A larger standard deviation indicates greater dispersion around the mean.

  41. 41

    What is entropy in machine learning?

    Model answer

    Entropy measures the uncertainty or impurity in a data set.

    Explanation

    A pure set containing one class has low entropy, while a mixed set has greater uncertainty.

  42. 42

    What is information gain?

    Model answer

    Information gain measures how much uncertainty is reduced when data is split using a particular feature.

    Explanation

    Decision-tree algorithms prefer the attribute with the greatest information gain because it produces the most informative split.

  43. 43

    What is a confusion matrix?

    Model answer

    A confusion matrix compares actual and predicted class labels to summarize the performance of a classification model.

    Explanation

    It records correct and incorrect classifications, including true positives, true negatives, false positives, and false negatives.

  44. 44

    What is probability?

    Model answer

    Probability measures how likely an event is and can be expressed as the ratio of desired outcomes to total possible outcomes.

    Explanation

    Probabilities range from 000 to 111, and the probabilities of all mutually exclusive outcomes sum to 111.

  45. 45

    What are a random experiment, sample space, and event?

    Model answer

    A random experiment is a process with uncertain results, the sample space is the set of all possible outcomes, and an event is one or more outcomes of the experiment.

    Explanation

    For a die roll, the sample space is the set of values from 111 through 666, while rolling a particular number is an event.

  46. 46

    How do disjoint and non-disjoint events differ?

    Model answer

    Disjoint events cannot occur together, whereas non-disjoint events share one or more possible outcomes.

    Explanation

    A card cannot be both a king and a queen in one draw, but a student can receive the same score in two different subjects.

  47. 47

    What is a probability density function?

    Model answer

    A probability density function describes the relative likelihood that a continuous random variable takes values within a specified range.

    Explanation

    The total area under a probability density curve equals 111, and the probability between two values is the area under the curve between them.

  48. 48

    What is a normal distribution?

    Model answer

    A normal distribution is a symmetric, bell-shaped probability distribution in which values near the mean occur more frequently than values far from the mean.

    Explanation

    The mean determines the center of the distribution, while the standard deviation controls its spread.

  49. 49

    What does the central limit theorem state?

    Model answer

    The central limit theorem states that the sampling distribution of the mean becomes approximately normal when the sample size is sufficiently large, even if the underlying population is not normal.

    Explanation

    The approximation depends mainly on sample size and the shape of the underlying population.

  50. 50

    How do marginal, joint, and conditional probability differ?

    Model answer

    Marginal probability concerns one event without conditioning, joint probability concerns two events occurring together, and conditional probability concerns one event given that another has occurred.

    Explanation

    These forms distinguish whether additional event information is being used.

  51. 51

    What does Bayes' theorem calculate?

    Model answer

    Bayes' theorem relates a conditional probability to its inverse by updating a prior probability using evidence: P(HโˆฃE)=P(EโˆฃH)P(H)P(E)P(H\mid E)=\frac{P(E\mid H)P(H)}{P(E)}P(HโˆฃE)=P(E)P(EโˆฃH)P(H)โ€‹.

    Explanation

    It calculates the probability of a hypothesis after observing related evidence.

  52. 52

    What is point estimation?

    Model answer

    Point estimation uses sample data to produce a single value as an estimate of an unknown population parameter.

    Explanation

    For example, the sample mean can be used as a point estimate of the population mean.

  53. 53

    What are an estimator and an estimate?

    Model answer

    An estimator is a function of sample data used to calculate a parameter estimate, while the estimate is the numerical value produced by that function.

    Explanation

    A formula for calculating a sample mean is an estimator; the resulting sample mean is the estimate.

  54. 54

    What is interval estimation?

    Model answer

    Interval estimation gives a range of values within which a population parameter is expected to lie.

    Explanation

    Unlike point estimation, it expresses uncertainty through lower and upper limits.

  55. 55

    What is a confidence interval?

    Model answer

    A confidence interval is a range used to estimate a population parameter, together with a confidence level describing how reliable the estimation procedure is.

    Explanation

    For example, a 99% confidence level indicates high confidence in the procedure used to construct the interval.

  56. 56

    What is margin of error?

    Model answer

    The margin of error is the greatest expected distance between a sample-based estimate and the population parameter at a specified confidence level.

    Explanation

    It grows with greater variability and decreases as sample size increases.

  57. 57

    What is hypothesis testing?

    Model answer

    Hypothesis testing uses sample data to determine whether there is sufficient evidence to support or reject a claim about a population.

    Explanation

    The process includes stating hypotheses, analyzing sample data, and interpreting the result using a decision threshold.

  58. 58

    How do the null and alternative hypotheses differ?

    Model answer

    The null hypothesis represents the assumed or default condition, while the alternative hypothesis represents the claim supported when the data provides sufficient evidence against the null.

    Explanation

    A result below the selected significance threshold may lead to rejection of the null hypothesis in favor of the alternative.

  59. 59

    What is linear regression?

    Model answer

    Linear regression models the relationship between a dependent variable and one or more independent variables using a line, such as y=mx+cy=mx+cy=mx+c.

    Explanation

    It predicts continuous values by finding a line that minimizes the difference between observed and predicted values.

  60. 60

    What are three common uses of regression analysis?

    Model answer

    Regression can measure the strength of relationships, forecast the effect of changing predictors, and predict future trends or values.

    Explanation

    Examples include assessing marketing impact on sales, estimating the effect of price on demand, and forecasting future sales.

  61. 61

    What is the goal of the least-squares method in linear regression?

    Model answer

    The least-squares method chooses the regression line that minimizes the sum of squared differences between actual and predicted values.

    Explanation

    The selected line is the best fit according to the squared-error criterion.

  62. 62

    How do positive and negative regression relationships differ?

    Model answer

    A positive relationship has a positive slope, so the dependent variable tends to increase as the independent variable increases; a negative relationship has a negative slope.

    Explanation

    The sign of the slope indicates the direction of association between the variables.

  63. 63

    What does the coefficient of determination, or R2R^2R2, measure?

    Model answer

    R2R^2R2 measures how closely the observed data fit the regression model and is calculated as R2=โˆ‘(y^iโˆ’yห‰)2โˆ‘(yiโˆ’yห‰)2R^2=\frac{\sum(\hat{y}_i-\bar{y})^2}{\sum(y_i-\bar{y})^2}R2=โˆ‘(yiโ€‹โˆ’yห‰โ€‹)2โˆ‘(y^โ€‹iโ€‹โˆ’yห‰โ€‹)2โ€‹.

    Explanation

    A value closer to 111 generally indicates that the fitted line explains more variation in the response, although a high or low value must be interpreted in context.

  64. 64

    Why is linear regression usually unsuitable for binary classification?

    Model answer

    Linear regression predicts continuous values, whereas binary classification requires outputs restricted to categories such as 000 and 111.

    Explanation

    A linear model can produce values below 000 or above 111, so it does not naturally represent binary probabilities.

  65. 65

    What is logistic regression?

    Model answer

    Logistic regression is a classification method that maps input variables to a probability using a sigmoid function and then assigns a category such as 000 or 111.

    Explanation

    A threshold, commonly 0.50.50.5, can convert the predicted probability into a binary decision.

  66. 66

    How do linear and logistic regression differ in their outputs?

    Model answer

    Linear regression predicts a continuous numerical value, while logistic regression predicts the probability of a categorical outcome.

    Explanation

    Weather temperature is a linear-regression target, whereas whether it will rain is a logistic-regression target.

  67. 67

    What is a decision tree?

    Model answer

    A decision tree is a graphical model that repeatedly splits data using feature-based questions until it reaches a prediction at a leaf node.

    Explanation

    Each internal node represents a decision, each branch represents an outcome, and each leaf represents a final class or value.

  68. 68

    What are the root node, leaf node, branch, and splitting in a decision tree?

    Model answer

    The root is the first node, a leaf is a terminal node, a branch is a path or subtree created by a split, and splitting divides a node according to a condition.

    Explanation

    These terms describe the structure and construction of a decision tree.

  69. 69

    How are information gain and Gini impurity used in decision trees?

    Model answer

    Gini impurity measures class mixing at a node, while information gain measures the reduction in uncertainty produced by a split; the best split generally produces purer child nodes.

    Explanation

    These criteria help select the feature and threshold used at each decision node.

  70. 70

    What is pruning in a decision tree?

    Model answer

    Pruning removes unnecessary branches or nodes to reduce tree complexity and help prevent overfitting.

    Explanation

    A pruned tree is simpler and may generalize better to unseen data.

  71. 71

    What is a random forest?

    Model answer

    A random forest is an ensemble of decision trees trained using varied samples or features whose predictions are combined to improve stability and accuracy.

    Explanation

    For classification, the trees commonly contribute votes and the majority class becomes the final prediction.

  72. 72

    Why can a random forest outperform a single decision tree?

    Model answer

    Combining many diverse trees reduces the effect of the errors or variance of any one tree and usually produces a more stable prediction.

    Explanation

    Random feature and sample selection makes the trees less correlated and improves the ensemble.

  73. 73

    What is the K-nearest neighbors algorithm?

    Model answer

    K-nearest neighbors classifies a new observation using the labels of the KKK most similar training observations.

    Explanation

    The predicted class is commonly the majority label among the selected neighbors.

  74. 74

    Why is KNN called a lazy learner?

    Model answer

    KNN is called a lazy learner because it does not build a general model during training; it stores the data and performs most computation when a prediction is requested.

    Explanation

    Prediction requires calculating distances from the new observation to stored training observations.

  75. 75

    How do Euclidean and Manhattan distance differ?

    Model answer

    Euclidean distance is the straight-line distance, while Manhattan distance is the sum of absolute coordinate differences.

    Explanation

    For points (x1,y1)(x_1,y_1)(x1โ€‹,y1โ€‹) and (x2,y2)(x_2,y_2)(x2โ€‹,y2โ€‹), Euclidean distance is (x2โˆ’x1)2+(y2โˆ’y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}(x2โ€‹โˆ’x1โ€‹)2+(y2โ€‹โˆ’y1โ€‹)2โ€‹, whereas Manhattan distance is โˆฃx2โˆ’x1โˆฃ+โˆฃy2โˆ’y1โˆฃ|x_2-x_1|+|y_2-y_1|โˆฃx2โ€‹โˆ’x1โ€‹โˆฃ+โˆฃy2โ€‹โˆ’y1โ€‹โˆฃ.

  76. 76

    What is a support vector machine?

    Model answer

    A support vector machine is a supervised algorithm that separates classes using a hyperplane chosen to maximize the margin from the closest training points.

    Explanation

    The closest points are called support vectors, and they determine the position of the decision boundary.

  77. 77

    What is the kernel trick in an SVM?

    Model answer

    The kernel trick transforms nonlinear data into a higher-dimensional representation where a separating hyperplane can be found.

    Explanation

    This allows SVMs to classify data that cannot be separated by a straight line in the original feature space.

  78. 78

    What is clustering?

    Model answer

    Clustering divides unlabeled observations into groups so that observations within a group are more similar to one another than to observations in other groups.

    Explanation

    Clustering is a major application of unsupervised learning.

  79. 79

    How do exclusive, overlapping, and hierarchical clustering differ?

    Model answer

    Exclusive clustering assigns each point to one cluster, overlapping clustering allows a point to belong to multiple clusters with different memberships, and hierarchical clustering creates a tree-like structure of nested clusters.

    Explanation

    K-means is exclusive, fuzzy C-means is overlapping, and hierarchical clustering represents parent-child cluster relationships.

  80. 80

    What is the basic procedure of K-means clustering?

    Model answer

    K-means selects KKK initial centroids, assigns each point to its nearest centroid, recomputes the centroids, and repeats these steps until the centroids stabilize.

    Explanation

    The method uses distance, commonly Euclidean distance, to iteratively improve cluster assignments.

  81. 81

    What is the elbow method used for?

    Model answer

    The elbow method helps choose the number of K-means clusters by plotting within-cluster error against KKK and selecting the point where additional clusters produce sharply diminishing improvements.

    Explanation

    The elbow indicates a useful balance between model simplicity and clustering error.

  82. 82

    What is fuzzy C-means clustering?

    Model answer

    Fuzzy C-means is a soft-clustering method in which each point receives a degree of membership between 000 and 111 for each cluster.

    Explanation

    A point can partially belong to multiple clusters, and its membership values across clusters sum to 111.

  83. 83

    What is market basket analysis?

    Model answer

    Market basket analysis discovers relationships among products that are frequently purchased together.

    Explanation

    Retailers use it to recommend related products, design offers, and increase cross-selling or average order value.

  84. 84

    What do support, confidence, and lift measure in association-rule mining?

    Model answer

    Support measures how often an item set occurs, confidence measures how often the consequent occurs given the antecedent, and lift measures the rule's strength compared with independent co-occurrence.

    Explanation

    These measures help determine whether an association rule is frequent, reliable, and meaningfully stronger than chance.

  85. 85

    What is the Apriori algorithm?

    Model answer

    Apriori generates frequent item sets and association rules by using the principle that every subset of a frequent item set must also be frequent.

    Explanation

    Item sets below the minimum support threshold are removed, reducing the number of combinations that must be evaluated.

  86. 86

    What are the agent and environment in reinforcement learning?

    Model answer

    The agent is the learning system that chooses actions, while the environment is the world that receives those actions and returns new states and rewards.

    Explanation

    The agent and environment interact repeatedly until the task reaches a terminal state.

  87. 87

    Define action, state, reward, policy, value, and action value in reinforcement learning.

    Model answer

    An action is a possible step, a state is the current condition, a reward evaluates an action, a policy selects actions, value estimates long-term return from a state, and action value estimates return for a state-action pair.

    Explanation

    These concepts describe the information used by an agent to make and evaluate decisions.

  88. 88

    What is reward maximization?

    Model answer

    Reward maximization is the goal of selecting actions that produce the greatest expected cumulative reward over time.

    Explanation

    The agent must consider both immediate rewards and the possible long-term consequences of its actions.

  89. 89

    What is discounting in reinforcement learning?

    Model answer

    Discounting reduces the importance of rewards expected in the distant future using a discount factor, commonly denoted by ฮณ\gammaฮณ, with 0โ‰คฮณโ‰ค10\leq\gamma\leq10โ‰คฮณโ‰ค1.

    Explanation

    A larger discount factor makes future rewards more influential in the agent's decisions.

  90. 90

    What is the Markov decision process?

    Model answer

    A Markov decision process is a mathematical framework for decision-making in which an agent transitions between states through actions while receiving rewards, with outcomes that may be partly random.

    Explanation

    It represents the states, actions, rewards, policy, and transition uncertainty of a reinforcement-learning problem.

  91. 91

    What is Q-learning?

    Model answer

    Q-learning learns the quality of taking a particular action in a particular state and uses those Q-values to choose actions that maximize expected future reward.

    Explanation

    Unlike a state-value approach, Q-learning evaluates state-action pairs directly.

  92. 92

    What does the Q-learning update equation represent?

    Model answer

    The update adjusts a previous Q-value toward the immediate reward plus the discounted best future Q-value: Q(s,a)โ†Q(s,a)+ฮฑ[r+ฮณmaxโกaโ€ฒQ(sโ€ฒ,aโ€ฒ)โˆ’Q(s,a)]Q(s,a)\leftarrow Q(s,a)+\alpha[r+\gamma\max_{a'}Q(s',a')-Q(s,a)]Q(s,a)โ†Q(s,a)+ฮฑ[r+ฮณmaxaโ€ฒโ€‹Q(sโ€ฒ,aโ€ฒ)โˆ’Q(s,a)].

    Explanation

    The learning rate ฮฑ\alphaฮฑ controls how quickly new experience changes the learned value, while ฮณ\gammaฮณ controls the importance of future rewards.

  93. 93

    What is Jupyter Notebook?

    Model answer

    Jupyter Notebook is an interactive environment that combines executable code, outputs, explanations, and visualizations in a notebook document.

    Explanation

    It allows data scientists to record an analysis process similarly to a laboratory notebook.

  94. 94

    What are the main components of a Jupyter Notebook file?

    Model answer

    A Jupyter Notebook file contains metadata, notebook-format information, and a list of cells.

    Explanation

    Cells can contain code, text, and outputs, while metadata describes the notebook and its execution context.

  95. 95

    What are the Files, Running, and Clusters tabs in the Jupyter dashboard used for?

    Model answer

    Files lists items in the current directory, Running shows active notebooks and processes, and Clusters displays available computational clusters.

    Explanation

    These dashboard views help users manage files and monitor running computational resources.

  96. 96

    What is the purpose of Jupyter Notebook cells?

    Model answer

    Cells provide separate areas for entering and executing code or for presenting explanatory Markdown and outputs.

    Explanation

    A notebook can combine analysis steps, code, results, and narrative in one organized document.

  97. 97

    Why are Jupyter Notebook security controls important?

    Model answer

    Jupyter Notebooks can execute arbitrary code, so security controls help prevent malicious HTML, JavaScript, or code from being trusted automatically.

    Explanation

    Notebook outputs and embedded content may require explicit trust, sanitization, or a security digest before execution or sharing.

  98. 98

    What is the Iris data set commonly used for in machine learning instruction?

    Model answer

    The Iris data set is a small classification data set containing measurements of flowers from three Iris species.

    Explanation

    It is useful for practicing data loading, visualization, validation, and supervised classification because it is small, numeric, and well structured.

  99. 99

    What is the purpose of a validation data set?

    Model answer

    A validation data set is held back from training so that the trained model can be evaluated on data it did not use to learn.

    Explanation

    Using unseen data provides a more reliable estimate of how the model will perform in practice.

  100. 100

    What is cross-validation?

    Model answer

    Cross-validation repeatedly divides data into training and testing portions, trains on one portion, and evaluates on another to estimate model performance.

    Explanation

    For example, ten-fold cross-validation trains on nine parts and tests on the remaining part, repeating this for all folds.

  101. 101

    What skills are emphasized for a machine-learning engineer?

    Model answer

    Important skills include programming, linear algebra, statistics, probability, applied mathematics, signal processing, neural networks, natural language processing, and practical communication.

    Explanation

    The content also emphasizes industry knowledge, rapid prototyping, keeping current with research, and communicating technical results to nontechnical teams.

  102. 102

    Why is Python important in machine learning?

    Model answer

    Python is widely used as a machine-learning language because it has extensive libraries and supports data analysis, visualization, and model development.

    Explanation

    The content identifies Python as the main language while also noting that C++, R, Java, and related technologies may be useful.

  103. 103

    Why are linear algebra, calculus, probability, and statistics important in machine learning?

    Model answer

    They provide the mathematical foundations for data representation, optimization, probability models, statistical inference, and algorithms such as gradient descent.

    Explanation

    Matrices, vectors, derivatives, distributions, means, and standard deviations are repeatedly used in machine-learning methods.

  104. 104

    What are typical responsibilities of a machine-learning engineer?

    Model answer

    Responsibilities include transforming data-science prototypes, designing learning systems, selecting data and algorithms, running experiments, analyzing results, training models, and maintaining machine-learning frameworks.

    Explanation

    Machine-learning engineers also monitor developments and adapt systems to industry requirements.

  105. 105

    Why are industry knowledge and communication important for machine-learning engineers?

    Model answer

    Industry knowledge helps engineers identify valuable business problems, while communication allows them to explain technical findings and collaborate with technical and nontechnical teams.

    Explanation

    Technical skill alone may not produce useful systems if the engineer cannot connect models to business needs or explain their results.

1 of 105
Question 1 of 105

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent