calcMSEDS: Calculate mean-squared errors (MSE)

calcMSEDSR Documentation

Calculate mean-squared errors (MSE)

Description

Calculate mean-squared errors (MSE)

Usage

calcMSEDS(ws, x, y, average)

Arguments

ws

The list of coefficient vectors for all servers

x

The design matrix on a target server

y

The response vector on a target server

average

The indicator to average or not the prediction scores over all coefficient vectors

Details

For MTL methods, ws contained the coefficient vectors of all servers. x, y referred to the data pairs on the target server. The function calculated the MSE of x, y of the target server using the model ws. If average==TRUE, the averaged predicted probability was returned.

Value

The MSE of each coefficient vector (or averaged MSE)

Author(s)

Han Cao


transbioZI/dsMTLBase documentation built on Jan. 20, 2025, 8:18 p.m.