Skip to content

Commit

Permalink
Add snellius detectors instead of cartesius
Browse files Browse the repository at this point in the history
  • Loading branch information
MStarmans91 committed Mar 11, 2022
1 parent 644d30a commit c474a3e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions WORC/detectors/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def _is_detected(self, *args, **kwargs):
return False


class CartesiusClusterDetector(AbstractDetector):
class SnelliusClusterDetector(AbstractDetector):
def _is_detected(self):
if LinuxDetector()._is_detected():
try:
if 'cartesius' in Path('/etc/hosts').read_text():
if 'localhost6.localdomain6' in Path('/etc/hosts').read_text():
return True
except:
return False
Expand Down
4 changes: 2 additions & 2 deletions WORC/facade/helpers/configbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# limitations under the License.

from WORC import WORC
from WORC.detectors.detectors import BigrClusterDetector, CartesiusClusterDetector, DebugDetector
from WORC.detectors.detectors import BigrClusterDetector, SnelliusClusterDetector, DebugDetector
import configparser
import fastr
import collections.abc
Expand Down Expand Up @@ -74,7 +74,7 @@ def _cluster_config_overrides(self):
'fastr_plugin': 'DRMAAExecution'},
'HyperOptimization': {'n_jobspercore': '200'}
}
elif CartesiusClusterDetector().do_detection():
elif SnelliusClusterDetector().do_detection():
overrides = {
'Classification': {'fastr': 'True',
'fastr_plugin': 'ProcessPoolExecution'},
Expand Down
6 changes: 3 additions & 3 deletions WORC/facade/simpleworc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from WORC.addexceptions import WORCKeyError, WORCValueError, WORCAssertionError
from .helpers.configbuilder import ConfigBuilder
from WORC.detectors.detectors import CsvDetector, BigrClusterDetector, \
CartesiusClusterDetector
SnelliusClusterDetector

from WORC.validators.preflightcheck import ValidatorsFactory
from functools import wraps
Expand Down Expand Up @@ -115,7 +115,7 @@ def __init__(self, name='WORC'):
# Detect wether we are on a cluster
if BigrClusterDetector().do_detection():
self._worc.fastr_plugin = 'DRMAAExecution'
elif CartesiusClusterDetector().do_detection():
elif SnelliusClusterDetector().do_detection():
self._worc.fastr_plugin = 'ProcessPoolExecution'

def set_fixed_splits(self, fixed_splits_csv):
Expand Down Expand Up @@ -633,7 +633,7 @@ def set_multicore_execution(self):
is enabled, jobs are parallellized over all available cores, which majorly speeds
up the computation.
Note: SimpleWORC has an automatic detector for the BIGR and Cartesius cluster. Hence,
Note: SimpleWORC has an automatic detector for the BIGR and Snellius cluster. Hence,
on those clusters, do not use the multicore execution, as this will overwrite
the changes applied by the detectors.
"""
Expand Down
2 changes: 1 addition & 1 deletion WORC/plotting/plot_estimator_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def plot_estimator_performance(prediction, label_data, label_type,

thresholds_val = fit_thresholds(thresholds, fitted_model,
label_type, X_train_temp,
Y_train_temp, esemble_method,
Y_train_temp, ensemble_method,
ensemble_size,
ensemble_scoring)
for pnum in range(len(y_score)):
Expand Down

0 comments on commit c474a3e

Please sign in to comment.