Python Environments
Learn by doing?
Caveats
Unsupported / risky packages
Minimal example
const initializationOptions = {
pyodide: {
enabled: true,
packages: ["micropip"], // optional extra packages
}
};
// In your workload (RL example):
const autovectorizeInfo = { enabled: true };
const session = new ReinforcementLearningSession(
ACTION_COUNT,
TOTAL_SAMPLES,
TOTAL_ROUNDS,
BATCH_SIZE,
EPOCHS_PER_ROUND,
MIN_CLIENTS_TO_START,
model,
Environment, // JS or Python-wrapped env
initializationOptions,
AlgorithmClass,
algorithmConfig,
autovectorizeInfo
);Structuring a Python Environment class
Integration notes
Status
Last updated