This article explains how to use the Rhino FCP User Interface to create a new code object. It also explains how to create a new version of the code object. A code object is a basic computational building block of a project.
Note: To learn how to create a new code object using the SDK, see Creating a New Code Object with Rhino SDK.
Creating a New Code Object
To create a new code object, follow these steps.
- Go to the main project's page and select your project.
- Select Code from the menu on the left to open the Code Objects page. To search for code objects, use the text boxes located at the top right corner of the page. To search by name enter the full name or part of the name in the Search Name text box. To search by description, enter part of the description in the Search Description text box.
- Select the Create New Code Object button to open the Create New Code Object page. You might need to scroll down to see the entire page.
The fields that appear in the Create a New Code Object page depend on the code object you chose. To learn more about how to complete the creation of your Code Object, select one of the following links.
- Creating a new Python Code Object
- Creating a new Generalized Code Object
- Creating a new NVFlare Code Object
- Creating a new Interactive Container Code Object
Code objects usually require that you know the number of inputs and outputs your code needs. Those inputs and outputs are provided as data schemas. For example, if your code splits one dataset into two (like a train/test split), you will have to create a code object with one input schema and two output schemas. For more detail into how to structure your code to run on FCP, see Accessing your datasets in Code Objects.
| Pro-tip: If you don't need this level of control, you can: |
|
Multiple input and output datasets are supported in Python, Generalized, and Interactive Container Code Objects. While NVFlare Code Objects do not support multiple datasets, they can still be used as before for learning and inference across multiple sites.
Creating a New Version
Do the following to create a new version of a Code Object.
- Go to the page containing the original Code Object.
- In the upper right-hand corner, select the + New Version button.
Selecting this button opens a new page where you can creae a new version of your Code Object.