liveBook · Manning

Action-value function

As explained in Evolutionary Deep Learning: Genetic algorithms and neural networks

A Q-function maps a state and action to an estimate of the expected cumulative reward from taking that action and following a policy thereafter.

An action-value function, or Q-function, estimates the cumulative reward for taking an action in a state and then continuing under a policy. A Q-table stores one value for every state–action pair, allowing an agent to choose the action with the highest estimated quality. section 11.1.1

Frozen Lake agent

A Gym FrozenLake environment supplies discrete states and actions. Training updates a 16-by-4 Q-table over episodes; evaluation selects argmax(Q[state, :]) to navigate the lake.

How Evolutionary Deep Learning: Genetic algorithms and neural networks covers it

How deep it goes
Explains table representation and update mechanics, but deliberately stops short of a deeper Q-learning treatment.
Examples
Uses a Gym FrozenLake environment, a 16-by-4 Q-table, training episodes, and greedy simulated episodes.
What it assumes
Assumes discrete states, actions, rewards, and environment stepping while making the Q-table and training loop explicit.
What you can do after
Build it from scratch as a tabular Q-learning agent and evaluate its learned actions in an environment.
How it connects
Connects reinforcement learning with Q-learning, Q-tables, policies, rewards, discount factors, and exploration–exploitation.

Also explained in

Compare how 5 books explain action-value function →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Evolutionary Deep Learning: Genetic algorithms and neural networks. The section links point to the parts of the book it draws on.