def weighted_sum(self):
    'Return the sum of each value times its feature_bin.'
    return np.inner(self._keys, self._values)
Return the sum of each value times its feature_bin.
def weighted_sum(self):
    
    return np.inner(self._keys, self._values)