teste 2 Flashcards
What is a state space search?
it is a process in which successive states are considered with the intention of finding the goal state
in a state space search what are the variables and fucntions
S: all possible states
A : all possible actions for a state
Action(s) action allowed to be performed when state is s
Results(s,a) results when a action is taken in s state
Costs(s,a) costs of doing a in s state
What are the three examples of state space search?
depth first search
breadth first search
A*-heuristic search
In depth first search how does the algorithm proceed?
the root node is selected in the tree plot and each branch is explored fully in order until the goal state is found
breadth-first search
explores nodes at each level before moving to the next
Pros and cons of depth first search
pro: low memorie requirement
con: slow, may not find solution
pros and cons of breadth first search
pro:garantees solution
cons: high memory cost
What is A*-heuritic search
it is an informed seach algorithm that aims to minimize costs( like memory and time) from the star till the goal node
In a A*-heuristic search the formula for cost is f(n) = g(n)+h(n) what does h(n) and g(n) mean
h(n) represent the heuristic function, in this case the cost from n to the goal
g(n) represents the cost of a step
In machine learning when the classes are unkown what type of classification is used
clustering
Check distance formulas
check them
what is cross validation
a way of training and testing your classifictaion method in machine learning
what are the four types of cross validateion
leave one out
bootstap
n-fold
split test
quickly descrive the cross validation methods
split test: half the set is training the rest is testing
bootstrap: random datapoints are selected to make a set (for testing and training) (there is reposition)
n-fold: testing successive and intersecting arrays of data against the rest
leave one out: one single data point is used as testing
In a confusion matrix, which axis must have a sum of 100%
vertical
Formula for the true positive rate
TPR = TP/P = 1-FNR
True negative rate formula
TNR = TN/N
The positive prediction value (PPV)
PPV = TP/PP = 1- FDR
FDR - False discovery rate
F1 score formual
2PPV*TPR/PPV+TPR
Accuracy
Acc = TP+TN/P+N
What is PP ?
The total number of things labled positive (TP + FP)
What is P?
Total number of positives
TP + FN
What is the complete machine learning system
sample-extaction1-classifier3-evaluation12-decision
1- learning
2-reporting
There are two types of models in machine leraving are are they and describe them
Discriminative and Generative models
Descriminative: They foccus onf distinction among classes, learning decision boundaries (ex: K-NN, SVM, Regression)
Generative: model how data is placed throughout the space, focusing on characteristics and a known model
What is Gradient descent and it’s goal
Gradient descent is the minimum of the derivative of the MSE.
Label and explain the different gradian descent models.
Stochastic (gd): a point in the GD is chosen at random in each step. It is fast, and good for redundant data.
Batch(gd): all samples are tested per iteration
MInibatch(gd): sub set per iteration
How does the step size affect the linear regression
see images on step size