summaryrefslogtreecommitdiff
path: root/ricky/params
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 21:37:41 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 21:37:41 -0800
commit0e082b3065d8c3bafbd82cbaf24d6efb85825b05 (patch)
tree60df92a77a6d298aed851315ffad80d4d1e937ef /ricky/params
parent518f5b63f5b61308a8d3df64eb9ff715bb3c0e2c (diff)
made progress in binaryclassifier rewrite, restructured file tree
Diffstat (limited to 'ricky/params')
-rw-r--r--ricky/params/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ricky/params/__init__.py b/ricky/params/__init__.py
index 80da6c8..da4562f 100644
--- a/ricky/params/__init__.py
+++ b/ricky/params/__init__.py
@@ -24,6 +24,8 @@ class Params(object):
"""string representation"""
return pprint.pformat(self.as_dict())
+ def __len__(self):
+ return len(self._params)
def _load_probabilities_json(self, probabilities_file=None):
if probabilities_file:
filepath = probabilities_file