Skip to content

Instantly share code, notes, and snippets.

View jni's full-sized avatar

Juan Nunez-Iglesias jni

View GitHub Profile
@jni
jni / Error.txt
Created July 9, 2012 20:43
Failure using @glouppe's cytomine scikit-learn RF shared memory implementation
In [7]: rf = RandomForestClassifier(100, max_depth=20, n_jobs=8, shared=True, compute_importances=True)
In [8]: rf = rf.fit(dat5[0], dat5[1][:, 0])
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/groups/chklovskii/home/nuneziglesiasj/data/cropped_5um3_larva_fib_10x10x10nm/cl2/<ipython-input-8-16d0d527a259> in <module>()
----> 1 rf = rf.fit(dat5[0], dat5[1][:, 0])
/groups/chklovskii/home/nuneziglesiasj/projects/scikit-learn-sharedmem/sklearn/ensemble/forest.pyc in fit(self, X, y)
273 # Pack inputs into shared-memory arrays
@jni
jni / ZError
Created July 9, 2012 20:36
Attempt to use joblib mmap failed
In [8]: rf = RandomForestClassifier(100, max_depth=20, n_jobs=2, shared=True, compute_importances=True)
In [9]: rf = rf.fit(dat5[0], dat5[1][:, 0])
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap([ 2.00000000e+00, 1.50000006e-02, 2.25000018e-04,
0.00000000e+00, 5.06250080e-08, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
9.54999954e-01, 1.22499975e-03, 1.11022302e-16,
1.50062439e-06, 3.00000003e-02, 4.00000019e-04,
-1.35525272e-20, 1.60000015e-07, 1.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,