|
QDpy
|
Reuse tabular policies under new linear rewards with successor features. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.successor_repertoire.SuccessorFeatureRepertoire |
| Discounted feature predictions for each archived policy and first action. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.successor_repertoire.fit_tabular_successor_features (continuation, features, policies, *, gamma=.99) | |
| Evaluate a fixed policy repertoire in one finite environment model. | |
Reuse tabular policies under new linear rewards with successor features.
Definition in file successor_repertoire.py.
| qdpy.algorithms.successor_repertoire.fit_tabular_successor_features | ( | continuation, | |
| features, | |||
| policies, | |||
| * | , | ||
| gamma = .99 ) |
Evaluate a fixed policy repertoire in one finite environment model.
| continuation | Substochastic array [state, action, successor state]. |
| features | Expected immediate feature vector [state, action, feature]. |
| policies | Integer action tables [policy, state] or probabilities [policy, state, action]. |
| gamma | Discount factor in [0, 1). |
Solve each source policy's Bellman system exactly up to float precision. Missing transition mass denotes termination. Include immediate features from the terminal outcomes in the expected input features. Observations and actions are integer indices. All policies transfer within the same dynamics and reward is linear in the features.
Definition at line 74 of file successor_repertoire.py.