mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.72k stars 1.32k forks source link

How to avoid memory allocation error of ICA? #3902

Closed lix90 closed 7 years ago

lix90 commented 7 years ago

Hi all,

These days I wanted to move from matlab (EEGLAB) to python (MNE), so I started to learn MNE several days ago. But I run into an error: can't allocate region over and over again when I run ICA (fastica) on both raw data and epoched data. I tried band-pass filtered at 1-40Hz and resampled at 100-250Hz, and I also set the parameter decim to 3 or 5.

This is the raw dataset when preloaded: n_channels x n_times : 64 x 792890 (1585.8 sec), ~387.3 MB, data loaded

My computer is a 2015 Macbook pro with 16GB RAM. I never came across this kind of memory error when I used EEGLAB's extended-infomax ICA with the same datasets both in windows or linux PC before. But I have not tried this on my Macbook. It's hard to imagine and confused me that it can consume so much memory (size=18446744073183428608).

I found that there is few information about the issue both in the MNE-Python website and in the email-archive. Any suggestion about avoiding such memory allocation error will be greatly appreciated.

Python(51320,0x7fff75f54000) malloc: *** mach_vm_map(size=18446744073183428608) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

Updates: The version of modules:


Updates:

Error disappeared in Anaconda with the lateat version of modules.

agramfort commented 7 years ago

what version of scikit-learn and mne do you use?

lix90 commented 7 years ago

mne: 0.13.1 sklearn: 0.18.1

agramfort commented 7 years ago

ok so it's recent.

did you try the decim parameter in ICA?

lix90 commented 7 years ago

Yeah, I tried decim, 3 or 5. It would work finely when the sample frequency was quite low and decim was not None. But I suspect the results of the decomposition. I consulted the documentation of MNE and I found that decimation is similar with resampling in my amteur eyes.

agramfort commented 7 years ago

I suspect your result will not be too much affected by decim

lix90 commented 7 years ago

Is it ok to have sample frequency below 100Hz and simultaneously set decim to 3 or 5 when run ICA to detect EOG/ECG artifacts? I am also confused with the decim parameter. Is there big difference between 3 or 5 of decimation? Because I saw 3 or 5 were frequently used in examples or researchers' scripts.

I will try more parameters and datasets.

agramfort commented 7 years ago

you need to try on your data.

but I am really surprised you need so much RAM. It should not make more than 3 copies of the data.

jmontoyam commented 7 years ago

Hi @lix90, This error is very strange, I have never encountered such an error before. In order to help you, I would like to try to reproduce this error, could you please share the file that you are trying to load, as well as a tiny script to reproduce the error message?

lix90 commented 7 years ago

Sure, tomorrow morning I will upload it (Because it's midnight in China :-) ). Thanks for the helps @agramfort @jmontoyam

There are two types of dataset: one is the raw eeglab dataset merged from 5 seperate datasets (Old); the other is the raw brainvision dataset (New). Both are from an experiment of emotion regulation.

lix90 commented 7 years ago

@jmontoyam The data and codes are uploaded there

I tried this on jupyter notebook and ipython in emacs. Both resulted in such memory allocation error. You can change sample frequency, reject threshold, decimation, and filter parameters. It is really strange that the size allocated seems similar (for example, size=18446744066833018880 yesterday; size=18446744073183428608 today). strange 184467440**** :(

agramfort commented 7 years ago

your code worked smoothly on my laptop with 8GB of RAM and maybe other apps open.

I used "1canyu_merge.set"

jmontoyam commented 7 years ago

Hi @lix90,

I have tried to reproduce your error message, but in my machine (Linux x64 with 16GB of RAM) your code works perfectly. I used "s3-er.vhdr" and "1canyu_merge.set", and in both cases everything worked smoothly. I'm using Python, as well as all the scientific Python packages available in Anaconda, what about you?

lix90 commented 7 years ago

Oh, that's weired. I just use Python2.7 which is installed by Homebrew. All modules were installed by pip. The error is real but not that stable, because “the threshold” of parameters causing this error would change next time. And I use python in terminal (iterm), python shell in Emacs, and jupyter notebook as well. It is really weired. Maybe there is something wrong with my configuration. I don't know. But the error with such strange size is unusual.

Did you @agramfort @jmontoyam change sfreq, or decim, or other parameters? Raw data with sfreq=250Hz and decim=3 consistently end up with such error.

I will try close any other apps when run this script.

lix90 commented 7 years ago

Below is the error message:

Process:               Python [66268]
Path:                  /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               2.7.12 (2.7.12)
Code Type:             X86-64 (Native)
Parent Process:        bash [65799]
Responsible:           iTerm2 [63216]
User ID:               502

Date/Time:             2017-01-15 00:14:43.232 +0800
OS Version:            Mac OS X 10.11.5 (15F34)
Report Version:        11
Anonymous UUID:        269DBE64-809E-BB92-5C38-40A1FB6EBC42

Sleep/Wake UUID:       8C7B7668-095C-4636-9826-045A95DA0D96

Time Awake Since Boot: 400000 seconds
Time Since Wake:       4300 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 00000001062d3000-00000001062d5000 [    8K] r-x/rwx SM=COW  /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libBLAS.dylib                   0x00007fff904ee625 dgePack_A_NoTran_AVX2 + 121
1   libLAPACK.dylib                 0x00007fff8b960ea4 dgetrf_FactorColumn + 1106
2   libLAPACK.dylib                 0x00007fff8b96154b DGETRF + 1195
3   _flinalg.so                     0x00000001078092de dlu_c_ + 142
4   _flinalg.so                     0x0000000107804274 f2py_rout__flinalg_dlu_c + 868
5   org.python.python               0x00000001062e59b4 PyObject_Call + 99
6   org.python.python               0x0000000106364e30 PyEval_EvalFrameEx + 26668
7   org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
8   org.python.python               0x0000000106368c9e fast_function + 117
9   org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
10  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
11  org.python.python               0x0000000106368c9e fast_function + 117
12  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
13  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
14  org.python.python               0x0000000106368c9e fast_function + 117
15  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
16  org.python.python               0x0000000106368d31 fast_function + 264
17  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
18  org.python.python               0x0000000106368d31 fast_function + 264
19  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
20  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
21  org.python.python               0x0000000106368c9e fast_function + 117
22  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
23  org.python.python               0x0000000106368d31 fast_function + 264
24  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
25  org.python.python               0x0000000106368d31 fast_function + 264
26  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
27  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
28  org.python.python               0x0000000106303b87 function_call + 350
29  org.python.python               0x00000001062e59b4 PyObject_Call + 99
30  org.python.python               0x0000000106365697 PyEval_EvalFrameEx + 28819
31  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
32  org.python.python               0x0000000106368c9e fast_function + 117
33  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
34  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
35  org.python.python               0x0000000106368c9e fast_function + 117
36  org.python.python               0x0000000106364f09 PyEval_EvalFrameEx + 26885
37  org.python.python               0x000000010635e40e PyEval_EvalCodeEx + 1617
38  org.python.python               0x000000010635ddb7 PyEval_EvalCode + 48
39  org.python.python               0x000000010638183c run_mod + 53
40  org.python.python               0x00000001063818df PyRun_FileExFlags + 133
41  org.python.python               0x0000000106381430 PyRun_SimpleFileExFlags + 702
42  org.python.python               0x0000000106392d9e Py_Main + 3094
43  libdyld.dylib                   0x00007fff93a7d5ad start + 1

Thread 1:
0   libsystem_kernel.dylib          0x00007fff9a4cb5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff875dd578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib          0x00007fff9a4cb5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff875dd578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 3:: Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib          0x00007fff9a4c4fae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8a8b0cb2 _dispatch_semaphore_wait_slow + 224
2   libLAPACK.dylib                 0x00007fff8b960c2a dgetrf_FactorColumn + 472
3   libdispatch.dylib               0x00007fff8a8a540b _dispatch_client_callout + 8
4   libdispatch.dylib               0x00007fff8a8a929b _dispatch_root_queue_drain + 1890
5   libdispatch.dylib               0x00007fff8a8a8b00 _dispatch_worker_thread3 + 91
6   libsystem_pthread.dylib         0x00007fff875dd4de _pthread_wqthread + 1129
7   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 4:: Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib          0x00007fff9a4c4fae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8a8b0cb2 _dispatch_semaphore_wait_slow + 224
2   libLAPACK.dylib                 0x00007fff8b960c2a dgetrf_FactorColumn + 472
3   libdispatch.dylib               0x00007fff8a8a540b _dispatch_client_callout + 8
4   libdispatch.dylib               0x00007fff8a8a929b _dispatch_root_queue_drain + 1890
5   libdispatch.dylib               0x00007fff8a8a8b00 _dispatch_worker_thread3 + 91
6   libsystem_pthread.dylib         0x00007fff875dd4de _pthread_wqthread + 1129
7   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 5:: Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib          0x00007fff9a4c4fae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8a8b0cb2 _dispatch_semaphore_wait_slow + 224
2   libLAPACK.dylib                 0x00007fff8b960c2a dgetrf_FactorColumn + 472
3   libdispatch.dylib               0x00007fff8a8a540b _dispatch_client_callout + 8
4   libdispatch.dylib               0x00007fff8a8a929b _dispatch_root_queue_drain + 1890
5   libdispatch.dylib               0x00007fff8a8a8b00 _dispatch_worker_thread3 + 91
6   libsystem_pthread.dylib         0x00007fff875dd4de _pthread_wqthread + 1129
7   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 6:: Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib          0x00007fff9a4c4fae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8a8b0cb2 _dispatch_semaphore_wait_slow + 224
2   libLAPACK.dylib                 0x00007fff8b960c2a dgetrf_FactorColumn + 472
3   libdispatch.dylib               0x00007fff8a8a540b _dispatch_client_callout + 8
4   libdispatch.dylib               0x00007fff8a8a929b _dispatch_root_queue_drain + 1890
5   libdispatch.dylib               0x00007fff8a8a8b00 _dispatch_worker_thread3 + 91
6   libsystem_pthread.dylib         0x00007fff875dd4de _pthread_wqthread + 1129
7   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 7:: Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib          0x00007fff9a4c4fae semaphore_wait_trap + 10
1   libdispatch.dylib               0x00007fff8a8b0cb2 _dispatch_semaphore_wait_slow + 224
2   libLAPACK.dylib                 0x00007fff8b960c2a dgetrf_FactorColumn + 472
3   libdispatch.dylib               0x00007fff8a8a540b _dispatch_client_callout + 8
4   libdispatch.dylib               0x00007fff8a8a929b _dispatch_root_queue_drain + 1890
5   libdispatch.dylib               0x00007fff8a8a8b00 _dispatch_worker_thread3 + 91
6   libsystem_pthread.dylib         0x00007fff875dd4de _pthread_wqthread + 1129
7   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 8:
0   libsystem_kernel.dylib          0x00007fff9a4cb5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff875dd578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 9:
0   libsystem_kernel.dylib          0x00007fff9a4cb5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff875dd578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff875db341 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000040  rbx: 0x0000000130edc060  rcx: 0x000000000001ab49  rdx: 0x0000000000000000
  rdi: 0x000000000001ab3d  rsi: 0x000000000000000c  rbp: 0x00007fff5992a350  rsp: 0x00007fff5992a328
   r8: 0x0000000000000000   r9: 0x0000000130edc060  r10: 0x000000000000000b  r11: 0x0000000000000040
  r12: 0x000000000001ab38  r13: 0x0000000000000480  r14: 0x0000000000000005  r15: 0x0000000000000000
  rip: 0x00007fff904ee625  rfl: 0x0000000000010246  cr2: 0x0000000000000000

Logical CPU:     4
Error Code:      0x00000006
Trap Number:     14

Binary Images:
       0x1062d3000 -        0x1062d4fff +org.python.python (2.7.12 - 2.7.12) <90F2CB2F-F374-3FAB-9EEA-BA416C2D34FC> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x1062db000 -        0x1063d0ff7 +org.python.python (2.7.12, [c] 2001-2016 Python Software Foundation. - 2.7.12) <F5D1C076-BE07-3D14-A39C-24A7C7D42F79> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/Python
       0x106690000 -        0x10669fff7  libSimplifiedChineseConverter.dylib (68) <DCFEA0D3-593E-3E5C-B311-53B8ACF8A318> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
       0x106764000 -        0x106765ff3 +_check_build.so (0) <B1952B0E-8862-3F0C-83C1-40BB2F513335> /usr/local/lib/python2.7/site-packages/sklearn/__check_build/_check_build.so
       0x106769000 -        0x106778ff3 +murmurhash.so (0) <FEC68D16-9872-36B6-A3BE-D4B48694DCBE> /usr/local/lib/python2.7/site-packages/sklearn/utils/murmurhash.so
       0x106782000 -        0x106786fff +bz2.so (0) <AFAE8DD0-2034-36C1-8EA3-E3C378497D09> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/bz2.so
       0x10678b000 -        0x10678cfff +lgamma.so (0) <664D83D2-1C91-3F80-A438-2499E0CEB915> /usr/local/lib/python2.7/site-packages/sklearn/utils/lgamma.so
       0x106815000 -        0x106817fff +_locale.so (0) <DEAD0177-587C-32C8-84F2-E68A84F2F832> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x10685a000 -        0x10685dfff +strop.so (0) <4B9D4E02-2EDD-326A-AF78-A9F9776812C9> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x1068a1000 -        0x1068a2fff +_functools.so (0) <C5DB3A72-B390-3022-AD8E-5F11D6EA94E5> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
       0x1068a5000 -        0x1068acff7 +_socket.so (0) <6DDEE0D7-A679-33C3-8C03-038AA48D0B19> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
       0x1068b6000 -        0x1068c0ffb +_ssl.so (0) <A985291E-5CC2-3CFD-B228-337415827524> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
       0x1068ca000 -        0x106909ff7 +libssl.1.0.0.dylib (0) <E53E5937-3FD6-3678-B8FC-7B00E4432765> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
       0x106926000 -        0x106a98af7 +libcrypto.1.0.0.dylib (0) <B456196C-5315-37C6-93FA-FF73E85AA50B> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
       0x106b10000 -        0x106b11fff +cStringIO.so (0) <7E01FF4A-A74F-3F1A-BC34-034E8F089CC1> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x106b56000 -        0x106b59ff7 +_collections.so (0) <95E8A60A-8F13-3399-9168-81925D2F8C10> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x106b5e000 -        0x106b61fff +operator.so (0) <FC5C200C-D48F-3747-BCAB-E699ED6F2ACC> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x106b67000 -        0x106b6cfff +itertools.so (0) <D847BEF1-8780-3E4B-91A5-33C06B754F14> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x106b75000 -        0x106b76fff +_heapq.so (0) <413AD175-0A67-366A-8DAC-84B1738E5F42> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x106b7a000 -        0x106b7dffb +_struct.so (0) <75E52B6E-DBF1-3769-A4E6-BCB591C04B5E> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x106b83000 -        0x106b86ff3 +binascii.so (0) <4D5AC891-3724-3AB7-B0BE-2F496DF2B27E> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x106bc9000 -        0x106bcbfff +_hashlib.so (0) <46BC2215-1F0B-30E9-A6FF-0EEF584AA3A6> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x106c7a000 -        0x106c7efff +array.so (0) <3942FB9C-7E0A-3590-9DFD-85E8537DAE65> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
       0x106c84000 -        0x106c89ff3 +arrayfuncs.so (0) <0C018AF1-9BC5-3749-A87C-77C406D8DA61> /usr/local/lib/python2.7/site-packages/sklearn/utils/arrayfuncs.so
       0x106ccf000 -        0x106cd3ffb +_json.so (0) <AFE64861-5429-3559-9EFF-FD9C55CF41AD> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
       0x106cd7000 -        0x106cd8ffb +time.so (0) <84A0C10D-EE6A-334E-BE13-70C43BCFA4D4> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x106d1e000 -        0x106d21ff7 +math.so (0) <A6E1DF5B-B7B3-3B73-ACBF-390BE89AF797> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x106d26000 -        0x106d27fff +grp.so (0) <9323827B-4E2C-30D4-911B-49F1EB9898D3> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
       0x106d2a000 -        0x106d2cffb +select.so (0) <F5B8B0E3-B5EA-3DAA-BDD9-4D8F403FDFCE> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
       0x106d31000 -        0x106d32fff +fcntl.so (0) <99651573-8638-3D43-9BE0-E2212B527CA1> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x106d75000 -        0x106d84ffb +_io.so (0) <2AB6E6CF-3379-3B44-B058-41813B067BA5> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
       0x106d96000 -        0x106d97ffb +_random.so (0) <9E793BCD-DC42-3338-9357-4B1FE451941B> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x106dda000 -        0x106f28fff +multiarray.so (???) <402864BC-33AF-3F31-B2AB-67EA585DAC8F> /usr/local/lib/python2.7/site-packages/numpy/core/multiarray.so
       0x106fe6000 -        0x106fefff3 +datetime.so (0) <1117746C-F492-3728-994F-B8FD72D8A3A7> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x106ff8000 -        0x107077ff7 +umath.so (???) <3F6636F0-CC46-3409-A3B1-C0BC8819287D> /usr/local/lib/python2.7/site-packages/numpy/core/umath.so
       0x1070f2000 -        0x107101fff +_ctypes.so (0) <ED25A966-4C64-330C-8FD5-753787E52616> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
       0x10714d000 -        0x107158fff +cPickle.so (0) <73A7DA47-37FC-323B-ADF1-5145243DBF02> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
       0x10725e000 -        0x10725fff7 +lapack_lite.so (???) <33F64EB9-2EB4-3AD6-90DC-A5F506297E71> /usr/local/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
       0x107263000 -        0x107278fff +_umath_linalg.so (???) <3B6ADDA1-7C12-3092-838B-16A50991ADB5> /usr/local/lib/python2.7/site-packages/numpy/linalg/_umath_linalg.so
       0x1072c6000 -        0x1072c6fff +future_builtins.so (0) <8B55F8A7-A0AE-386F-9C79-1B3C2F86BA17> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/future_builtins.so
       0x1072c9000 -        0x1072d1ff7 +fftpack_lite.so (???) <A5A027DC-3BEE-308D-8A5F-21845DF25232> /usr/local/lib/python2.7/site-packages/numpy/fft/fftpack_lite.so
       0x107315000 -        0x1073adfff +mtrand.so (???) <3BC0694E-88E5-335D-854F-7B1B1F7B2B99> /usr/local/lib/python2.7/site-packages/numpy/random/mtrand.so
       0x1074a4000 -        0x1074ddff7 +_fblas.so (???) <947E1782-03B4-3E5B-BA5A-332CBC5DE281> /usr/local/lib/python2.7/site-packages/scipy/linalg/_fblas.so
       0x107502000 -        0x107619ff7 +libgfortran.3.dylib (0) <9ABE5EDE-AD43-391A-9E54-866711FAC32A> /usr/local/lib/python2.7/site-packages/scipy/.dylibs/libgfortran.3.dylib
       0x10767d000 -        0x107692ff7 +libgcc_s.1.dylib (0) <7C6D7CB7-82DB-3290-8181-07646FEA1F80> /usr/local/lib/python2.7/site-packages/scipy/.dylibs/libgcc_s.1.dylib
       0x10769d000 -        0x1076d3fff +libquadmath.0.dylib (0) <7FFA409F-FB04-3B64-BE9A-3E3A494C975E> /usr/local/lib/python2.7/site-packages/scipy/.dylibs/libquadmath.0.dylib
       0x1076e2000 -        0x10776bfff +_flapack.so (???) <E8839C0F-E886-3E13-826F-D2188EC6875E> /usr/local/lib/python2.7/site-packages/scipy/linalg/_flapack.so
       0x107802000 -        0x10780eff7 +_flinalg.so (???) <30DA9FF1-328C-3987-84E0-E1A86C5719A3> /usr/local/lib/python2.7/site-packages/scipy/linalg/_flinalg.so
       0x107815000 -        0x10783cff7 +_solve_toeplitz.so (???) <D3AE17D9-DEC7-35EE-93A2-98787DFD1F2D> /usr/local/lib/python2.7/site-packages/scipy/linalg/_solve_toeplitz.so
       0x10784f000 -        0x107889fff +_decomp_update.so (???) <9DD77DEE-1B96-352F-B2E9-967851DBF3BF> /usr/local/lib/python2.7/site-packages/scipy/linalg/_decomp_update.so
       0x10789e000 -        0x1078c8ff7 +cython_blas.so (???) <154012BA-BD76-36FD-9D4D-EA4E0C055391> /usr/local/lib/python2.7/site-packages/scipy/linalg/cython_blas.so
       0x1078e2000 -        0x10795bff7 +cython_lapack.so (???) <94E66EF8-71B1-3CE4-82B5-39A4DE188910> /usr/local/lib/python2.7/site-packages/scipy/linalg/cython_lapack.so
       0x1079eb000 -        0x107c8aff7 +_sparsetools.so (???) <91B58FAD-60F4-35F5-9606-FD818AA8DAF3> /usr/local/lib/python2.7/site-packages/scipy/sparse/_sparsetools.so
       0x107db5000 -        0x107e20fff +_csparsetools.so (???) <24CA2370-2CD8-3006-ACBE-109A430724DC> /usr/local/lib/python2.7/site-packages/scipy/sparse/_csparsetools.so
       0x107e3c000 -        0x107e72ff7 +_shortest_path.so (???) <8DDC72B1-4115-3B3D-B674-7EA9AAB06BCD> /usr/local/lib/python2.7/site-packages/scipy/sparse/csgraph/_shortest_path.so
       0x107e83000 -        0x107ea0fff +_tools.so (???) <BA10A092-8B59-3EDE-A53C-5091EE7CF6C9> /usr/local/lib/python2.7/site-packages/scipy/sparse/csgraph/_tools.so
       0x107ead000 -        0x107ecbfff +_traversal.so (???) <26915E23-3E04-314B-861A-87F42ABD220D> /usr/local/lib/python2.7/site-packages/scipy/sparse/csgraph/_traversal.so
       0x107f17000 -        0x107f34ff7 +_min_spanning_tree.so (???) <A0D1F38F-C930-3B12-9BD9-C75DB26F53A2> /usr/local/lib/python2.7/site-packages/scipy/sparse/csgraph/_min_spanning_tree.so
       0x107f45000 -        0x107f7ffff +_reordering.so (???) <87C26FC4-E528-3BEB-8362-80D4B819D1B2> /usr/local/lib/python2.7/site-packages/scipy/sparse/csgraph/_reordering.so
       0x108016000 -        0x108017fff +_scproxy.so (0) <6E4F2F02-18CE-369A-AAAB-866A2BC7C0EA> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
       0x10805a000 -        0x10805dfff +zlib.so (0) <E133C6D1-34C1-3E64-9E88-68235E0BB171> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
       0x108161000 -        0x1081e6fff +_fftpack.so (???) <CFBAC8E9-5384-3C13-8DE2-8C1344484EC2> /usr/local/lib/python2.7/site-packages/scipy/fftpack/_fftpack.so
       0x1081f7000 -        0x108213ff7 +convolve.so (???) <CBECBFC3-478C-320B-A69C-F5496BDEA9E6> /usr/local/lib/python2.7/site-packages/scipy/fftpack/convolve.so
       0x10821a000 -        0x10821afff +_bisect.so (0) <DC55606B-E5EA-35B5-91E8-5A017FB7AA04> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
       0x10891d000 -        0x108a83fe7 +_ufuncs.so (???) <5544E221-B5FC-348F-9526-8ABACBEB9A72> /usr/local/lib/python2.7/site-packages/scipy/special/_ufuncs.so
       0x108adf000 -        0x108af0ff7 +_ufuncs_cxx.so (???) <F24D9119-EB9C-396B-BD73-A77D6618727A> /usr/local/lib/python2.7/site-packages/scipy/special/_ufuncs_cxx.so
       0x108afc000 -        0x108bcbfef +specfun.so (???) <50D4C942-C3F0-39FE-ADF4-F4F722B649D1> /usr/local/lib/python2.7/site-packages/scipy/special/specfun.so
       0x108bdc000 -        0x108bdfff7 +_comb.so (???) <BB29E23B-AD20-358E-8477-CCCC2E0772F1> /usr/local/lib/python2.7/site-packages/scipy/special/_comb.so
       0x108be4000 -        0x108bf1ff7 +_ellip_harm_2.so (???) <A00EADCD-EA67-3DD4-803B-4E800A39EC79> /usr/local/lib/python2.7/site-packages/scipy/special/_ellip_harm_2.so
       0x108c3a000 -        0x108c64fef +_odepack.so (???) <A0E65578-4B1E-3250-ADF4-47114C0CC68B> /usr/local/lib/python2.7/site-packages/scipy/integrate/_odepack.so
       0x108c68000 -        0x108c81fdf +_quadpack.so (???) <8EB57791-170D-32DD-8152-41B5838BFD69> /usr/local/lib/python2.7/site-packages/scipy/integrate/_quadpack.so
       0x108c85000 -        0x108cbbff7 +vode.so (???) <2363C3F4-7CBE-3D22-A425-D005909E4E82> /usr/local/lib/python2.7/site-packages/scipy/integrate/vode.so
       0x108cc2000 -        0x108cd9fff +_dop.so (???) <F740EC4B-D0BC-3528-BED9-FE5BCAD77E9A> /usr/local/lib/python2.7/site-packages/scipy/integrate/_dop.so
       0x108cdf000 -        0x108d0cfd7 +lsoda.so (???) <4856F518-7877-37C5-B722-938B24FAC92A> /usr/local/lib/python2.7/site-packages/scipy/integrate/lsoda.so
       0x108d13000 -        0x108d43ff7 +_iterative.so (???) <3FCE15E2-2216-3496-825B-11868F8A609F> /usr/local/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/_iterative.so
       0x108d98000 -        0x108de2ff7 +_superlu.so (???) <E75458B4-3B95-3C59-B181-677E75E88D4F> /usr/local/lib/python2.7/site-packages/scipy/sparse/linalg/dsolve/_superlu.so
       0x108df8000 -        0x108e7ffff +_arpack.so (???) <7038AA8C-E3B9-3F26-B98C-CDF9DB6A3A1C> /usr/local/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack/_arpack.so
       0x108ed7000 -        0x108edefff +minpack2.so (???) <37029149-F8CC-321B-A3B3-7432B9085114> /usr/local/lib/python2.7/site-packages/scipy/optimize/minpack2.so
       0x108ee3000 -        0x108effff7 +_lbfgsb.so (???) <997697FF-65FE-3E5C-96B0-D79AEBC18068> /usr/local/lib/python2.7/site-packages/scipy/optimize/_lbfgsb.so
       0x108f04000 -        0x108f0cfff +moduleTNC.so (???) <AB4FD96A-04A9-3AE6-BF9D-99EA8BD7FD91> /usr/local/lib/python2.7/site-packages/scipy/optimize/moduleTNC.so
       0x108f0f000 -        0x108f2bfff +_cobyla.so (???) <CFA30521-2A26-3ECC-AFD1-53688E88E6E6> /usr/local/lib/python2.7/site-packages/scipy/optimize/_cobyla.so
       0x108f30000 -        0x108f49ff7 +_slsqp.so (???) <0D80D5E4-D4B1-3D98-BBEA-093D9AD1D743> /usr/local/lib/python2.7/site-packages/scipy/optimize/_slsqp.so
       0x108f4e000 -        0x108f6bfef +_minpack.so (???) <58444665-6596-39CC-9C76-32B73C60C6D1> /usr/local/lib/python2.7/site-packages/scipy/optimize/_minpack.so
       0x108faf000 -        0x108fcdfff +_group_columns.so (???) <22754D84-027A-34FF-8E86-BAE1E72F5C5D> /usr/local/lib/python2.7/site-packages/scipy/optimize/_group_columns.so
       0x108fdc000 -        0x108ff2fff +givens_elimination.so (???) <4AB642E6-5C42-3B9C-B526-6BE0EC6541BA> /usr/local/lib/python2.7/site-packages/scipy/optimize/_lsq/givens_elimination.so
       0x109001000 -        0x109002ff7 +_zeros.so (???) <BCB98C7A-A580-3E25-B61F-ED464E614149> /usr/local/lib/python2.7/site-packages/scipy/optimize/_zeros.so
       0x109005000 -        0x10900dff7 +_nnls.so (???) <3E9E93D4-2B46-3961-AC8F-EBE4BAA126CB> /usr/local/lib/python2.7/site-packages/scipy/optimize/_nnls.so
       0x109051000 -        0x109097fff +_imaging.so (???) <177B23A8-CD49-3F97-B3A5-F1B1CC2E312E> /usr/local/lib/python2.7/site-packages/PIL/_imaging.so
       0x1090bb000 -        0x10910ffff +libjpeg.9.dylib (0) <BA770796-0D47-3664-892D-316ED536600E> /usr/local/lib/python2.7/site-packages/PIL/.dylibs/libjpeg.9.dylib
       0x109117000 -        0x10915dff7 +libopenjp2.2.1.0.dylib (0) <60F449FD-6D0F-365B-8F45-EFE18DB51577> /usr/local/lib/python2.7/site-packages/PIL/.dylibs/libopenjp2.2.1.0.dylib
       0x109167000 -        0x109182ff7 +libz.1.2.8.dylib (0) <A2F307C8-A43E-3634-B74F-E7F19802436E> /usr/local/lib/python2.7/site-packages/PIL/.dylibs/libz.1.2.8.dylib
       0x109186000 -        0x109212fff +libtiff.5.dylib (0) <F4219AD9-EF82-39B4-8FF6-ECB33C0DD834> /usr/local/lib/python2.7/site-packages/PIL/.dylibs/libtiff.5.dylib
       0x109223000 -        0x109252ff7 +liblzma.5.dylib (0) <83760B15-BF90-32AF-AE18-90C23DB0CA8A> /usr/local/lib/python2.7/site-packages/PIL/.dylibs/liblzma.5.dylib
       0x109299000 -        0x10929dfff +mio_utils.so (???) <FA888406-B7E2-3E57-B1DC-5B266509D1D1> /usr/local/lib/python2.7/site-packages/scipy/io/matlab/mio_utils.so
       0x1092a3000 -        0x1092c4ff7 +mio5_utils.so (???) <76DC2DFF-81E5-3A94-BC3C-DE9B08D260B5> /usr/local/lib/python2.7/site-packages/scipy/io/matlab/mio5_utils.so
       0x1092d5000 -        0x1092e2ff7 +streams.so (???) <22104BF9-9E0C-35F5-A045-0D53F69D67C6> /usr/local/lib/python2.7/site-packages/scipy/io/matlab/streams.so
       0x1092ed000 -        0x1092effff +mmap.so (0) <FA4D8B5C-A9D4-3BB9-967C-5B12273EA726> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/mmap.so
       0x109b9d000 -        0x109bb4fff +cdnmf_fast.so (0) <EE8214F1-E52C-35B7-BC57-838A14F2E62D> /usr/local/lib/python2.7/site-packages/sklearn/decomposition/cdnmf_fast.so
       0x109bc2000 -        0x109bc4ffb +typedefs.so (0) <E82A60B5-FE07-38BD-8E76-AADE5FAE7D18> /usr/local/lib/python2.7/site-packages/sklearn/neighbors/typedefs.so
       0x10a0b7000 -        0x10a0bffff +_logistic_sigmoid.so (0) <D11D40AA-2AE0-35AB-95E5-54603BD81D11> /usr/local/lib/python2.7/site-packages/sklearn/utils/_logistic_sigmoid.so
       0x10a0c5000 -        0x10a129fff +sparsefuncs_fast.so (0) <69FD552D-FC52-3362-9400-55E4E12A538D> /usr/local/lib/python2.7/site-packages/sklearn/utils/sparsefuncs_fast.so
       0x10a1c4000 -        0x10a1dbffb +expected_mutual_info_fast.so (0) <9823D3DF-6255-32C0-8C76-7524C375DB67> /usr/local/lib/python2.7/site-packages/sklearn/metrics/cluster/expected_mutual_info_fast.so
       0x10a1e4000 -        0x10a20dffb +pairwise_fast.so (0) <7F36E040-85BA-353A-BC22-A83846F54387> /usr/local/lib/python2.7/site-packages/sklearn/metrics/pairwise_fast.so
       0x10a221000 -        0x10a230ff7 +seq_dataset.so (0) <120D10EC-1B5D-3BDC-ABEF-805AD0156CE5> /usr/local/lib/python2.7/site-packages/sklearn/utils/seq_dataset.so
       0x10a279000 -        0x10a288ffb +_random.so (0) <AAD754A2-F534-3317-A9DE-A8F012E1FE33> /usr/local/lib/python2.7/site-packages/sklearn/utils/_random.so
       0x10a312000 -        0x10a35dff7 +cd_fast.so (0) <B191D1B9-7886-333E-87EA-9A4F597C00A4> /usr/local/lib/python2.7/site-packages/sklearn/linear_model/cd_fast.so
       0x10a376000 -        0x10a390ff3 +sgd_fast.so (0) <0DEC7529-4A75-3F59-A076-33067E745155> /usr/local/lib/python2.7/site-packages/sklearn/linear_model/sgd_fast.so
       0x10a3a3000 -        0x10a3acff7 +weight_vector.so (0) <C2FB85CB-BEAB-3744-8525-B7B7AC7CF33F> /usr/local/lib/python2.7/site-packages/sklearn/utils/weight_vector.so
       0x10a3f3000 -        0x10a457fff +ball_tree.so (0) <4A2485C2-77D1-3B72-8484-6143610E0153> /usr/local/lib/python2.7/site-packages/sklearn/neighbors/ball_tree.so
       0x10a479000 -        0x10a4adff7 +dist_metrics.so (0) <66F49294-AE03-3DB2-B06D-9B4AF3A17179> /usr/local/lib/python2.7/site-packages/sklearn/neighbors/dist_metrics.so
       0x10a4ce000 -        0x10a52fff7 +kd_tree.so (0) <C704FFB8-3D7D-3C1E-B4C6-5018891E8A33> /usr/local/lib/python2.7/site-packages/sklearn/neighbors/kd_tree.so
       0x10a590000 -        0x10a5a3fff +sag_fast.so (0) <DD95CB76-1CC3-3087-AF18-3975A01107BA> /usr/local/lib/python2.7/site-packages/sklearn/linear_model/sag_fast.so
       0x10a5ae000 -        0x10a5c7fff +liblinear.so (0) <FE345894-1DA1-3E7E-A14A-B8669BB8DFB9> /usr/local/lib/python2.7/site-packages/sklearn/svm/liblinear.so
       0x10a615000 -        0x10a624ff7 +sigtools.so (???) <031EABB5-A81E-333A-8CCC-E4EBE08B9B70> /usr/local/lib/python2.7/site-packages/scipy/signal/sigtools.so
       0x10a62a000 -        0x10a644ff7 +_max_len_seq_inner.so (???) <56B17EDD-9F31-3618-BB42-1E11F9818B9C> /usr/local/lib/python2.7/site-packages/scipy/signal/_max_len_seq_inner.so
       0x10a653000 -        0x10a676ff7 +_upfirdn_apply.so (???) <0D268B5C-5444-3986-B561-5076857D4547> /usr/local/lib/python2.7/site-packages/scipy/signal/_upfirdn_apply.so
       0x10a689000 -        0x10a68fff7 +spline.so (???) <3704441F-6900-3362-8B01-64F9E900DA79> /usr/local/lib/python2.7/site-packages/scipy/signal/spline.so
       0x10a6d4000 -        0x10a708fff +_fitpack.so (???) <7E44CFD4-4A8B-3139-9FC1-72402483D765> /usr/local/lib/python2.7/site-packages/scipy/interpolate/_fitpack.so
       0x10a70c000 -        0x10a769ff7 +dfitpack.so (???) <6132026D-E432-3776-9245-3B2F806B9331> /usr/local/lib/python2.7/site-packages/scipy/interpolate/dfitpack.so
       0x10a776000 -        0x10a7baff7 +_ppoly.so (???) <20CA3F26-CC30-37D2-9532-0E643D12D76F> /usr/local/lib/python2.7/site-packages/scipy/interpolate/_ppoly.so
       0x10a814000 -        0x10a853ff7 +interpnd.so (???) <84E729AE-2831-334E-AB5F-AA865AC77792> /usr/local/lib/python2.7/site-packages/scipy/interpolate/interpnd.so
       0x10a86e000 -        0x10a8e2ff7 +ckdtree.so (???) <C30FDCE2-1D06-33B4-A8EB-0219A437FC80> /usr/local/lib/python2.7/site-packages/scipy/spatial/ckdtree.so
       0x10a904000 -        0x10a907fff +_multiprocessing.so (0) <2E40B4DF-0C9D-3944-B2E5-68C7DC3904A9> /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
       0x10a90b000 -        0x10a9c9ff7 +qhull.so (???) <C6290BCC-FC1E-37ED-8F0C-C0F78667A88A> /usr/local/lib/python2.7/site-packages/scipy/spatial/qhull.so
       0x10a9fb000 -        0x10aa05ff7 +_distance_wrap.so (???) <D4465906-7B98-39DC-9F5B-99DA740CF9AD> /usr/local/lib/python2.7/site-packages/scipy/spatial/_distance_wrap.so
       0x10aa8e000 -        0x10aaa8ff7 +_nd_image.so (???) <A9C4AF8C-D2E1-3F69-AC9B-49133C548C66> /usr/local/lib/python2.7/site-packages/scipy/ndimage/_nd_image.so
       0x10aaae000 -        0x10aaf0fff +_ni_label.so (???) <D767AC38-9C1A-3224-AB74-B7ACD5B053C3> /usr/local/lib/python2.7/site-packages/scipy/ndimage/_ni_label.so
       0x10ab08000 -        0x10ab11fff +_spectral.so (???) <FF9492B3-F054-38C7-B2FA-D280D03931A8> /usr/local/lib/python2.7/site-packages/scipy/signal/_spectral.so
       0x10abd8000 -        0x10abf7ff7 +_stats.so (???) <BB45FE40-E89D-3C3A-8C0A-7C3086EE42CF> /usr/local/lib/python2.7/site-packages/scipy/stats/_stats.so
       0x10ad47000 -        0x10ad53fff +statlib.so (???) <1FDF6AD2-1A04-3ECB-9C80-3FABACA2FC72> /usr/local/lib/python2.7/site-packages/scipy/stats/statlib.so
       0x10ad98000 -        0x10ada8fe7 +mvn.so (???) <E0BEFC7D-B990-3333-8629-18AFBAA3807D> /usr/local/lib/python2.7/site-packages/scipy/stats/mvn.so
       0x10af27000 -        0x10af62ff7 +libsvm_sparse.so (0) <5996FBFB-3753-3BBF-8E73-293857473847> /usr/local/lib/python2.7/site-packages/sklearn/svm/libsvm_sparse.so
       0x10b0e0000 -        0x10b0eaff3 +_online_lda.so (0) <45C85173-C264-3367-B7C2-6B2E2F96E022> /usr/local/lib/python2.7/site-packages/sklearn/decomposition/_online_lda.so
       0x10b208000 -        0x10b249fff +libsvm.so (0) <63A15E82-F91C-35CF-A8FE-D58A2F8EDBB2> /usr/local/lib/python2.7/site-packages/sklearn/svm/libsvm.so
    0x7fff62c14000 -     0x7fff62c4b25f  dyld (360.22) <A468D85E-D8D6-3461-8C99-49D3B9ACFC63> /usr/lib/dyld
    0x7fff86e57000 -     0x7fff86e6dff7  libLinearAlgebra.dylib (1162.2) <FFE54EDF-F06F-3C0A-864A-4CA7BBFD4B2D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff875da000 -     0x7fff875e3ff7  libsystem_pthread.dylib (138.10.4) <3DD1EF4C-1D1B-3ABF-8CC6-B3B1CEEE9559> /usr/lib/system/libsystem_pthread.dylib
    0x7fff87863000 -     0x7fff87bc5f3f  libobjc.A.dylib (680) <7489D2D6-1EFD-3414-B18D-2AECCCC90286> /usr/lib/libobjc.A.dylib
    0x7fff87c89000 -     0x7fff87c89ff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
    0x7fff88296000 -     0x7fff88346fe7  libvMisc.dylib (563.5) <6D73C20D-D1C4-3BA5-809B-4B597C15AA86> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8886a000 -     0x7fff8886aff7  libunc.dylib (29) <DDB1E947-C775-33B8-B461-63E5EB698F0E> /usr/lib/system/libunc.dylib
    0x7fff888a2000 -     0x7fff888a2ff7  liblaunch.dylib (765.50.8) <834ED605-5114-3641-AA4D-ECF31B801C50> /usr/lib/system/liblaunch.dylib
    0x7fff88b72000 -     0x7fff88b8eff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
    0x7fff88c25000 -     0x7fff88c28fff  libsystem_sandbox.dylib (460.50.4) <150A9D3D-F69E-32F7-8C7B-8E72CAAFF7E4> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff89080000 -     0x7fff890c6ff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff897bd000 -     0x7fff897cdfff  libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
    0x7fff8991e000 -     0x7fff89920ff7  libquarantine.dylib (80) <0F4169F0-0C84-3A25-B3AE-E47B3586D908> /usr/lib/system/libquarantine.dylib
    0x7fff8a8a3000 -     0x7fff8a8d0fff  libdispatch.dylib (501.40.12) <C7499857-61A5-3D7D-A5EA-65DCC8C3DF92> /usr/lib/system/libdispatch.dylib
    0x7fff8a8e0000 -     0x7fff8a92eff7  libstdc++.6.dylib (104.1) <76E2AFB1-07E5-3F19-B692-F6E21B7E470D> /usr/lib/libstdc++.6.dylib
    0x7fff8a983000 -     0x7fff8a983fff  com.apple.Accelerate (1.10 - Accelerate 1.10) <185EC96A-5AF0-3620-A4ED-4D3654D25B39> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff8a9b1000 -     0x7fff8a9dafff  libsystem_info.dylib (477.50.4) <FAA9226D-64DE-3769-A6D8-6CABA4B7FF4D> /usr/lib/system/libsystem_info.dylib
    0x7fff8b400000 -     0x7fff8b401fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8b402000 -     0x7fff8b460fff  com.apple.SystemConfiguration (1.14 - 1.14) <D801FAD7-5A2D-3E5E-9F44-B6C9B8BEA747> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff8b461000 -     0x7fff8b48aff7  libxpc.dylib (765.50.8) <54D1328E-054E-3DAA-89E2-375722F9D18F> /usr/lib/system/libxpc.dylib
    0x7fff8b5af000 -     0x7fff8b5b3fff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
    0x7fff8b62c000 -     0x7fff8b62dfff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8b95b000 -     0x7fff8bd57fff  libLAPACK.dylib (1162.2) <987E42B0-5108-3065-87F0-9DF7616A8A06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff8bd58000 -     0x7fff8bd63ff7  libcommonCrypto.dylib (60075.50.1) <93732261-34B4-3914-B7A2-90A81A182DBA> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8e3f1000 -     0x7fff8e3f6ff3  libunwind.dylib (35.3) <F6EB48E5-4D12-359A-AB54-C937FBBE9043> /usr/lib/system/libunwind.dylib
    0x7fff8e3f7000 -     0x7fff8e426ffb  libsystem_m.dylib (3105) <08E1A4B2-6448-3DFE-A58C-ACC7335BE7E4> /usr/lib/system/libsystem_m.dylib
    0x7fff8e6a3000 -     0x7fff8e6f6ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff8ef62000 -     0x7fff8ef63fff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
    0x7fff8f12e000 -     0x7fff8f157fff  libc++abi.dylib (125) <DCCC8177-3D09-35BC-9784-2A04FEC4C71B> /usr/lib/libc++abi.dylib
    0x7fff8f1dd000 -     0x7fff8f1deffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    0x7fff8f444000 -     0x7fff8f444fff  com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <054DFE32-737D-3211-9A14-0FC5E1A880E3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff8f6cd000 -     0x7fff8f6e4ff7  libsystem_coretls.dylib (83.40.5) <C90DAE38-4082-381C-A185-2A6A8B677628> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8f6e5000 -     0x7fff8f6e7fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff8fd79000 -     0x7fff8fd81fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
    0x7fff8fe8e000 -     0x7fff8fe93ff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
    0x7fff903b1000 -     0x7fff90518fff  libBLAS.dylib (1162.2) <A1398FE0-39D2-33EA-9A0F-B2644EEA29A0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff90587000 -     0x7fff90696fe7  libvDSP.dylib (563.5) <9AB6CA3C-4F0E-35E6-9184-9DF86E7C3DAD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff91688000 -     0x7fff91690fff  libcopyfile.dylib (127) <A48637BC-F3F2-34F2-BB68-4C65FD012832> /usr/lib/system/libcopyfile.dylib
    0x7fff91691000 -     0x7fff916a2ff7  libsystem_trace.dylib (201.10.3) <F00E92E4-DBDA-3749-B5B3-0C3FBBABA1CB> /usr/lib/system/libsystem_trace.dylib
    0x7fff91d55000 -     0x7fff91d56ffb  libSystem.B.dylib (1226.10.1) <C5D09FE1-CC70-383E-AC27-18602F2EDEC4> /usr/lib/libSystem.B.dylib
    0x7fff91e2f000 -     0x7fff91e40ff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff91eba000 -     0x7fff91ecbfff  libSparseBLAS.dylib (1162.2) <EBEB3848-3468-342A-91A6-5C47F2369CD9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff9279d000 -     0x7fff929aafff  libicucore.A.dylib (551.51.3) <5BC80F94-C90D-3175-BD96-FF1DC222EC9C> /usr/lib/libicucore.A.dylib
    0x7fff92a49000 -     0x7fff92ebffff  com.apple.CoreFoundation (6.9 - 1258.1) <943A1383-DA6A-3DC0-ABCD-D9AEB3D0D34D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff937f4000 -     0x7fff93802ff7  libbz2.1.0.dylib (38) <28E54258-C0FE-38D4-AB76-1734CACCB344> /usr/lib/libbz2.1.0.dylib
    0x7fff93a7a000 -     0x7fff93a7dffb  libdyld.dylib (360.22) <CC088C2A-D407-33E7-A6B6-B06E0D4AD999> /usr/lib/system/libdyld.dylib
    0x7fff95aa1000 -     0x7fff95aa3ff7  libsystem_configuration.dylib (802.40.13) <3DEB7DF9-6804-37E1-BC83-0166882FF0FF> /usr/lib/system/libsystem_configuration.dylib
    0x7fff95b06000 -     0x7fff95b7dfeb  libcorecrypto.dylib (335.50.1) <B5C05FD7-A540-345A-87BF-8E41848A3C17> /usr/lib/system/libcorecrypto.dylib
    0x7fff96d72000 -     0x7fff96d7bff3  libsystem_notify.dylib (150.40.1) <D48BDE34-0F7E-34CA-A0FF-C578E39987CC> /usr/lib/system/libsystem_notify.dylib
    0x7fff96d7c000 -     0x7fff97111fdb  com.apple.vImage (8.0 - 8.0) <4BAC9B6F-7482-3580-8787-AB0A5B4D331B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff976a9000 -     0x7fff976b0ff7  libcompiler_rt.dylib (62) <A13ECF69-F59F-38AE-8609-7B731450FBCD> /usr/lib/system/libcompiler_rt.dylib
    0x7fff99e12000 -     0x7fff99e29ff7  libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
    0x7fff99e59000 -     0x7fff99e61ffb  libsystem_dnssd.dylib (625.50.5) <4D10E12B-59B5-386F-82DA-326F18028F0A> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff99efb000 -     0x7fff99f03fff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff9a00b000 -     0x7fff9a071ff7  libsystem_network.dylib (583.50.1) <B52DAB73-92DC-3DA7-B9F4-B899D66445C1> /usr/lib/system/libsystem_network.dylib
    0x7fff9a4b4000 -     0x7fff9a4d2ff7  libsystem_kernel.dylib (3248.50.21) <78E54D59-D2B0-3F54-9A4A-0A68D671F253> /usr/lib/system/libsystem_kernel.dylib
    0x7fff9b307000 -     0x7fff9b394fff  libsystem_c.dylib (1082.50.1) <B552D565-B798-3B9B-AE63-F623B42A5F01> /usr/lib/system/libsystem_c.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 3242263
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=151.2M resident=0K(0%) swapped_out_or_unallocated=151.2M(100%)
Writable regions: Total=965.9M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=965.9M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                  2048K        2 
Dispatch continuations            16.0M        2 
Kernel Alloc Once                    4K        2 
MALLOC                           911.5M       38 
MALLOC guard page                   16K        4 
STACK GUARD                       56.0M       11 
Stack                             12.6M       11 
VM_ALLOCATE                       22.3M       53 
__DATA                            6664K      220 
__LINKEDIT                        98.5M      137 
__TEXT                            52.7M      192 
__UNICODE                          552K        2 
shared memory                       12K        4 
===========                     =======  ======= 
TOTAL                              1.2G      665 

Model: MacBookPro11,4, BootROM MBP114.0172.B09, 4 processors, Intel Core i7, 2.2 GHz, 16 GB, SMC 2.29f23
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.21.95.175.1a6)
Bluetooth: Version 4.4.5f3 17904, 3 services, 18 devices, 1 incoming serial ports
Network Service: USB 10/100 LAN, Ethernet, en4
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256G, 251 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
mmagnuski commented 7 years ago

It works well for me too. I did not change anything in the notebook apart from file path and py3 compatibility for filter. Can you reproduce the error in a conda virtual environment that matches the versions of packages that you are using?

mmagnuski commented 7 years ago

(and just BTW - when reading the .set file to mne you seem to be dropping a few 'boundary' eeglab events - that won't influence your ICA, but it's better to read those in too, to know where the discontinuities are in your signal)

lix90 commented 7 years ago

I switched my python environment to Python3.5 in Anaconda and uninstalled the pure Python2.7. Then I created a Python2.7 environment with complete anaconda packages and pip installed MNE.

First run returned the message below:

/Users/lix/anaconda3/envs/python2/lib/python2.7/site-packages/sklearn/decomposition/fastica_.py:116: UserWarning: FastICA did not converge. Consider increasing tolerance or the maximum number of iterations.

Sencond run in which I set max_iter=512 still returned the same message. Third run without max_iter parameter still returned the message.

I did not get the memory error with Anaconda, I don't know why. But the fastica warning emerged. I have no background of programming and signal processing or something else related to it, so these all puzzled me. : (


updates:

I will update packages (The version of scikit-learn in default is 0.17.1) and try again.


updates:

Ok, after I updated all packages in anaconda in latest version, all problem are solved magically! I have no idea. - -

Thanks for all your helps. Love MNE and the community. : )

lix90 commented 7 years ago

when reading the .set file to mne you seem to be dropping a few 'boundary' eeglab events - that won't influence your ICA, but it's better to read those in too, to know where the discontinuities are in your signal

Hi @mmagnuski Thank you for the reminder. I did not pay much attention to it. It seems like the boundary events are defaultly dropped. What should I do in order to prevent dropping boundary events? specifying the boundary events like {'boundary': 99} or something like that? I notice the event_id_func but I am not clear how to use it right now. BTW, if boundary events are informative, why not keep it in default?

mmagnuski commented 7 years ago

Yes, you can just add the boundary events to event_id, for example:

raw = mne.io.read_raw_eeglab('some_data.set', event_id={'stim': 1, 'resp': 2, 'boundary': 99})

(assuming you also have events stim and resp and are reading raw eeglab data). They could be read by default as 99 for example, but probably that wouldn't be clear to the user - what these 99 events mean. Another option would be to read boundary events as very short annotations ('bad - discontinuity' for example). This way they could be used when constructing epochs from raw using reject_by_annotations.

lix90 commented 7 years ago

Thank you @mmagnuski for such a detailed guide.

According to your description, I looked up the documentation and tried to write a tiny script to implement this procedure. I paste the snippet here just for validation and considering that it might be helpful for MNE & Python beginners just like me.

import numpy as np
import mne

fname_eeglab = '/path/to/some_data.set'
events_id = {'stim': 1, 'resp': 2, 'boundary': 99}
bad_duration = 0.5
tmin, tmax = -0.2, 0.5
reject = dict(eeg=120e-6)
baseline = (None, 0)

raw = mne.io.read_raw_eeglab(fname_eeglab, event_id=events_id)
events = mne.find_events(raw)
boundary_events = events[events[:, 2] == events_id['boundary'], :]
n_boundary_events = len(boundary_events)
boundary_onsets = boundary_events[:, 0] / raw.info['sfreq'] - bad_duration / 2
boundary_durations = np.repeat(bad_duration, n_boundary_events)
raw.annotations = mne.Annotations(onset=boundary_onsets,
                                  duration=boundary_durations,
                                  description=['bad - discontinuity'],
                                  orig_time=raw.info['meas_date'])
raw.plot(events=boundary_events)

# ... ... maybe some other codes here

picks_eeg = mne.pick_types(raw, eeg=True, eog=False, stim=False, exclude='bads')
epochs = mne.Epochs(raw, events, event_id, tmin, tmax, proj=True,
                    picks=picks_eeg, baseline=baseline, reject=reject,
                    reject_by_annotation=True, add_eeg_ref=False)