-
Notifications
You must be signed in to change notification settings - Fork 1
/
flexe.proto
97 lines (89 loc) · 3.11 KB
/
flexe.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
syntax = "proto3";
package flexe;
service Flexe {
//Client Functions
rpc fit (TTRequest) returns (ModelReply) {}
rpc evaluate (TTRequest) returns (ModelReply) {}
rpc update_model (TTRequest) returns (ModelReply) {}
rpc get_information (GenericRequest) returns (ModelReply) {}
rpc set_information (GenericRequest) returns (ModelReply) {}
rpc aggregate_client (TTRequest) returns (ModelReply) {}
rpc fit_all (TTRequest) returns (ModelReply) {}
rpc evaluate_all (TTRequest) returns (ModelReply) {}
rpc update_all (TTRequest) returns (ModelReply) {}
//Server Functions
rpc initialize_parameters (TTRequest) returns (ModelReply) {}
rpc aggregate_async_fit (AggregationRequest) returns (ModelReply) {}
rpc aggregate_sync_fit (AggregationRequest) returns (ModelReply) {}
rpc aggregate_evaluate (AggregationRequest) returns (ModelReply) {}
rpc set_strategy (GenericRequest) returns (GenericReply) {}
rpc get_strategy (GenericRequest) returns (GenericReply) {}
rpc center_fit (GenericRequest) returns (ModelReply) {}
rpc center_evaluate (GenericRequest) returns (ModelReply) {}
rpc end (GenericRequest) returns (GenericReply) {}
}
message TTRequest {
int32 idEntity = 1;
string model = 2;
string dataset = 3;
string scenario = 4;
int32 seed = 5;
bool nonIID = 6;
int32 idModel = 7;
bool trainFlag = 8;
int32 epochs = 9;
int32 batch = 10;
int32 numClients = 11;
double percentDataset = 12;
string models = 13;
string msg = 14;
}
message AggregationRequest {
int32 idEntity = 1;
string model = 2;
string dataset = 3;
string scenario = 4;
int32 seed = 5;
bool nonIID = 6;
int32 idModel = 7;
int32 numClients = 8;
string numExamples = 9;
string models = 10;
string strategy = 11;
string msg = 12;
}
message GenericRequest {
int32 idEntity = 1;
string model = 2;
string dataset = 3;
string scenario = 4;
int32 seed = 5;
bool nonIID = 6;
int32 idModel = 7;
string msg = 8;
}
message GenericReply {
int32 idEntity = 1;
string model = 2;
string dataset = 3;
string scenario = 4;
int32 seed = 5;
bool nonIID = 6;
int32 idModel = 7;
int32 reply = 8;
string msg = 9;
}
message ModelReply {
int32 idEntity = 1;
string model = 2;
string dataset = 3;
string scenario = 4;
int32 seed = 5;
bool nonIID = 6;
int32 idModel = 7;
int32 numExamples = 8;
double entropy = 9;
double loss = 10;
double accuracy = 11;
string msg = 12;
}