Create a mapping
In order to create a mapping a model and code integration should previously been integrated into Tensorleap.
In order to create a mapping in the Tensorleap platform a user can add several UI blocks to its' model representation in the Network view.
This is usually done either in the first time a new architecture was uploaded to Tensorleap or when a new Metric, Loss, or Visualizer was added via the Integration Script.

When should a mapping be created or updated
The First Time a new architecture is uploaded
Once a new architecture has been successfully uploaded to Tensorleap, we would like to create a new mapping to instruct the platform on how to visualize elements, and what should be the inputs to the loss and metrics.
In order to create a mapping for the first time, you can use the Network Wizard . It would give step-by-step instructions on how to create a valid mapping for your model.
A new loss, metric, or visualizer was added to the Integration
In case you already have a mapping, but you've added a new visualizer, metric, or loss to your Integration script that you would like to use, you would need to change your mapping to instruct the platform on how to use this element.
You can than simply add the corresponding element to the UI, save the changes to your model, validate, and save it for future use.
How to change the Network mapping
Adding Nodes
The Tensorleap mapping can be changed by adding or modifying existing nodes in the UI.
To add a new element, simply right click anywhere in the Network view, choose the element you want, and connect it to the corresponding source. Connections are performed by a drag-and-drop operation - dragging from the output of one node into the input of another.

The elements you can add are a collection of default visualizers, loss, metrics in addition to custom one that you've defined in your integration script:
Input Node - connects the Input Encoders created in the script with your model
Ground Truth - connects the Ground Truth encoder created in the script with your model
Custom Loss - connects a Custom Loss created in the script with your model
Loss - connect a default losses to your model
Visualizer - connects a default visualizer or a Custom Visualizer created in the script with your model.
Metric - connects a default metric or a Custom Metric created in the script with your model.
Modifying Nodes
Each one of these nodes has some attributes that can be edited from the Node Details tab (right hand side). For example, if your model has multiple inputs you can select the input node by clicking on it, and a window would open that allows you to select the input you would like to use.

Deleting nodes
To delete nodes from the UI, right click any node. This would open a pop-up window with the trash can icon. Clicking it would remove the node from the mapping.

Once nodes are added, modified, or deleted from the mapping it is important to use the button to save your changes to the mapping graph. Any unsaved changes in the configuration would be indicated by an orange dot over the save icon
.
Last updated
Was this helpful?