CIS412 Quiz 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/110

encourage image

There are no tags or description

Looks like no tags are added yet.

111 Terms

1
New cards

Machine Learning

A process where a model learns patterns from features in order to predict a target.

2
New cards

Feature (Input / Variable / Attribute)

A characteristic used to make a prediction, such as age, balance, or pixel values.

3
New cards

Instance (Observation / Data Point / Row)

One individual record in a dataset described by its features.

4
New cards

Target Attribute

The value that the model is trying to predict.

5
New cards

Class Label

The known categorical outcome associated with an instance.

6
New cards

Training Data

Data used to teach a model and learn its patterns.

7
New cards

Validation Data

Data used during model development to tune the model; it is not used to learn the underlying patterns directly.

8
New cards

Test Data

Data used for the final evaluation of a model; it should not be seen during training or validation.

9
New cards

Model

A simplified representation of reality built for a particular purpose.

10
New cards

Model Induction

The process of creating models from data.

11
New cards

Parameter

A value learned by the model during training, such as the coefficients in a linear equation.

12
New cards

Hyperparameter

A setting chosen before training, such as learning rate, maximum tree depth, number of hidden layers, or neurons per layer.

13
New cards

Epoch

One complete pass through the training dataset.

14
New cards

Iteration (Step)

One parameter update during model training.

15
New cards

Batch

The subset of training data processed before one parameter update.

16
New cards

Iterations per Epoch

Training samples divided by batch size.

17
New cards

Total Iterations

Iterations per epoch multiplied by the number of epochs.

18
New cards

Overfitting

When a model learns noise in the training data instead of just the general pattern; it usually produces high training accuracy but low validation/test accuracy.

19
New cards

Underfitting

When a model is too simple to capture the important patterns in the data; performance is poor even on the training data.

20
New cards

Bias

Systematic error caused by overly simplistic assumptions; high bias is associated with underfitting.

21
New cards

Variance

Error caused by a model being overly sensitive to its particular training data; high variance is associated with overfitting.

22
New cards

Bias-Variance Tradeoff

The need to balance bias and variance so a model captures real patterns while ignoring noise.

23
New cards

Numerical Data

Data represented by numbers, including continuous measurements and discrete counts.

24
New cards

Continuous Data

Numerical data that can take values along a continuous range, such as 5.1 or 3.333.

25
New cards

Discrete Data

Numerical data consisting of countable values, such as number of children or clicks.

26
New cards

Categorical Data

Data consisting of categories rather than numerical quantities.

27
New cards

Nominal Data

Categorical data with no inherent order, such as color.

28
New cards

Ordinal Data

Categorical data with a meaningful order, such as S/M/L or grades A–D.

29
New cards

Boolean Data

Data with only two possible values, such as Yes/No, 1/0, or True/False.

30
New cards

Datetime Data

Data representing dates or times.

31
New cards

Raw Text

Data consisting of written language, often used in natural language processing (NLP).

32
New cards

Supervised Learning

Machine learning using labeled data where both the inputs and correct outputs are known.

33
New cards

Unsupervised Learning

Machine learning using unlabeled data to discover patterns without an explicitly defined correct output.

34
New cards

Classification

A supervised learning task that predicts which category or class an instance belongs to.

35
New cards

Regression

A supervised learning task that predicts a numerical quantity.

36
New cards

Classification Target

A categorical target.

37
New cards

Regression Target

A numerical target.

38
New cards

Class Probability Estimation

Predicting the probability that an instance belongs to a particular class; it is still classification.

39
New cards

Clustering

An unsupervised learning technique that groups similar observations without known class labels.

40
New cards

CRISP-DM

Cross-Industry Standard Process for Data Mining; an iterative process for applying data mining and machine learning to business problems.

41
New cards

CRISP-DM Business Understanding

Define business objectives, assess the situation, establish data-mining goals, and create a plan.

42
New cards

CRISP-DM Data Understanding

Gather, describe, and explore data and verify its quality.

43
New cards

CRISP-DM Data Preparation

Select, clean, construct, integrate, and format data for modeling.

44
New cards

Feature Engineering

The process of constructing or transforming features to make data more useful for modeling; part of CRISP-DM Data Preparation.

45
New cards

CRISP-DM Modeling

Select modeling techniques, build models, and assess them.

46
New cards

CRISP-DM Evaluation

Evaluate model results and determine whether they satisfy the business goal.

47
New cards

CRISP-DM Deployment

Put the model into use and plan how it will be monitored and maintained.

48
New cards

CRISP-DM Iterative Process

CRISP-DM is a cycle rather than a strictly linear process; earlier phases may be revisited when problems are discovered.

49
New cards

Tensor

A general data structure used to represent different kinds and dimensions of data for machine learning.

50
New cards

0D Tensor (Scalar)

A single value with shape (), such as a loss of 0.27 or accuracy of 0.91.

51
New cards

1D Tensor (Vector)

A one-dimensional collection of values with shape (n,), such as one patient's features.

52
New cards

2D Tensor (Matrix)

A two-dimensional structure with shape (samples, features).

53
New cards

3D Tensor

A structure commonly used for sequences or time series with shape (samples, timesteps, features).

54
New cards

4D Tensor

A structure commonly used for images with shape (samples, height, width, channels).

55
New cards

5D Tensor

A structure commonly used for video with shape (samples, frames, height, width, channels).

56
New cards

RGB Image Channel Count

3 channels.

57
New cards

Grayscale Image Channel Count

1 channel.

58
New cards

Decision Tree

A supervised learning model built by repeatedly splitting data using informative attributes.

59
New cards

Supervised Segmentation

Using attributes to divide a labeled dataset into subgroups that are as pure as possible.

60
New cards

Pure Subgroup

A subgroup in which most or all instances share the same target class.

61
New cards

Informative Attribute

An attribute that creates relatively homogeneous or pure subgroups when used to split data.

62
New cards

Entropy

A measure of the disorder or impurity of a set.

63
New cards

Entropy Formula

Entropy = −p₁log₂(p₁) − p₂log₂(p₂) − …

64
New cards

Pure Set Entropy

Entropy = 0 when all instances belong to the same class.

65
New cards

Maximum Two-Class Entropy

Entropy = 1 when two classes are split 50/50.

66
New cards

High Entropy

A relatively impure or disordered set.

67
New cards

Low Entropy

A relatively pure set.

68
New cards

Information Gain (IG)

The amount by which splitting on an attribute reduces entropy.

69
New cards

Information Gain Formula

IG = entropy(parent) − weighted entropy of the child nodes.

70
New cards

Best Decision Tree Split

The attribute with the highest information gain.

71
New cards

Child Entropy Weight

The proportion of the parent's instances that enter a particular child node.

72
New cards

Weighted Child Entropy

Each child's entropy multiplied by the fraction of parent instances belonging to that child.

73
New cards

Root Node

The starting node of a decision tree containing the initial dataset.

74
New cards

Interior Node (Decision Node)

A decision-tree node that tests an attribute and divides instances into branches.

75
New cards

Branch

A path corresponding to a particular value or outcome of an attribute test.

76
New cards

Leaf Node

The final node of a decision tree that represents a segment of the population and produces a prediction.

77
New cards

Decision Tree Path

The sequence of tests an instance follows from the root to exactly one leaf.

78
New cards

Tree Induction

The recursive process of constructing a decision tree by selecting attributes and splitting the dataset.

79
New cards

Tree Induction Step 1

Start with the entire dataset at the root.

80
New cards

Tree Induction Step 2

Choose the best attribute using information gain.

81
New cards

Tree Induction Step 3

Partition the data into child nodes based on that attribute.

82
New cards

Tree Induction Step 4

Repeat splitting until the subgroups are pure, no attributes remain, or a stopping rule is reached.

83
New cards

Tree Induction Step 5

Assign a class label to each leaf.

84
New cards

Greedy Decision Tree

A tree that chooses the locally best split at each step rather than searching for the globally optimal tree.

85
New cards

Decision Tree Overfitting

When a tree continues splitting until it begins fitting noise and outliers, creating too many rules to generalize well.

86
New cards

Pre-Pruning (Early Stopping)

Preventing a decision tree from growing too large by stopping growth early.

87
New cards

Pre-Pruning Examples

Maximum depth, minimum samples per leaf, or requiring a minimum information gain before splitting.

88
New cards

Post-Pruning

Growing a larger/full tree first and then removing branches that do not improve performance on validation data.

89
New cards

Decision Tree Rule

Every root-to-leaf path can be represented as an IF…AND…THEN rule.

90
New cards

Decision Tree Boundary

Trees create decision boundaries perpendicular to the feature axes because they split on one attribute at a time.

91
New cards

Probability Estimation Tree

A decision tree that estimates the probability of a class instead of producing only a Yes/No prediction.

92
New cards

Leaf Probability

The proportion of instances in a leaf belonging to the desired class.

93
New cards

Leaf Probability Formula

p(+) = n / (n + m), where n is the number of desired-class instances and m is the number of other instances.

94
New cards

Problem with Small Leaves

Small leaves can produce overly confident probability estimates; for example, one positive and zero negatives gives an estimate of 100%.

95
New cards

Laplace Correction

A smoothing method that reduces overly confident probability estimates from small leaves.

96
New cards

Laplace-Corrected Probability

p(c) = (n + 1) / (n + m + 2).

97
New cards

Effect of Laplace Correction

It pulls probability estimates from small leaves toward 0.5 while having much less effect on large leaves.

98
New cards

Information Gain Step 1

Count each class in the parent node and calculate the parent's entropy.

99
New cards

Information Gain Step 2

For every child node, count the classes and calculate that child's entropy.

100
New cards

Information Gain Step 3

Multiply each child's entropy by its share of the parent data and add the weighted entropies together.