Visulization¶
TorchCTR has a simple but enough dashboard for log and metrics visulization. This dashboard should be setup as a server.
#!/usr/bin/env python
# encoding: utf-8
from torchctr.dashboard import Dashboard
# Just init and run
# Then the dashboard will run at 0.0.0.0:8080, sure you can modify them
v = Dashboard()
v.run()
You’ll get the prompt like this:
* Serving Flask app "torchctr.dashboard.dashboard" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)