For the complete documentation index, see llms.txt. This page is also available as Markdown.

Running NVFlare Code using the Rhino SDK

This article explains how to run NVFlare Code using the Rhino SDK.

If you want to know how to run NVFlare Code using the FCP UI, see Creating and Running NVFlare Code and Running Inference.

Prerequisites

Before starting this process, you should have already:

  1. Created a Project using the Rhino SDK or UI

  2. Created 1 or more Datasets using the Rhino SDK or UI

  3. Created a Code Object using the Rhino SDK or UI

Remember to change all lines with CHANGE_ME comments above them in all the blocks below!

Import your Python Dependencies

import rhino_health as rh
from rhino_health.lib.endpoints.code.code_object_dataclass import (
    CodeObject,
    ModelTrainInput
)
from rhino_health.lib.endpoints.code_run.code_run_dataclass import (
    CodeRunStatus
)
import getpass

Log into the Rhino SDK using your FCP Credentials

Your username will be the email address you log into the Rhino FCP platform with.

Get Supporting FCP Information Needed to Run Your Code

At this point, you will need the name of your Project, any Dataset's name you would like to use as input and your previously created Code Object's name. You can also retrieve each object's UUID by following the instructions here: Frequently Asked Questions (FAQs)

Training & Validating Your Model

To run your model you will need to supply the Code Object with the input Datasets you would like to train the model with, validation Datasets you would like to validate the newly trained model with, configurations for both the federated server and clients whether you are simulating federated learning, a timeout and a validation Dataset names suffix. The suffix will be appended to each validation Dataset name so you can view the results of the model validation once the output has been re-imported into the system as a Dataset.

Getting Help

If you have received an error or run into any issues throughout the process, please reach out to support@rhinohealth.com for more assistance.

Last updated

Was this helpful?