Open shabnamkadir opened 9 years ago
you need to import your functions on all nodes first
Appears to now run, but gives nonsensical results: ''' INFO klustakwik: Number of spikes in data set: 4001 INFO klustakwik: Number of unique masks in data set: 2575 INFO klustakwik.initial_parameters: full_step_every = 1 INFO klustakwik.initial_parameters: penalty_k = 0.0 INFO klustakwik.initial_parameters: fast_split = False INFO klustakwik.initial_parameters: split_every = 40 INFO klustakwik.initial_parameters: use_noise_cluster = True INFO klustakwik.initial_parameters: subset_break_fraction = 0.01 INFO klustakwik.initial_parameters: mua_point = 2 INFO klustakwik.initial_parameters: max_split_iterations = None INFO klustakwik.initial_parameters: max_possible_clusters = 1000 INFO klustakwik.initial_parameters: max_iterations = 1000 INFO klustakwik.initial_parameters: break_fraction = 0.0 INFO klustakwik.initial_parameters: prior_point = 1 INFO klustakwik.initial_parameters: num_changed_threshold = 0.05 INFO klustakwik.initial_parameters: always_split_bimodal = False INFO klustakwik.initial_parameters: use_mua_cluster = True INFO klustakwik.initial_parameters: split_first = 20 INFO klustakwik.initial_parameters: points_for_cluster_mask = 100 INFO klustakwik.initial_parameters: max_quick_step_candidates_fraction = 0.4 INFO klustakwik.initial_parameters: penalty_k_log_n = 1.0 INFO klustakwik.initial_parameters: max_quick_step_candidates = 100000000 INFO klustakwik.initial_parameters: noise_point = 1 INFO klustakwik.initial_parameters: num_starting_clusters = 500 INFO klustakwik.initial_parameters: consider_cluster_deletion = True INFO klustakwik.initial_parameters: dist_thresh = 9.21034037198 INFO klustakwik.initial_parameters: use_noise_cluster = True INFO klustakwik.initial_parameters: use_mua_cluster = True Time taken for parallel clustering 156.44 s [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None] '''
I'm not sure why it is returning None objects instead of KK objects.
'''
Traceback (most recent call last):
File "parallel_global_script.py", line 304, in
'''
importing run_subset_KK from parallel_global on engine(s)
[0:apply]:
---------------------------------------------------------------------------ImportError Traceback (most recent call last)<string> in <module>()
/home/skadir/.conda/envs/globalphy/lib/python3.4/site-packages/IPython/parallel/client/view.py in remote_import(name, fromlist, level)
439 import sys
440 user_ns = globals()
--> 441 mod = __import__(name, fromlist=fromlist, level=level)
442 if fromlist:
443 for key in fromlist:
ImportError: No module named 'parallel_global'
[1:apply]:
This bug is now a Heisenbug. It sometimes parallelises fine.
About to parallelize
Time taken for parallel clustering 151.85 s
It always fails the first time it is launched, but if you keep the same engines running and don't restart, and run the script again - it works! The second time, the clustering happens fine...
When changing the number of points without restarting the engines (yes, I know):
About to parallelize
Time taken for parallel clustering 587.06 s
Traceback (most recent call last):
File "parallel_global_script_40000.py", line 180, in <module>
superclusters[supercluster_info['sub_spikes'][channel],i] = supercluster_results[i]+1
ValueError: shape mismatch: value array of shape (304,) could not be broadcast to indexing result of shape (2898,)
Possibly related:
Traceback (most recent call last):
File "nickground_global_script_1280000.py", line 185, in