mljar-supervised
mljar-supervised copied to clipboard
crash when trying to multiple mljar's AutoML in parallel
i am using Dask to parallelize few AutoML jobs (checking multiple scenario's at the same time) i am getting the following error :
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
the following params are used : "total_time_limit": 120,"explain_level":0, "ml_task": "binary_classification", "mode": "Perform", "verbose": 1, "eval_metric": "average_precision", "n_jobs": -1, "random_state": 0
i am using 0.11.2 version quick search showed there is an issue with using matplotlib in parallel tasks, is it used internally in mljar?
solved the problem by adding:
matplotlib.use('Agg')
as suggested in :
https://stackoverflow.com/questions/65068073/error-while-showing-matplotlib-figure-in-flask
correction - is still happens from time to time. need the ability to run multiple scenario's simultaneously .