AI Flashcards

1
Q

What is a genetic algorithm?

A
  • Begin with a population (a set of randomly generated possibilities)
  • Rate each individual of the population based on some fitness function
  • Create children from two randomly selected parents
  • Mutate the children with some randomness
  • Keep going until your children converge to best fitness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an agent?

A

An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a percept?

A

the agent’s perceptual inputs at a given instant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a percept sequence?

A

the complete history of everything the agent has ever perceived

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a rational agent?

A

chooses whichever action maximizes the expected value of the performance measure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between fully observable and partially observable?

A

Agent’s sensors give access to the complete environment or only some of the environment (relevant environment)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between deterministic and stochastic?

A

Deterministic - the next state is completely determined by the current state

Stochastic - too complex to be determined based on the previous state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the different types of agents?

A

Simple reflex - makes actions based on the current percept and ignores the history

Model-based reflex - use a model of the world and its environment to make decisions

Goal-based - has model of the environment but also has a goal for desirable situations and/or outcomes

Utility-based - complex representation of a goal rather than just good or bad

Learning - agent is able to learn based on decisions, goals, and environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is A* search?

A

BFS with a heuristic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Basic NLP

A

Structure

  • alphabet - set of characters to form words
  • vocabulary - set of valid words in the language
  • grammar - rules that connect words

Semantics
- meaning conveyed by the usage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is stop word removal?

A

Removal of commonly used connecting words (a, an, the, and, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is stemming?

A

Removing the endings of words to make the words more commonly used (study, studying, studied -> stem to study)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is lemmatization?

A

Create a common form of each word (running, ran -> lemmatize to run)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Document-Term Matrix

A

Documents on the left, terms across the top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Term-Document Matrix

A

Terms on the left, documents across the top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Supervised learning

A
  • Test and train set
  • Use training set to find a particular observation, training set has attributes
  • Used for classification
17
Q

Unsupervised learning

A
  • Not looking for anything in particular, simply trying to find some kind of relationships between data

Example: k-means clustering

18
Q

What is clustering?

A

Grouping observations together based on some attribute or multiple attributes.

19
Q

What are decision trees?

A

Form of classification that makes binary decisions on hierarchical choices

Root is all observations
Make splits until everything is atomic
Leaves are actual outcomes

20
Q

What is neural networking?

A

Machine learning based on the human brain where each layer is a set of decisions designed to recognize patterns. Each layer provides positive or negative reinforcement toward the correctness of the classification.

21
Q

What is a support vector machine?

A

Used in combination with clustering, the SVM helps classify data with a vector of separation between clusters.