Documentation
¶
Index ¶
- func BlockPrint(block chain.Block)
- func NewTask(model *python3.PyObject, unlabel *python3.PyObject, size [][]int, ...) network.TaskInfo
- func NodesCommitteeUpdate(nodes []*node.Node, conn *rpc.Client, bcnet *network.BlockchainNetwork)
- func NodesGetTask(nodes []*node.Node, bcnet *network.BlockchainNetwork)
- func ProcessBlock(bcnet *network.BlockchainNetwork, nodes []*node.Node, ...)
- func ProcessBlockPre(nodes []*node.Node, round int, conn *rpc.Client, ...)
- func ProcessCommittee(nodes []*node.Node, conn *rpc.Client, bcnet *network.BlockchainNetwork)
- func ProcessFL(workers []*client.Client, attackers []*client.Client, round int, ...)
- func ProcessNextRound(bcnet *network.BlockchainNetwork, nodes []*node.Node, conn *rpc.Client, ...)
- func SaveStakeMap(nodes []*node.Node, stakemap map[int]int)
- func TaskPublish(task network.TaskInfo, bcnet *network.BlockchainNetwork)
- func Test(model *python3.PyObject, globalModel *python3.PyObject, ...) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockPrint ¶
func NewTask ¶
func NewTask(model *python3.PyObject, unlabel *python3.PyObject, size [][]int, comp_size []int, globalParam [][]float64, momentum [][]float64, rank int, beta float64, slr float64) network.TaskInfo
New FL task
func NodesCommitteeUpdate ¶
Update the committee info from the blockchain network
func NodesGetTask ¶
func NodesGetTask(nodes []*node.Node, bcnet *network.BlockchainNetwork)
Nodes get task from network
func ProcessBlock ¶
func ProcessBlock(bcnet *network.BlockchainNetwork, nodes []*node.Node, testData *python3.PyObject, conn *rpc.Client)
Achieve the consensus via byzantine fault tolerance
func ProcessBlockPre ¶
func ProcessBlockPre(nodes []*node.Node, round int, conn *rpc.Client, bcnet *network.BlockchainNetwork)
Block preparation
func ProcessCommittee ¶
Constitute the committee
func ProcessNextRound ¶
func TaskPublish ¶
func TaskPublish(task network.TaskInfo, bcnet *network.BlockchainNetwork)
Task publish
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.