Closed 18811449050 closed 2 years ago
Hi @18811449050 ,
This method computes the prediction accuracy of the input model on the input dataset. There is no training on the model inside compute_accuracy
.
If it is a regression task, how to change the loss?
Currently, MOON is designed for the classification task. For regression task, you may need to change the cross-entropy loss (e.g., line 130 of main.py) to loss for regression (e.g., MSELoss). You also need to change the model architecture.
I would like to know what this method(compute_accuracy) does? centralized learning?Model warm up?