def calculate(self, batch_info):
value = self._value_function(batch_info['<STR_LIT:data>'], batch_info['<STR_LIT:target>'], batch_info['<STR_LIT>'])<EOL>self.storage.append(value)<EOL>
Calculate value of a metric