csds 101 midterm 2

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

1/75

encourage image

There are no tags or description

Looks like no tags are added yet.

76 Terms

1
New cards

machine learning

study of algorithms and statistical models that computer systems use to perform a task without explicit instructions (finding patterns in data)

2
New cards

supervised machine learning

expert gives feedback on algorithms decisions

3
New cards

unsupervised learning

no feedback, algorithm has to cluster data

4
New cards

reinforcement algorithms

no feedback, uses metric to tell if algorithm is performing well

5
New cards

classification

sorting instance into a class

6
New cards

regression

given instance, find value of instance

7
New cards

ranking

given instance, place it in ordered list

8
New cards

label

what is being predicted

9
New cards

feature

input variables

10
New cards

example

particular instance of data

11
New cards

labeled example

has feature and label

12
New cards

unlabeled example

has feature, no label

13
New cards

model

defines relationship between features and labels

14
New cards

training

creating/learning model

15
New cards

inference

applying trained model to unlabeled examples

16
New cards

training data

data algorithm is trained on

17
New cards

testing data

data algorithm is tested with

18
New cards

accuracy

(TP + TN) / (TP + TN + FP + FN)

19
New cards

precision

TP / (TP + FP)

20
New cards

recall

TP / (TP + FN)

21
New cards

specificity

TN / (TN / FP)

22
New cards

skewed distribution

dataset having more of one type of data than another

23
New cards

generalization

model making accurate predictions on new data

24
New cards

overfitting

model does very well on training set but poorly on test set; model learns training set well but cannot generalize

25
New cards

what makes a good test set?

large enough to give meaningful results; representative of data set as whole

26
New cards

validation set

comes before test set to ensure test set includes entirely new data

27
New cards

decision tree

sequences of decisions leading to set outcomes

28
New cards

attribute-based representations

examples described using attribute values (boolean, discrete, continuous); either positive (T) or negative (F)

29
New cards

how do you chose an attribute?

splits examples into subsets that are ideally all positive or all negative

30
New cards

what is the formula for linear machine learning?

y’ = b + w1x1

31
New cards

what does y’ represent in the linear machine learning formula?

the predicted label (output)

32
New cards


what does b represent in the linear machine learning formula?

bias

33
New cards


what does w1 represent in the linear machine learning formula?

weight of feature 1

34
New cards


what does x1 represent in the linear machine learning formula?

feature 1

35
New cards

empirical risk minimization

combines training and supervised learning to create model that minimizes loss

36
New cards

loss

penalty for bad predictions

37
New cards

what do x and y represent in the mean squared loss formula?

x is features, y is labels

38
New cards

what does prediction(x) represent in the mean squared loss formula?

function of weights and bias in combination with set of features x

39
New cards

what does D represent in the mean squared loss formula?

data set representing labeled data

40
New cards

what does n represent in the mean squared loss formula?

number of examples in D

41
New cards

support vector machines

used for classification, given n points in k-dimensional space, find hyperplane that separates two classes

42
New cards

gradient descent

adjusts parameters step by step

43
New cards

neural net

set of nodes organized in layers with a set of weights representing the connections between each layer, and an activation function that transforms the output of each node

44
New cards

random forest

set of decision trees each learning a model of data and voting on final classification

45
New cards

ANN

artificial neural network

46
New cards

backpropagation

gradient descent algorithm for neural networks, adjusts weights and biases

47
New cards

pooling layer

reduce number of nodes/data’s dimensionality making processing more manageable

48
New cards

what is the main problem with deep learning

the patterns it finds may not be the ones you want to find

49
New cards

deep learning

network with many hidden layers

50
New cards

clustering

form of unsupervised learning where patterns are found in unlabeled data

51
New cards

similarity

smallest (squared) euclidean distance

52
New cards

hierarchical algorithm

points in cluster, merge clusters that are close, repeat until a good set of clusters is obtained

53
New cards

non-hierarchical algorithms

decide amount of clusters, start with set of cluster choices, put each point in cluster it is closest to, adjust clusters, reassign points based on new cluster, repeat

54
New cards

k-means clustering

choose k number of clusters, assign point to nearest center, move center to mean of assigned points, stops when clusters do not change

55
New cards

tokens

how LLM processes words

56
New cards

tokenization rules

4 tokens is about 3 english words

57
New cards

vocab size

modern LLMs use about 50k to 100k unique token pieces

58
New cards

temperature

changes how LLM chooses tokens; low temperatures are more greedy/focused, high temperatures are more creative/unstable

59
New cards

why is attention important for LLMs?

meaning depends on long-distance word pairings across a paragraph; if related words are far apart a model can fail

60
New cards

what are the 3 stages for LLMs?

  1. self-supervised pre-training

  2. instruction fine tuning

  3. reinforcement learning from human feedback


61
New cards

self-supervised pre-training

model trained on trillions of unlabeled web tokens; high world ‘knowledge’ but poor conversational compliance. 99% of compute resources used here

62
New cards

instruction fine-tuning

curated dataset of prompt-and-response pairs made by human experts to teach model structure of questions, answers, and coding tasks. can now understand conversation role-playing and direct user prompts

63
New cards

reinforcement learning from human feedback

human evaluators rank model outputs; steers model towards helpfulness and safety and avoids toxic and evasive answers

64
New cards

softmax

mathematical function LLM use to turn output score into valid probability distribution

65
New cards

survivorship bias

data biased towards entities that are present, the ones that fail should also concern us

66
New cards

conditional probability

probability outcome occurs when particular event occurs (outcome | event)

67
New cards

group fairness

probability outcome is the same across groups

(outcome = 1 | group = a) = (outcome = 1 | group = b)

68
New cards

conditional fairness

same probability of outcome across groups given same background information

(outcome = 1 | group = a and info = x) = (outcome = 1 | group = b and info = x)

69
New cards

statistical parity

states that you are unlikely to know outcome if you only know the group, and unlikely to know group if you only know the outcome

70
New cards

steps to data science life cycle

  1. acquisition

  2. management

  3. preparation

  4. analysis

  5. model development

  6. visualization


71
New cards

acquisition

getting data for project (what types of questions should be asked during collection?, what data do you need?)

72
New cards

management

how you will control data after management (what data will be stored, how is data stored)

73
New cards

preparation

putting data into format useful for algorithms, removing bad data

74
New cards

analysis

looking for meaning in data (what messages are in data, what techniques would be effective to find messages?)

75
New cards

model development

create model of data that lets us apply info found in data to project

76
New cards

visualization

taking information from model and putting it into form that makes knowledge gained easily understood