Skip to content
Snippets Groups Projects
Commit 086b9781 authored by Dennis Noll's avatar Dennis Noll
Browse files

[keras] removes old function definition

parent 172c7b02
No related branches found
No related tags found
No related merge requests found
......@@ -80,13 +80,6 @@ class KFeed(object):
def balance(self, src):
return src
def balance_weights(self, weights):
if isinstance(weights, SKDict):
sums = weights.map(np.sum)
ref = np.mean(list(sums.values()))
weights = weights.__class__({k: weights[k] * (ref / s) for k, s in sums.items()})
return weights
def kfeed(self, src, **kwargs):
src = src.only(*self.all)
bal = self.balance(src)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment