Visualization of PyCaffe Custom Metrics
This topic shows you how to set experiment custom metrics and their effects. The topic builds on Getting Started for PyCaffe with Solve.
The following steps are covered:
- Create a custom metric function.
- Set the custom metric function to be evaluated and monitored by MissingLink.
Ensure you can run the.
Go through Getting Started for PyCaffe with Solve.
Compare thewith the .
Create a custom metric function:
solver.solve(), create a custom metric function:
def sorensen_dice(): # Here we can modify this function to # calculate the sorensen dice coefficient # or any other custom metrics # instead of returning 1 return 1 solver.solve()
Set custom metrics for an experiment to be monitored:
In the base script, right above
solver.solve(), add the following fragment to tell the callback to track the custom metric:
missinglink_callback.set_monitored_blobs( ['loss', sorensen_dice]) solver.solve()
You should have added custom metrics to your experiment successfully.
- Inspect the .
- Run the new script and see how the MissingLink dashboard helps with monitoring the experiment. A description follows.
Viewing the new functionality on the dashboard
You can see the custom metrics across different experiments on your MissingLink dashboard.