---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-14-2cda46f10bf6> in <module>()
----> 1 y_pred = rf.predict_proba(X_test)
c:\program files\anaconda2\lib\site-packages\sklearn\ensemble\forest.pyc in predict_proba(self, X)
581 delayed(parallel_helper)(e, 'predict_proba', X,
582 check_input=False)
--> 583 for e in self.estimators_)
584
585 # Reduce
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\parallel.pyc in __call__(self, iterable)
756 # was dispatched. In particular this covers the edge
757 # case of Parallel used with an exhausted iterator.
--> 758 while self.dispatch_one_batch(iterator):
759 self._iterating = True
760 else:
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\parallel.pyc in dispatch_one_batch(self, iterator)
606 return False
607 else:
--> 608 self._dispatch(tasks)
609 return True
610
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\parallel.pyc in _dispatch(self, batch)
569 dispatch_timestamp = time.time()
570 cb = BatchCompletionCallBack(dispatch_timestamp, len(batch), self)
--> 571 job = self._backend.apply_async(batch, callback=cb)
572 self._jobs.append(job)
573
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\_parallel_backends.pyc in apply_async(self, func, callback)
107 def apply_async(self, func, callback=None):
108 """Schedule a func to be run"""
--> 109 result = ImmediateResult(func)
110 if callback:
111 callback(result)
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\_parallel_backends.pyc in __init__(self, batch)
324 # Don't delay the application, to avoid keeping the input
325 # arguments in memory
--> 326 self.results = batch()
327
328 def get(self):
c:\program files\anaconda2\lib\site-packages\sklearn\externals\joblib\parallel.pyc in __call__(self)
129
130 def __call__(self):
--> 131 return [func(*args, **kwargs) for func, args, kwargs in self.items]
132
133 def __len__(self):
c:\program files\anaconda2\lib\site-packages\sklearn\utils\fixes.pyc in parallel_helper(obj, methodname, *args, **kwargs)
313 def parallel_helper(obj, methodname, *args, **kwargs):
314 """Helper to workaround Python 2 limitations of pickling instance methods"""
--> 315 return getattr(obj, methodname)(*args, **kwargs)
316
317
c:\program files\anaconda2\lib\site-packages\sklearn\tree\tree.pyc in predict_proba(self, X, check_input)
766 """
767 X = self._validate_X_predict(X, check_input)
--> 768 proba = self.tree_.predict(X)
769
770 if self.n_outputs_ == 1:
sklearn\tree\_tree.pyx in sklearn.tree._tree.Tree.predict (sklearn\tree\_tree.c:9416)()
sklearn\tree\_tree.pyx in sklearn.tree._tree.Tree.predict (sklearn\tree\_tree.c:9263)()
MemoryError: