Open danijimmy19 opened 4 days ago
The inputs and outputs to every layer are in the X
and Y
members, so you should able to find the intermediate results at log.opt.layers[0].Y
.
For the timing, you can set log.opt.time_layers = True
. This will use the timer 100+i for the i-th layer, i.e., timer 100 will measure the time for the linear layer.
I trained the logistic regression model using the MP-SPDZ library's ml.GDLogistic() function. After loading the trained model using the following code:
After loading the model, I compute the accuracy of the model. However, I want to access the output of the Dense layer, which is the linear combination of inputs and weights (i.e.,
y=mx+c
). How can I get this linear output from the model and decrypt it?Meaning, How can I compute the time for the logistic regression function where only the
y=mx+c
is computed and discard the final prediction layer?Dense -> Sigmoid -> Output
How can I compute the time for only
Dense
layer here?Time(Dense) -> Sigmoid -> Output
This below snippet will compute the time for Dense -> Sigmoid -> Output