Skip to content

Commit

Permalink
threads
Browse files Browse the repository at this point in the history
  • Loading branch information
SkBlaz committed Jul 26, 2024
1 parent 109bec9 commit 990aa3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions outrank/algorithms/importance_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from sklearn.preprocessing import OneHotEncoder
from sklearn.svm import SVC

from outrank.algorithms.neural.mlp_nn import NNClassifier
from outrank.core_utils import is_prior_heuristic

logger = logging.getLogger('syn-logger')
Expand Down Expand Up @@ -224,6 +225,8 @@ def initialize_classifier(surrogate_model: str):
return LogisticRegression(max_iter=100000)
elif 'surrogate-SVM' in surrogate_model:
return SVC(gamma='auto', probability=True)
elif 'surrogate-NN' in surrogate_model:
return NNClassifier()
elif 'surrogate-SGD' in surrogate_model:
return SGDClassifier(max_iter=100000, loss='log_loss')
else:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flake8>=6.1.0
flax==0.8.3
jax==0.4.28
jaxlib==0.4.28
flax>=0.8.3
jax>=0.4.28
jaxlib>=0.4.28
matplotlib>=3.7.2
numba>=0.55.1
numpy>=1.21.6
Expand Down

0 comments on commit 990aa3b

Please sign in to comment.