Is there a way to calculate the max value for n_jobs given that my system CPU properties are known?
Here is the computation being performed:
classifier = KerasClassifier(build_fn=buildANN, batch_size=10, epochs=100)
accuracy = cross_val_score(estimator=classifier, X=X_train, y=y_train, cv=10, n_jobs=-1)
When I put n_jobs=-1
, the process gets stuck and freezes on the python console. I'm running the application in Spyder
IDE. When I put n_jobs=1, 2, .. etc then it will run but at a low speed. How do I calculate the max value for n_jobs
as per my system CPU ? Is the quantity referring to number of CPU cores or number of parallel CPU's?