AI Flashcards
What is a genetic algorithm?
- 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
What is an agent?
An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators
What is a percept?
the agent’s perceptual inputs at a given instant
What is a percept sequence?
the complete history of everything the agent has ever perceived
What is a rational agent?
chooses whichever action maximizes the expected value of the performance measure
What is the difference between fully observable and partially observable?
Agent’s sensors give access to the complete environment or only some of the environment (relevant environment)
What is the difference between deterministic and stochastic?
Deterministic - the next state is completely determined by the current state
Stochastic - too complex to be determined based on the previous state
What are the different types of agents?
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
What is A* search?
BFS with a heuristic
Basic NLP
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
What is stop word removal?
Removal of commonly used connecting words (a, an, the, and, etc.)
What is stemming?
Removing the endings of words to make the words more commonly used (study, studying, studied -> stem to study)
What is lemmatization?
Create a common form of each word (running, ran -> lemmatize to run)
Document-Term Matrix
Documents on the left, terms across the top
Term-Document Matrix
Terms on the left, documents across the top