Callback

View Source On Gitee

import com.mindspore.flclient.model.Callback

Callback defines the hook function used to record training, evaluate and predict the results of different stages in end-to-side federated learning.

Public Member Functions

function

abstract Status stepBegin()

abstract Status stepEnd()

abstract Status epochBegin()

abstract Status epochEnd()

stepBegin

   public abstract Status stepBegin()

Execute step begin function.

  • Returns

    Whether the execution is successful.

stepEnd

public abstract Status stepEnd()

Execute step end function.

  • Returns

    Whether the execution is successful.

epochBegin

public abstract Status epochBegin()

Execute epoch begin function.

  • Returns

    Whether the execution is successful.

epochEnd

public abstract Status epochEnd()

Execute epoch end function.

  • Returns

    Whether the execution is successful.