code: function predict(face) {
        return getNet().computeFaceDescriptorAsync(face)
          .then(inputDescriptor =>
            getDescriptorsByClass().map(ds => ({
              className: ds.className,
              distance: computeMeanDistance(ds.faceDescriptors, inputDescriptor)
            }))
          )
      }
docs: /* get the prediction distances for all classes