Raxol.Adaptive.FeedbackLoop
(Raxol v2.3.0)
View Source
Tracks pilot accept/reject decisions on layout recommendations.
Maintains a feedback history and computes acceptance accuracy.
Rule-based mode -- force_retrain/1 is a stub for future Nx
integration.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
Functions
@spec accept(GenServer.server(), binary()) :: :ok | {:error, :not_found}
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec force_retrain(GenServer.server()) :: {:ok, :rule_based_mode} | {:ok, :trained, map()} | {:ok, :insufficient_data}
@spec get_accuracy(GenServer.server()) :: float()
@spec get_history(GenServer.server(), pos_integer()) :: [feedback()]
@spec reject(GenServer.server(), binary()) :: :ok | {:error, :not_found}
@spec start_link(keyword()) :: GenServer.on_start()
@spec submit_recommendation(GenServer.server(), map()) :: :ok