coba.environments
Environment creators and modifiers.
Friendly API
A friendly API for common environment functionality.
Sources
Load a csv dataset.
Load an arff dataset.
Load a libsvm dataset.
Load a manik dataset.
Load an openml.org dataset.
Simulations
A contextual bandit environment created from generative lambda functions.
A contextual bandit environment created from supervised data.
A supervised simulation created from an openml dataset.
A synthetic simulation whose rewards are linear with respect to the given reward features.
A synthetic simulation whose reward values are determined by neighborhoods.
A synthetic simulation whose reward function is created from kernel basis functions.
A synthetic simulation whose reward function belongs to the MLP family.
Filters
Batch interactions.
Make a filter agnostic to batching.
Transform reward values to 1 or 0.
Cache given interactions.
Indicate where to chunk.
Cycle reward values.
Ensure that features are dense.
Final preparation for built-in Evaluators.
Flatten contexts and actions.
Transform simulated interactions to IGL interactions.
Impute missing values (nan) in Interaction contexts.
Transform simulated interactions to logged interactions.
Add noise to values.
Transform logged interactions to simulated interactions.
Change representation of categorical data.
Take n random interactions.
Riffle shuffle interactions.
Scale and shift features.
Shuffle interaction order.
Take a slice of interactions.
Sort interactions by features.
Ensure that features are sparse.
Take the first n interactions.
Unbatch interactions.
Select for characteristics