AIToolbox
A library that offers tools for AI problem solving.
|
This class is the public interface for updating the input graph with the input data in generic code that uses the maximizers. More...
#include <AIToolbox/Factored/Bandit/Algorithms/Utils/GraphUtils.hpp>
Public Member Functions | |
template<typename Data , typename... Args> | |
void | operator() (typename Maximizer::Graph &graph, const Data &d, Args &&...args) |
This class is the public interface for updating the input graph with the input data in generic code that uses the maximizers.
This functor takes as input a graph that has been created via the MakeGraph functor. It then copies the input Data to the appropriate factors of the graph.
This functor can be used multiple times on the same graph. A graph will in general only need to be constructed once, but can be updated infinitely. With some Maximizers this can save a lot of work.
Maximizer | The type of the maximizer to construct a graph for. |
|
inline |