Skip to main content
. 2025 Feb 9;25(4):1039. doi: 10.3390/s25041039
Algorithm 6: FL model testing.
  •  

     Input: GlobalModel: Global Model after FL process

  •  

     TestSet: Preprocessed testing set

  •  

     Output: DetectionRate: metric that used to measure model performance

  • 1 

    XTest= Features of TestSet

  • 2 

    YTest= Labels of TestSet

  • 3 

    PredictedY = Test GlobalModel on XTest

  • 4 

    Calculate PerformanceMetric based on PredictedY and YTest

  • 5 

    return PerformanceMetric