Exam Flashcards

1
Q

Genetic Algorithmus

Give three selection Methodes to constantly improve the population

A

Elitism:
Copies the best chromosomes to the new population before loosing them through crossover or mutation

Roulette Wheel Selection:
Size of wheel section according to fitness value

Rank selection:
Like Roulette but wheel section size depends on fitness value ranking

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

Genetic Algorithms

Which three forns of encoding exist and briefly explain how they work

A

Binary Encoding:
Every chromosome is a string of bits(0,1)

Permutation Encoding:
Every chromosome is a string of numbers, which represents the order of a sequence

Value Encoding:
Every chromosome is a string of values. Values can be anything

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

Genetic Algorithms

Give a pseudo-code for a GA-program

A
Start
Encoding
Generate initial population
Compute fitness
Until  population has concerged:
  selection
  crossover
  mutation
  compute fitness
stop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Genetic Algorithms

What are the basic terms in GA

A

population
chromosome
gene

Genome: Complete set of genetic material
Genotype: Particular set of genes in genome

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

Fuzzy Logic

Name the 4 Fuzzy Logic controller types

A

Mandani
Tsukamoto
TSK
Laroen

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

Fuzzy Logic

Give the formal representation of a fuzzy set.
Give the operations on membership functions with their respective formulas and draw name an exemplary mf

A
Support: Non zero membership degree
Boundary: membership degrees 0 < my_A(x) < 1
Core: membership degree 1
Singletion: supp(A) = core(a) = {x_0}
Alpha cut my_A(x) >= alpha
Strong alpha cut set_ my_A(x) > alpha
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Fuzzy Logic

How are fuzzy and crisp sets defind and how do boolean logic and fuzzy logic stand to each other?

A

Fuzzy set:
Sets whose elements have degrees of membership

Crisp set:
degree of membership is either 1 or 0

Boolean logic is a special case of fuzzy logic

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

Q-Learning & SARSA

Explaun the difference between Q-Learning and SARSA

A

SARSA
updates with respekt to the result of the action taken
leans values of policy carried out

Q
assumes optimal policy is beeing followes
leans optimal policy independent of agent’s actions

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

Q-Learning

Gice the update value for Q-Learning and explain basic features of Q-Learning.

A

mapping (state, action) to reward all features values on optimal path
model free learning
Q(s,a) converges to the expected value of a state when following an optimal policy
off policy learning
agent always takes optimal action

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

SARSA

Geive the update rule for SARSA and explain basic features

A

on policy learning

agant has free choice -> non-optimal action

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

Reinforcement Learning

Define the value function v(s) and give the formulas to the two models for value function

A
  • The agent’s current belive how good a state is, given a sll expected future rewad. The value of a state is defined as the sum off all expected future rewards, assuming we are in state s and follow pi(s)

Finite Horizon Model
Infinite Horizon Model

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

Reinforcement Learning

Which tyes of rewards are there

A
  • Pure delayed award
  • Minimum time to goal award
  • Multi player games
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Auto-asscociative nn (autoencoder)

Outline an auto-assoc. nn and explain how it works

A
  • performs an identity mapping (i=o)
  • in the middle of the network is a bottleneck-layer that enforces a reduction of dimension of the data
  • if lin function in the center it will find the first principle component (direction in which data has lowest variance)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Hopefield Network auto associative memories

How can such a network remember patterns?
How can more than one pattern be learned?

A
  • nn stores and retrives associations as synaptic connection. Hebbina learning presynaptic and postsynaptic neurons are envolved. ass. or content addressable way (STDP)
  • Out. of each neuron is fed back via unit-time delay, to all other neurons in the network. NN can recognize patterns through only partial exposure of the pattern.
    asynchronous and synchronous update possible
  • add up all weight patterns:
    w = s_taret * s_input
    s_past m= sigma(w*s_present)
    patterns/neurons > 0.138 otherweise small errors pile up
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Kohonen’s self-organized-maps (SOM)

Compare a SOM to VQ and name the biggest difference between them. Give and explain two typical practical problems.

A

SOM

  • better at overcoming the under- or overfitting and local minima problem
  • produces map with some ordering among the node vectors and this gives the map the ability to tolerate noise in the input or retival patterns
  • use of neighbourhood function
  • (bad) mapping into 2D-weights -> knots can appear
  • (bad) mapping intp a too-low dimension
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Kohonen’s SOM

What is the biological background? How do they work?

A
  • Motivated by retina cortex mapping
  • Neurons are placed on the nodes of a lattice.
  • Lattice forms a topographic map of the input patterns. Thereby the network develops the ability to form internal representations for encoding features of the input and create classes automatically
17
Q

Vector Quantization

Briefly describe what VQ is and give the outline of VQ program

A
  • lossy data compression
  • voroni partitioning: into regions based on distance to points in a specific subset
choose # of clusters
init prototypes
until convergence
  rand pick ip(i)
  determ. winning prototype
  update the winning prototype
18
Q

GA

give crossover possibilities for these three types of encoding:
Binary, permuation, value

A

Binary: single point, two point, uniform, arithmetic
Permutaion: single mpoint, partially mapped
Value: single, tow, uniform arithmetic

19
Q

Dijkstra’s Algorithm

Explain

A
  • Finds the shortest pathh between a starting node and all other nodes of a graph (edge weights)
20
Q

DFS

Explain

A
  • From a starting node all in depth verices are explored before branching is done
  • dfs takes from the beginning of the stack
21
Q

BFS

Explain

A

Explores all vertives cinnected to the current vertice with distance k, before finding any vertices that are in distance k+1

22
Q

Two ways to represent a graph

A
  • Adjacency Matrix

- Adjacency List

23
Q

Graph tyoes

A

directed vs undirected
cyclical vs non cyclic
weighted vs unweighted

24
Q

Graph types

A

directed vs undirected
cyclical vs non cyclic
weighted vs unweighted

25
Q

PCA

define

A
  • provides a sequence of the best linear approximations to a given high-dimensional observation
  • effectiveness is limited by it’s global linearity
26
Q

What is Competitive Learning

A

find a winning neuron and update it’s weights to make it more likely to win in future if similar ip will be given to network