Skip to content

Instantly share code, notes, and snippets.

@eponkratova
Created December 28, 2018 09:00
Show Gist options
  • Save eponkratova/9a000c86b3315273cdd78ed5cb0eb00a to your computer and use it in GitHub Desktop.
Save eponkratova/9a000c86b3315273cdd78ed5cb0eb00a to your computer and use it in GitHub Desktop.
initiating_dea_2
def __efficiency(self, unit):
"""
Efficiency function with already computed weights
:param unit: which unit to compute for
:return: efficiency
"""
# compute efficiency
denominator = np.dot(self.inputs, self.input_w)
numerator = np.dot(self.outputs, self.output_w)
return (numerator/denominator)[unit]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment