Skip to content

Commit

Permalink
fix fuzzy const settings (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
janoPig committed Jan 21, 2024
1 parent 394f110 commit 0bff9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HROCH/fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class FuzzyRegressor(SymbolicSolver, ClassifierMixin):
- opt_metric : (make_scorer) Scoring method
"""

FUZZY_INIT_CONST_SETTINGS = {'const_min':0.0, 'const_max':1.0, 'predefined_const_prob':0.0, 'predefined_const_set': []}
FUZZY_CONST_SETTINGS = {'const_min':0.0, 'const_max':1.0, 'predefined_const_prob':0.0, 'predefined_const_set': []}
INIT_CONST_SETTINGS = {'const_min':0.0, 'const_max':1.0, 'predefined_const_prob':0.0, 'predefined_const_set': []}
CONST_SETTINGS = {'const_min':0.0, 'const_max':1.0, 'predefined_const_prob':0.0, 'predefined_const_set': []}

def __init__(self,
num_threads: int = 1,
Expand Down
2 changes: 1 addition & 1 deletion test/ensemble_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_voting_regressor(self):

def test_bagging_classifier(self):
for c in [NonlinearLogisticRegressor, FuzzyRegressor]:
ensemble_model = BaggingClassifier(estimator=NonlinearLogisticRegressor(**self.params))
ensemble_model = BaggingClassifier(estimator=c(**self.params))
ensemble_model.fit(self.X_train, self.y_train)
y_pred = ensemble_model.predict(self.X_test)
self.assertEqual(y_pred.shape[0], self.y_test.shape[0])
Expand Down

0 comments on commit 0bff9b6

Please sign in to comment.