optimize_contextual
Selects optimal options based on context using contextual bandit learning. Analyzes past performance and current situation to recommend the best choice.
Instructions
Contextual Bandit (LinUCB). Context-aware selection — learns which option works best in which situation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arms | Yes | [{id, name}] | |
| context | Yes | Context feature vector | |
| history | No | Past observations [{armId, reward, context}] |