dnn_predict

dnn_predict()
Parameters:
  • new_model – the tensorflow model loaded from “model.h5”.
  • a – contains a tensorflow glob of all the pulses in “pulses/”.
  • in1 – is the dscan for a single pulse.
  • in2 – is the other inputs for a single pulse.
  • o1 – is the output electric field for a single pulse.
  • extra_model – a tensorflow model for extracting the value of an arbitrary layer in new_model.
  • pred – is the prediction of the arbitrary layer.
  • new_predictions – is the prediction of the output given the inputs.

Predicts the phase from a given d-scan trace.