Created
December 28, 2018 09:00
-
-
Save eponkratova/9a000c86b3315273cdd78ed5cb0eb00a to your computer and use it in GitHub Desktop.
initiating_dea_2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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