Create a mapping

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.

An example mapping creation process

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

Before changing an existing mapping, ensure the correct code integration script and version is selected from the right hand controller. This would allow you to add specific elements to the mapping that was defined in that script.

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.

Right Clicking anywhere allows to add UI nodes

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:

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.

An input is selected by clicking on it. The panel that opens up allows to edit node specific properties

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.

Right clicking a node removes a node from the graph

After you are satisfied with the changes in your mapping you should validate it is correct, and then save it to file so you'll be able to re-apply it at will.

Last updated

Was this helpful?