Web Interface and Dashboard
Casino of Life provides a powerful web interface for monitoring, controlling, and visualizing your AI training processes. This guide explains how to set up and use the web dashboard effectively.
Getting Started with the Web Interface
The web interface allows you to monitor training progress, manage multiple agents, and control training parameters through an intuitive dashboard.
Starting the Training Server
To use the web interface, you need to start the training server:
Once started, you can access the dashboard at http://localhost:8080
(or your custom port).
Dashboard Features
Training Monitoring
The dashboard provides real-time monitoring of your training sessions:
Performance Metrics: Win rate, average rewards, episode length
Learning Graphs: Visualize reward trends, action distributions, and more
State Visualization: See what the agent sees during training
Memory Usage: Monitor resource utilization
Agent Management
Manage multiple agents from a single interface:
Create New Agents: Configure and launch new training sessions
Load Saved Agents: Resume training from checkpoints
Compare Agents: Run A/B testing between different models
Export Models: Save trained agents for deployment
Interactive Chat Interface
Communicate with CaballoLoko directly from the web interface:
Natural Language Commands: Send training instructions
Training Feedback: Get real-time updates on training progress
Strategy Adjustment: Modify training parameters on the fly
Chat History: Review previous instructions and responses
API Integration
The web interface exposes a RESTful API for programmatic control:
Starting a Training Session
Checking Training Status
WebSocket for Real-time Updates
For real-time updates, you can connect to the WebSocket endpoint:
Customizing the Dashboard
The dashboard can be customized using configuration files:
Deployment Options
The web interface can be deployed in several ways:
Local Development
Docker Container
Production Deployment
For production environments, we recommend using a reverse proxy:
Security Considerations
The web interface includes several security features:
Authentication: Optional user authentication system
API Keys: Secure API access using token-based authentication
Rate Limiting: Protection against excessive requests
CORS Configuration: Control which domains can access the API
To enable authentication:
Troubleshooting
Common issues and their solutions:
Server won't start: Check for port conflicts or missing dependencies
Slow dashboard updates: Reduce refresh rate or limit monitored metrics
High memory usage: Decrease the number of parallel training sessions
Connection issues: Verify network settings and firewall configurations
The web interface provides a powerful way to control and monitor your Casino of Life training sessions, making complex reinforcement learning accessible and visual.
Last updated