From 0e082b3065d8c3bafbd82cbaf24d6efb85825b05 Mon Sep 17 00:00:00 2001 From: pepperpepperpepper Date: Tue, 8 Dec 2015 21:37:41 -0800 Subject: made progress in binaryclassifier rewrite, restructured file tree --- ricky/params/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ricky/params/__init__.py') 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 -- cgit v1.2.3-70-g09d2