CIS412 Quiz 1
Machine Learning A process where a model learns patterns from features in order to predict a target.
Feature (Input / Variable / Attribute) A characteristic used to make a prediction, such as age, balance, or pixel values.
Instance (Observation / Data Point / Row) One individual record in a dataset described by its features.
Target Attribute The value that the model is trying to predict.
Class Label The known categorical outcome associated with an instance.
Training Data Data used to teach a model and learn its patterns.
Validation Data Data used during model development to tune the model; it is not used to learn the underlying patterns directly.
Test Data Data used for the final evaluation of a model; it should not be seen during training or validation.
Model A simplified representation of reality built for a particular purpose.
Model Induction The process of creating models from data.
Parameter A value learned by the model during training, such as the coefficients in a linear equation.
Hyperparameter A setting chosen before training, such as learning rate, maximum tree depth, number of hidden layers, or neurons per layer.
Epoch One complete pass through the training dataset.
Iteration (Step) One parameter update during model training.
Batch The subset of training data processed before one parameter update.
Iterations per Epoch Training samples divided by batch size.
Total Iterations Iterations per epoch multiplied by the number of epochs.
Overfitting When a model learns noise in the training data instead of just the general pattern. Usually produces high training accuracy but low validation/test accuracy.
Underfitting When a model is too simple to capture the important patterns in the data. Performance is poor even on the training data.
Bias Systematic error caused by overly simplistic assumptions. High bias is associated with underfitting.
Variance Error caused by a model being overly sensitive to its particular training data. High variance is associated with overfitting.
Bias-Variance Tradeoff The need to balance bias and variance so a model captures real patterns while ignoring noise.
Numerical Data Data represented by numbers, including continuous measurements and discrete counts.
Continuous Data Numerical data that can take values along a continuous range, such as 5.1 or 3.333.
Discrete Data Numerical data consisting of countable values, such as number of children or clicks.
Categorical Data Data consisting of categories rather than numerical quantities.
Nominal Data Categorical data with no inherent order, such as color.
Ordinal Data Categorical data with a meaningful order, such as S/M/L or grades A–D.
Boolean Data Data with only two possible values, such as Yes/No, 1/0, or True/False.
Datetime Data Data representing dates or times.
Raw Text Data consisting of written language, often used in natural language processing (NLP).
Supervised Learning Machine learning using labeled data where both the inputs and correct outputs are known.
Unsupervised Learning Machine learning using unlabeled data to discover patterns without an explicitly defined correct output.
Classification A supervised learning task that predicts which category or class an instance belongs to.
Regression A supervised learning task that predicts a numerical quantity.
Classification Target A categorical target.
Regression Target A numerical target.
Class Probability Estimation Predicting the probability that an instance belongs to a particular class. It is still classification.
Clustering An unsupervised learning technique that groups similar observations without known class labels.
CRISP-DM Cross-Industry Standard Process for Data Mining; an iterative process for applying data mining and machine learning to business problems.
CRISP-DM Business Understanding Define business objectives, assess the situation, establish data-mining goals, and create a plan.
CRISP-DM Data Understanding Gather, describe, and explore data and verify its quality.
CRISP-DM Data Preparation Select, clean, construct, integrate, and format data for modeling.
Feature Engineering The process of constructing or transforming features to make data more useful for modeling. Part of CRISP-DM Data Preparation.
CRISP-DM Modeling Select modeling techniques, build models, and assess them.
CRISP-DM Evaluation Evaluate model results and determine whether they satisfy the business goal.
CRISP-DM Deployment Put the model into use and plan how it will be monitored and maintained.
CRISP-DM Iterative Process CRISP-DM is a cycle rather than a strictly linear process; earlier phases may be revisited when problems are discovered.
Tensor A general data structure used to represent different kinds and dimensions of data for machine learning.
0D Tensor (Scalar) A single value with shape (), such as a loss of 0.27 or accuracy of 0.91.
1D Tensor (Vector) A one-dimensional collection of values with shape (n,), such as one patient's features.
2D Tensor (Matrix) A two-dimensional structure with shape (samples, features).
3D Tensor A structure commonly used for sequences or time series with shape (samples, timesteps, features).
4D Tensor A structure commonly used for images with shape (samples, height, width, channels).
5D Tensor A structure commonly used for video with shape (samples, frames, height, width, channels).
RGB Image Channel Count 3 channels.
Grayscale Image Channel Count 1 channel.
Decision Tree A supervised learning model built by repeatedly splitting data using informative attributes.
Supervised Segmentation Using attributes to divide a labeled dataset into subgroups that are as pure as possible.
Pure Subgroup A subgroup in which most or all instances share the same target class.
Informative Attribute An attribute that creates relatively homogeneous or pure subgroups when used to split data.
Entropy A measure of the disorder or impurity of a set.
Entropy Formula Entropy = −p₁log₂(p₁) − p₂log₂(p₂) − ...
Pure Set Entropy Entropy = 0 when all instances belong to the same class.
Maximum Two-Class Entropy Entropy = 1 when two classes are split 50/50.
High Entropy A relatively impure or disordered set.
Low Entropy A relatively pure set.
Information Gain (IG) The amount by which splitting on an attribute reduces entropy.
Information Gain Formula IG = entropy(parent) − weighted entropy of the child nodes.
Best Decision Tree Split The attribute with the highest information gain.
Child Entropy Weight The proportion of the parent's instances that enter a particular child node.
Weighted Child Entropy Each child's entropy multiplied by the fraction of parent instances belonging to that child.
Root Node The starting node of a decision tree containing the initial dataset.
Interior Node (Decision Node) A decision-tree node that tests an attribute and divides instances into branches.
Branch A path corresponding to a particular value or outcome of an attribute test.
Leaf Node The final node of a decision tree that represents a segment of the population and produces a prediction.
Decision Tree Path The sequence of tests an instance follows from the root to exactly one leaf.
Tree Induction The recursive process of constructing a decision tree by selecting attributes and splitting the dataset.
Tree Induction Step 1 Start with the entire dataset at the root.
Tree Induction Step 2 Choose the best attribute using information gain.
Tree Induction Step 3 Partition the data into child nodes based on that attribute.
Tree Induction Step 4 Repeat splitting until the subgroups are pure, no attributes remain, or a stopping rule is reached.
Tree Induction Step 5 Assign a class label to each leaf.
Greedy Decision Tree A tree that chooses the locally best split at each step rather than searching for the globally optimal tree.
Decision Tree Overfitting When a tree continues splitting until it begins fitting noise and outliers, creating too many rules to generalize well.
Pre-Pruning (Early Stopping) Preventing a decision tree from growing too large by stopping growth early.
Pre-Pruning Examples Maximum depth, minimum samples per leaf, or requiring a minimum information gain before splitting.
Post-Pruning Growing a larger/full tree first and then removing branches that do not improve performance on validation data.
Decision Tree Rule Every root-to-leaf path can be represented as an IF...AND...THEN rule.
Decision Tree Boundary Trees create decision boundaries perpendicular to the feature axes because they split on one attribute at a time.
Probability Estimation Tree A decision tree that estimates the probability of a class instead of producing only a Yes/No prediction.
Leaf Probability The proportion of instances in a leaf belonging to the desired class.
Leaf Probability Formula p(+) = n / (n + m), where n is the number of desired-class instances and m is the number of other instances.
Problem with Small Leaves Small leaves can produce overly confident probability estimates; for example, one positive and zero negatives gives an estimate of 100%.
Laplace Correction A smoothing method that reduces overly confident probability estimates from small leaves.
Laplace-Corrected Probability p(c) = (n + 1) / (n + m + 2).
Effect of Laplace Correction It pulls probability estimates from small leaves toward 0.5 while having much less effect on large leaves.
Information Gain Step 1 Count each class in the parent node and calculate the parent's entropy.
Information Gain Step 2 For every child node, count the classes and calculate that child's entropy.
Information Gain Step 3 Multiply each child's entropy by its share of the parent data and add the weighted entropies together.
Information Gain Step 4 Subtract the weighted child entropy from the parent entropy; the attribute with the highest information gain splits first.
Classification vs. Regression Classification predicts which class something belongs to; regression predicts a numerical amount.
Probability of Rain Tomorrow A classification problem because the underlying target is rain/no rain.
Inches of Rain Tomorrow A regression problem because the target is numerical.
Parameter vs. Hyperparameter Parameters are learned during training; hyperparameters are chosen before training.
Validation vs. Test Data Validation data is used to tune a model; test data is reserved for final evaluation.
Overfitting vs. Underfitting Overfitting performs well on training but poorly on new data; underfitting performs poorly even on training data.
Entropy vs. Information Gain Low entropy means greater purity; high information gain means a split produces a large reduction in entropy.
Unweighted Child Entropy Average A common mistake; child entropies must be weighted according to child size.
Maximum Entropy with k Classes The maximum entropy is log₂(k), meaning entropy can exceed 1 when there are more than two classes.
Deployment and Monitoring Deployment does not mean the modeling process is finished; deployed models need continued monitoring and maintenance.