Estimators
sklearn-compatible TSK estimator wrappers.
All public estimator classes are re-exported from their respective sub-modules.
ADATSKClassifier
Bases: _BaseClassifierEstimator
TSK classifier with adaptive softmin antecedent (ADATSK).
The firing strength of each rule is computed with the Ada-softmin operator.
Reference
G. Xue, Q. Chang, J. Wang, K. Zhang and N. R. Pal, "An Adaptive Neuro-Fuzzy System With Integrated Feature Selection and Rule Extraction for High-Dimensional Classification Problems," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 7, pp. 2167-2181, July 2023, doi: 10.1109/TFUZZ.2022.3220950.
Example
Initialise an ADATSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_adaptive.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
ADATSKRegressor
Bases: _BaseRegressorEstimator
TSK regressor with adaptive softmin antecedent (ADATSK).
The firing strength of each rule is computed with the Ada-softmin operator.
Reference
G. Xue, Q. Chang, J. Wang, K. Zhang and N. R. Pal, "An Adaptive Neuro-Fuzzy System With Integrated Feature Selection and Rule Extraction for High-Dimensional Classification Problems," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 7, pp. 2167-2181, July 2023, doi: 10.1109/TFUZZ.2022.3220950.
Example
Initialise an ADATSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_adaptive.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
ADMTSKClassifier
Bases: _BaseClassifierEstimator
ADMTSK classifier estimator with Composite GMF and adaptive Dombi lambda.
ADMTSK is an adaptive Dombi TSK fuzzy system designed for high-dimensional inference. It combines a Dombi T-norm antecedent with a positive lower-bound Composite Gaussian membership function (CGMF) and normalized first-order consequents.
Reference
G. Xue, L. Hu, J. Wang and S. Ablameyko, "ADMTSK: A High-Dimensional Takagi-Sugeno-Kang Fuzzy System Based on Adaptive Dombi T-Norm," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 6, pp. 1767-1780, June 2025, doi: 10.1109/TFUZZ.2025.3535640.
Initialize an ADMTSK classifier estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of per-feature input configurations. |
None
|
n_mfs
|
int
|
Number of membership functions per input when using
|
5
|
mf_init
|
str
|
Initialisation strategy for MFs: |
'kmeans'
|
sigma_scale
|
float | str
|
Scale factor used to initialise Gaussian MF sigma values. |
1.0
|
random_state
|
int | None
|
Random seed for MF initialisation and weights. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Learning rate for the optimizer. |
0.01
|
verbose
|
bool | int
|
Verbosity level for training output. |
False
|
rule_base
|
str | None
|
Rule base strategy override, typically |
None
|
batch_size
|
int | None
|
Mini-batch size for training. |
512
|
shuffle
|
bool
|
Whether to shuffle training data each epoch. |
True
|
ur_weight
|
float
|
Uniform-rule regularisation weight. |
0.0
|
ur_target
|
float | None
|
Target average rule activation for uniform regularisation. |
None
|
consequent_batch_norm
|
bool
|
If True, apply batch normalization to consequent inputs. |
False
|
pfrb_max_rules
|
int | None
|
Maximum number of rules for point-based FRB. |
None
|
patience
|
int | None
|
Early stopping patience. Use |
20
|
restore_best
|
bool
|
If True, restore the best validation weights. |
True
|
weight_decay
|
float
|
Weight decay applied during training. |
1e-08
|
adaptive
|
bool
|
If True, use adaptive lambda selection for Dombi T-norm. |
True
|
lambda_
|
float
|
Fixed Dombi parameter when adaptive is False. |
1.0
|
lower_bound
|
float
|
Lower bound used by Composite GMF. |
1.0 / math.e
|
k
|
float
|
Heuristic constant used to compute adaptive lambda. |
10.0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If estimator hyperparameters are invalid. |
Source code in highfis/estimators/_dombi.py
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
ADMTSKRegressor
Bases: _BaseRegressorEstimator
ADMTSK regressor estimator with Composite GMF and adaptive Dombi lambda.
ADMTSK is an adaptive Dombi TSK fuzzy system designed for high-dimensional inference. It combines a Dombi T-norm antecedent with a positive lower-bound Composite Gaussian membership function (CGMF) and normalized first-order consequents.
Reference
G. Xue, L. Hu, J. Wang and S. Ablameyko, "ADMTSK: A High-Dimensional Takagi-Sugeno-Kang Fuzzy System Based on Adaptive Dombi T-Norm," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 6, pp. 1767-1780, June 2025, doi: 10.1109/TFUZZ.2025.3535640.
Initialize an ADMTSK regressor estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of per-feature input configurations. |
None
|
n_mfs
|
int
|
Number of membership functions per input when using
|
5
|
mf_init
|
str
|
Initialisation strategy for MFs: |
'kmeans'
|
sigma_scale
|
float | str
|
Scale factor used to initialise Gaussian MF sigma values. |
1.0
|
random_state
|
int | None
|
Random seed for MF initialisation and weights. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Learning rate for the optimizer. |
0.01
|
verbose
|
bool | int
|
Verbosity level for training output. |
False
|
rule_base
|
str | None
|
Rule base strategy override, typically |
None
|
batch_size
|
int | None
|
Mini-batch size for training. |
512
|
shuffle
|
bool
|
Whether to shuffle training data each epoch. |
True
|
ur_weight
|
float
|
Uniform-rule regularisation weight. |
0.0
|
ur_target
|
float | None
|
Target average rule activation for uniform regularisation. |
None
|
consequent_batch_norm
|
bool
|
If True, apply batch normalization to consequent inputs. |
False
|
patience
|
int | None
|
Early stopping patience. Use |
20
|
restore_best
|
bool
|
If True, restore the best validation weights. |
True
|
weight_decay
|
float
|
Weight decay applied during training. |
1e-08
|
adaptive
|
bool
|
If True, use adaptive lambda selection for Dombi T-norm. |
True
|
lambda_
|
float
|
Fixed Dombi parameter when adaptive is False. |
1.0
|
lower_bound
|
float
|
Lower bound used by Composite GMF. |
1.0 / math.e
|
k
|
float
|
Heuristic constant used to compute adaptive lambda. |
10.0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If estimator hyperparameters are invalid. |
Source code in highfis/estimators/_dombi.py
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
ADPTSKClassifier
Bases: _BaseClassifierEstimator
TSK classifier with ADP-softmin antecedent and Gaussian PIMF.
The firing strengths of each rule are computed with the ADP-softmin operator, and membership functions are wrapped as Gaussian PIMFs to preserve a positive infimum during high-dimensional training.
Reference
Ma, M., Qian, L., Zhang, Y., Fang, Q., & Xue, G. (2025). An adaptive double-parameter softmin based Takagi-Sugeno-Kang fuzzy system for high-dimensional data. Fuzzy Sets and Systems, 521, 109582. https://doi.org/10.1016/j.fss.2025.109582
Initialise an ADPTSK classifier estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of :class: |
None
|
n_mfs
|
int
|
Number of membership functions per feature or k-means clusters. |
3
|
mf_init
|
str
|
Membership-function initialization strategy:
|
'kmeans'
|
sigma_scale
|
float | str
|
Scale factor for Gaussian MF sigma initialization. |
1.0
|
random_state
|
int | None
|
Seed for k-means and PyTorch weight initialization. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Initial learning rate for the Adam optimizer. |
0.01
|
verbose
|
bool | int
|
Verbosity level for training output. |
False
|
rule_base
|
str | None
|
Rule-base strategy, e.g. |
None
|
batch_size
|
int | None
|
Mini-batch size. |
512
|
shuffle
|
bool
|
Whether to shuffle training samples each epoch. |
True
|
ur_weight
|
float
|
Uniform-rule regularization weight. |
0.0
|
ur_target
|
float | None
|
Target average rule activation for UR. |
None
|
consequent_batch_norm
|
bool
|
Apply batch normalization to consequent linear layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum rules for point-based FRB when
|
None
|
patience
|
int | None
|
Early-stopping patience. |
20
|
restore_best
|
bool
|
Restore the best validation model weights after training. stopping. |
True
|
weight_decay
|
float
|
L2 weight decay coefficient for consequent parameters. |
1e-08
|
kappa
|
float
|
ADPTSK |
690.0
|
xi
|
float
|
ADPTSK |
730.0
|
k
|
float
|
Gaussian PIMF scaling constant used when wrapping the input MFs. |
1.0
|
eps
|
float | None
|
Optional lower bound for Gaussian PIMF values. |
None
|
Source code in highfis/estimators/_adaptive.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
ADPTSKRegressor
Bases: _BaseRegressorEstimator
TSK regressor with ADP-softmin antecedent and Gaussian PIMF.
The firing strengths of each rule are computed with the ADP-softmin operator, and membership functions are wrapped as Gaussian PIMFs to preserve a positive infimum during high-dimensional training.
Reference
Ma, M., Qian, L., Zhang, Y., Fang, Q., & Xue, G. (2025). An adaptive double-parameter softmin based Takagi-Sugeno-Kang fuzzy system for high-dimensional data. Fuzzy Sets and Systems, 521, 109582. https://doi.org/10.1016/j.fss.2025.109582
Initialise an ADPTSK regressor estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of :class: |
None
|
n_mfs
|
int
|
Number of membership functions per feature or k-means clusters. |
3
|
mf_init
|
str
|
Membership-function initialization strategy:
|
'kmeans'
|
sigma_scale
|
float | str
|
Scale factor for Gaussian MF sigma initialization. |
1.0
|
random_state
|
int | None
|
Seed for k-means and PyTorch weight initialization. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Initial learning rate for the Adam optimizer. |
0.01
|
verbose
|
bool | int
|
Verbosity level for training output. |
False
|
rule_base
|
str | None
|
Rule-base strategy, e.g. |
None
|
batch_size
|
int | None
|
Mini-batch size. |
512
|
shuffle
|
bool
|
Whether to shuffle training samples each epoch. |
True
|
ur_weight
|
float
|
Uniform-rule regularization weight. |
0.0
|
ur_target
|
float | None
|
Target average rule activation for UR. |
None
|
consequent_batch_norm
|
bool
|
Apply batch normalization to consequent linear layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum rules for point-based FRB when
|
None
|
patience
|
int | None
|
Early-stopping patience. |
20
|
restore_best
|
bool
|
Restore the best validation model weights after training. stopping. |
True
|
weight_decay
|
float
|
L2 weight decay coefficient for consequent parameters. |
1e-08
|
kappa
|
float
|
ADPTSK |
690.0
|
xi
|
float
|
ADPTSK |
730.0
|
k
|
float
|
Gaussian PIMF scaling constant used when wrapping the input MFs. |
1.0
|
eps
|
float | None
|
Optional lower bound for Gaussian PIMF values. |
None
|
Source code in highfis/estimators/_adaptive.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
AYATSKClassifier
Bases: _BaseClassifierEstimator
TSK classifier with an adaptive Yager T-norm in the antecedent.
AYATSK extends TSK by using an adaptive Yager T-norm aggregation and optional positive lower-bound membership functions to improve stability and performance in high-dimensional settings.
Reference
G. Xue, Y. Yang and J. Wang, "Adaptive Yager T-Norm-Based Takagi-Sugeno-Kang Fuzzy Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 55, no. 12, pp. 9802-9815, Dec. 2025, doi: 10.1109/TSMC.2025.3621346.
Example
Initialise an AYATSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor for k-means initialisation.
|
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum point-based FRB rules (unused by AYATSK). |
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_yager.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
AYATSKRegressor
Bases: _BaseRegressorEstimator
TSK regressor with an adaptive Yager T-norm in the antecedent.
AYATSK extends TSK by using an adaptive Yager T-norm aggregation and optional positive lower-bound membership functions to improve stability and performance in high-dimensional settings.
Reference
G. Xue, Y. Yang and J. Wang, "Adaptive Yager T-Norm-Based Takagi-Sugeno-Kang Fuzzy Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 55, no. 12, pp. 9802-9815, Dec. 2025, doi: 10.1109/TSMC.2025.3621346.
Example
Initialise an AYATSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_yager.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
DGALETSKClassifier
Bases: FSREADATSKClassifier
DG-ALETSK classifier with ALE-softmin antecedent and double-group gates.
DG-ALETSK extends FSRE-ADATSK by replacing the adaptive softmin with the Adaptive Ln-Exp (ALE) softmin — a smoother variant with improved numerical stability. It also uses a zero-order consequent in the DG (data-guided) training phase and optionally converts to first-order after gate-based pruning.
Reference
G. Xue, J. Wang, B. Yuan and C. Dai, "DG-ALETSK: A High-Dimensional Fuzzy Approach With Simultaneous Feature Selection and Rule Extraction," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 11, pp. 3866-3880, Nov. 2023, doi: 10.1109/TFUZZ.2023.3270445.
Example
Initialise an FSRE-ADATSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambda_init
|
float
|
Accepted for API compatibility but not used by
FSRE-ADATSK or DG-ALETSK. FSRE-ADATSK computes its
adaptive softmin index directly from membership values;
DG-ALETSK uses the fixed exponent |
1.0
|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators/_fsre.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
DGALETSKRegressor
Bases: FSREADATSKRegressor
DG-ALETSK regressor with ALE-softmin antecedent and double-group gates.
DG-ALETSK extends FSRE-ADATSK by replacing the adaptive softmin with the Adaptive Ln-Exp (ALE) softmin — a smoother variant with improved numerical stability. It also uses a zero-order consequent in the DG (data-guided) training phase and optionally converts to first-order after gate-based pruning.
Reference
G. Xue, J. Wang, B. Yuan and C. Dai, "DG-ALETSK: A High-Dimensional Fuzzy Approach With Simultaneous Feature Selection and Rule Extraction," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 11, pp. 3866-3880, Nov. 2023, doi: 10.1109/TFUZZ.2023.3270445.
Example
Initialise an FSRE-ADATSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambda_init
|
float
|
Accepted for API compatibility but not used by
FSRE-ADATSK or DG-ALETSK. FSRE-ADATSK computes its
adaptive softmin index directly from membership values;
DG-ALETSK uses the fixed exponent |
1.0
|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators/_fsre.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
DGTSKClassifier
Bases: _BaseClassifierEstimator
DG-TSK classifier with M-gate antecedent and point-based FRB (P-FRB).
DG-TSK uses a data-guided M-gate function to automatically select relevant features and rules.
Reference
Guangdong Xue, Jian Wang, Bingjie Zhang, Bin Yuan, Caili Dai, Double groups of gates based Takagi-Sugeno-Kang (DG-TSK) fuzzy system for simultaneous feature selection and rule extraction, Fuzzy Sets and Systems, Volume 469, 2023, 108627, ISSN 0165-0114, https://doi.org/10.1016/j.fss.2023.108627.
Example
Initialise a DG-TSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum number of point-based FRB rules when
|
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_dg_tsk.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
DGTSKRegressor
Bases: _BaseRegressorEstimator
DG-TSK regressor with M-gate antecedent and point-based FRB (P-FRB).
DG-TSK uses a data-guided M-gate function to automatically select relevant features and rules.
Reference
Guangdong Xue, Jian Wang, Bingjie Zhang, Bin Yuan, Caili Dai, Double groups of gates based Takagi-Sugeno-Kang (DG-TSK) fuzzy system for simultaneous feature selection and rule extraction, Fuzzy Sets and Systems, Volume 469, 2023, 108627, ISSN 0165-0114, https://doi.org/10.1016/j.fss.2023.108627.
Example
Initialise a DG-TSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum number of point-based FRB rules when
|
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_dg_tsk.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
DombiTSKClassifier
Bases: _BaseClassifierEstimator
TSK classifier with a fixed Dombi T-norm in the antecedent.
DombiTSK extends TSK fuzzy inference by using a Dombi t-norm aggregation in antecedent evaluation while keeping first-order linear consequents.
Reference
G. Xue, L. Hu, J. Wang and S. Ablameyko, "ADMTSK: A High-Dimensional Takagi-Sugeno-Kang Fuzzy System Based on Adaptive Dombi T-Norm," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 6, pp. 1767-1780, June 2025, doi: 10.1109/TFUZZ.2025.3535640.
Example
Initialise a DombiTSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum point-based FRB rules (unused by DombiTSK). |
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_dombi.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
DombiTSKRegressor
Bases: _BaseRegressorEstimator
TSK regressor with a fixed Dombi T-norm in the antecedent.
DombiTSK extends TSK fuzzy inference by using a Dombi t-norm aggregation in antecedent evaluation while keeping first-order linear consequents.
Reference
G. Xue, L. Hu, J. Wang and S. Ablameyko, "ADMTSK: A High-Dimensional Takagi-Sugeno-Kang Fuzzy System Based on Adaptive Dombi T-Norm," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 6, pp. 1767-1780, June 2025, doi: 10.1109/TFUZZ.2025.3535640.
Example
Initialise a DombiTSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_dombi.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
FSREADATSKClassifier
Bases: _BaseClassifierEstimator
FSRE-ADATSK classifier with adaptive softmin antecedent and gated consequents.
FSRE-ADATSK (Feature Selection and Rule Extraction) extends ADATSK.
Reference
G. Xue, Q. Chang, J. Wang, K. Zhang and N. R. Pal, "An Adaptive Neuro-Fuzzy System With Integrated Feature Selection and Rule Extraction for High-Dimensional Classification Problems," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 7, pp. 2167-2181, July 2023, doi: 10.1109/TFUZZ.2022.3220950.
Example
Initialise an FSRE-ADATSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambda_init
|
float
|
Accepted for API compatibility but not used by
FSRE-ADATSK or DG-ALETSK. FSRE-ADATSK computes its
adaptive softmin index directly from membership values;
DG-ALETSK uses the fixed exponent |
1.0
|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators/_fsre.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
FSREADATSKRegressor
Bases: _BaseRegressorEstimator
FSRE-ADATSK regressor with adaptive softmin antecedent and gated consequents.
FSRE-ADATSK (Feature Selection and Rule Extraction) extends ADATSK.
Reference
G. Xue, Q. Chang, J. Wang, K. Zhang and N. R. Pal, "An Adaptive Neuro-Fuzzy System With Integrated Feature Selection and Rule Extraction for High-Dimensional Classification Problems," in IEEE Transactions on Fuzzy Systems, vol. 31, no. 7, pp. 2167-2181, July 2023, doi: 10.1109/TFUZZ.2022.3220950.
Example
Initialise an FSRE-ADATSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambda_init
|
float
|
Accepted for API compatibility but not used by
FSRE-ADATSK or DG-ALETSK. FSRE-ADATSK computes its
adaptive softmin index directly from membership values;
DG-ALETSK uses the fixed exponent |
1.0
|
use_en_frb
|
bool
|
If |
False
|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators/_fsre.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
HDFISMinClassifier
Bases: _BaseClassifierEstimator
HDFIS-min classifier estimator with minimum T-norm antecedents.
HDFIS-min freezes antecedent membership parameters and uses a minimum T-norm aggregation in the antecedent, so that only consequent parameters are optimized during training. This matches the paper's observation that minimum-based high-dimensional inference is best handled by fixing the antecedent structure and training the rule consequents.
References
G. Xue, J. Wang, K. Zhang and N. R. Pal, "High-Dimensional Fuzzy Inference Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 54, no. 1, pp. 507-519, Jan. 2024, doi: 10.1109/TSMC.2023.3311475.
Example
Initialise an HDFIS-min classifier estimator.
Source code in highfis/estimators/_hdfis.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
HDFISMinRegressor
Bases: _BaseRegressorEstimator
HDFIS-min regressor estimator with minimum T-norm antecedents.
HDFIS-min freezes antecedent membership parameters and uses a minimum T-norm aggregation in the antecedent, so that only consequent parameters are optimized during training. This design avoids the nondifferentiability of the minimum operator while preserving first-order TSK consequents.
References
G. Xue, J. Wang, K. Zhang and N. R. Pal, "High-Dimensional Fuzzy Inference Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 54, no. 1, pp. 507-519, Jan. 2024, doi: 10.1109/TSMC.2023.3311475.
Example
Initialise an HDFIS-min regressor estimator.
Source code in highfis/estimators/_hdfis.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
HDFISProdClassifier
Bases: _BaseClassifierEstimator
HDFIS-prod classifier estimator with dimension-dependent Gaussian MFs.
HDFIS-prod combines the standard product T-norm with a dimension-dependent Gaussian membership function (DMF) to avoid numeric underflow in very high-dimensional feature spaces while preserving first-order TSK consequents.
References
G. Xue, J. Wang, K. Zhang and N. R. Pal, "High-Dimensional Fuzzy Inference Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 54, no. 1, pp. 507-519, Jan. 2024, doi: 10.1109/TSMC.2023.3311475.
Example
Initialise an HDFIS-prod classifier estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum number of point-based FRB rules when
|
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
Restore best validation weights after training. |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
xi
|
float
|
Precision constant used to compute the DMF scale exponent
\(\rho\) when rho is |
745.0
|
rho
|
float | None
|
Scale exponent for the dimension-dependent Gaussian MF.
When |
None
|
Source code in highfis/estimators/_hdfis.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
HDFISProdRegressor
Bases: _BaseRegressorEstimator
HDFIS-prod regressor estimator with dimension-dependent Gaussian MFs.
HDFIS-prod combines the standard product T-norm with a dimension-dependent Gaussian membership function (DMF) to avoid numeric underflow in very high-dimensional feature spaces while preserving first-order TSK consequents.
References
G. Xue, J. Wang, K. Zhang and N. R. Pal, "High-Dimensional Fuzzy Inference Systems," in IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 54, no. 1, pp. 507-519, Jan. 2024, doi: 10.1109/TSMC.2023.3311475.
Initialise an HDFIS-prod regressor estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
Restore best validation weights after training. |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
xi
|
float
|
Precision constant used to compute the DMF scale exponent
\(\rho\) when rho is |
745.0
|
rho
|
float | None
|
Scale exponent for the dimension-dependent Gaussian MF.
When |
None
|
Source code in highfis/estimators/_hdfis.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
HTSKClassifier
Bases: _BaseClassifierEstimator
HTSK classifier for high-dimensional TSK inference.
HTSK replaces the standard product t-norm with a geometric mean over membership values and performs rule normalization in log-space.
References
Y. Cui, D. Wu and Y. Xu, "Curse of Dimensionality for TSK Fuzzy Neural Networks: Explanation and Solutions," 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, 2021, pp. 1-8, doi: 10.1109/IJCNN52387.2021.9534265.
Initialise an HTSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs. |
3
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum point-based FRB rules (unused by HTSK). |
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_htsk.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
HTSKRegressor
Bases: _BaseRegressorEstimator
HTSK regressor for high-dimensional TSK inference.
HTSK replaces the standard product t-norm with a geometric mean over membership values and performs rule normalization in log-space.
References
Y. Cui, D. Wu and Y. Xu, "Curse of Dimensionality for TSK Fuzzy Neural Networks: Explanation and Solutions," 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, 2021, pp. 1-8, doi: 10.1109/IJCNN52387.2021.9534265.
Initialise an HTSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs. |
3
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Scale factor for sigma initialisation when
|
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum point-based FRB rules (unused by HTSK). |
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_htsk.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
InputConfig
dataclass
Per-feature configuration for Gaussian MF grid initialisation.
This dataclass controls how membership functions are placed on a single
input feature when mf_init="grid". When mf_init="kmeans" only
the name field is used; centres and sigmas are derived from k-means
cluster centroids.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Feature name. Used as the key in the membership-function dictionary passed to the underlying TSK model. |
n_mfs |
int
|
Number of Gaussian MFs to place on this feature. Must be
|
overlap |
float
|
Spacing factor between neighbouring MF centres. A larger
value widens each MF (more overlap); |
margin |
float
|
Fractional padding added to the observed feature range before
centre placement. |
Example
LogTSKClassifier
Bases: _BaseClassifierEstimator
LogTSK classifier with inverse-log rule normalization.
LogTSK uses product antecedent aggregation and inverse-log normalization of log-domain rule strengths. The resulting rule weights are normalized with L1 normalization across rules, which makes the model scale-invariant in log-space and avoids the softmax saturation that occurs in high-dimensional inputs.
Reference
Y. Cui, D. Wu and Y. Xu, "Curse of Dimensionality for TSK Fuzzy Neural Networks: Explanation and Solutions," 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1-8, doi: 10.1109/IJCNN52387.2021.9534265.
Initialise a LogTSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_logtsk.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
LogTSKRegressor
Bases: _BaseRegressorEstimator
LogTSK regressor with inverse-log rule normalization.
LogTSK uses product antecedent aggregation and inverse-log normalization of log-domain rule strengths. The resulting rule weights are normalized with L1 normalization across rules, which makes the model scale-invariant in log-space and avoids the softmax saturation that occurs in high-dimensional inputs.
Reference
Y. Cui, D. Wu and Y. Xu, "Curse of Dimensionality for TSK Fuzzy Neural Networks: Explanation and Solutions," 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1-8, doi: 10.1109/IJCNN52387.2021.9534265.
Initialise a LogTSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. |
1.0
|
random_state
|
int | None
|
Seed for reproducibility. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_logtsk.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
MHTSKClassifier
Bases: _BaseClassifierEstimator
Estimator for the multihead Takagi-Sugeno-Kang fuzzy system.
This estimator supports paper-derived automatic scale parameter resolution for head size and number of heads, and it optionally subsamples instances when building each head as described in the MHTSK paper.
MHTSK builds multiple sparse subantecedents from random feature subsets and jointly optimizes their rule consequents.
Reference
Z. Bian, Q. Chang, J. Wang and N. R. Pal, "Multihead Takagi-Sugeno-Kang Fuzzy System," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 8, pp. 2561-2573, Aug. 2025, doi: 10.1109/TFUZZ.2025.3569227.
Initialize a MHTSK classifier estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of per-feature input configurations. Only the feature names are used for FCM-based MHTSK head construction. |
None
|
n_mfs
|
int
|
Number of FCM clusters per head (number of rules generated by each head). |
3
|
n_heads
|
int | None
|
Number of random heads. If |
None
|
head_size
|
int | None
|
Number of features sampled per head. If |
None
|
head_size_ratio
|
float | None
|
Alternative relative head size, as a fraction of the input dimension. |
None
|
fcm_m
|
float
|
Fuzzification exponent for FCM cluster fitting. |
2.0
|
rule_sigma
|
float
|
Gaussian sigma applied to rule antecedent membership functions. |
1.0
|
fcr_target
|
float
|
Target feature coverage rate for randomly sampled heads. |
0.85
|
h_value
|
float | None
|
Paper-derived scale constant |
None
|
xi
|
float
|
Numeric underflow threshold constant used to bound |
743.0
|
instance_sample_fraction
|
float
|
Fraction of training instances sampled per head for FCM. |
0.8
|
rule_extraction
|
bool
|
If |
False
|
crcr_us
|
float
|
Unsupervised cumulative rule contribution rate target used in extraction. |
0.5
|
crcr_s
|
float
|
Supervised cumulative rule contribution rate target used in extraction. |
0.5
|
retrain_after_extraction
|
bool
|
If |
True
|
random_state
|
int | None
|
Random seed for reproducible head construction and FCM initialization. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Adam optimizer learning rate. |
0.01
|
verbose
|
bool | int
|
Verbosity level during training. |
False
|
batch_size
|
int | None
|
Mini-batch size for gradient descent. |
512
|
shuffle
|
bool
|
Whether to shuffle training samples each epoch. |
True
|
ur_weight
|
float
|
Weight of the uncertainty regularization term. |
0.0
|
ur_target
|
float | None
|
Target firing-level for uncertainty regularization. |
None
|
consequent_batch_norm
|
bool
|
Apply batch normalization to the consequent layer inputs. |
False
|
patience
|
int | None
|
Early-stopping patience for validation. |
20
|
restore_best
|
bool
|
Whether to restore the best validation model weights after training. |
True
|
weight_decay
|
float
|
Weight decay coefficient for the optimizer. |
1e-08
|
Source code in highfis/estimators/_mhtsk.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the MHTSK classifier and optionally extract rules.
After the base training step, if rule_extraction is enabled, the
firing-strength matrix is used to select a compact rule subset via the
CRCR criterion. When retrain_after_extraction is also set, a
second training pass is performed on the reduced model.
Source code in highfis/estimators/_mhtsk.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
MHTSKRegressor
Bases: _BaseRegressorEstimator
Estimator for the multihead Takagi-Sugeno-Kang fuzzy system.
The regressor uses the same MHTSK head construction and scale parameter strategy as the classifier. Rule extraction is currently implemented with an unsupervised scheme only, since regression does not provide class labels for the Mann-Whitney based selection used in classification.
MHTSK builds multiple sparse subantecedents from random feature subsets and jointly optimizes their rule consequents.
Reference
Z. Bian, Q. Chang, J. Wang and N. R. Pal, "Multihead Takagi-Sugeno-Kang Fuzzy System," in IEEE Transactions on Fuzzy Systems, vol. 33, no. 8, pp. 2561-2573, Aug. 2025, doi: 10.1109/TFUZZ.2025.3569227.
Initialize a MHTSK regressor estimator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Optional list of per-feature input configurations. Only the feature names are used for FCM-based MHTSK head construction. |
None
|
n_mfs
|
int
|
Number of FCM clusters per head (number of rules generated by each head). |
3
|
n_heads
|
int | None
|
Number of random heads. If |
None
|
head_size
|
int | None
|
Number of features sampled per head. If |
None
|
head_size_ratio
|
float | None
|
Alternative relative head size, as a fraction of the input dimension. |
None
|
fcm_m
|
float
|
Fuzzification exponent for FCM cluster fitting. |
2.0
|
rule_sigma
|
float
|
Gaussian sigma applied to rule antecedent membership functions. |
1.0
|
fcr_target
|
float
|
Target feature coverage rate for randomly sampled heads. |
0.85
|
h_value
|
float | None
|
Paper-derived scale constant |
None
|
xi
|
float
|
Numeric underflow threshold constant used to bound |
743.0
|
instance_sample_fraction
|
float
|
Fraction of training instances sampled per head for FCM. |
0.8
|
rule_extraction
|
bool
|
If |
False
|
crcr_us
|
float
|
Unsupervised cumulative rule contribution rate target used in extraction. |
0.5
|
retrain_after_extraction
|
bool
|
If |
True
|
random_state
|
int | None
|
Random seed for reproducible head construction and FCM initialization. |
None
|
epochs
|
int
|
Maximum number of training epochs. |
10
|
learning_rate
|
float
|
Adam optimizer learning rate. |
0.01
|
verbose
|
bool | int
|
Verbosity level during training. |
False
|
batch_size
|
int | None
|
Mini-batch size for gradient descent. |
512
|
shuffle
|
bool
|
Whether to shuffle training samples each epoch. |
True
|
ur_weight
|
float
|
Weight of the uncertainty regularization term. |
0.0
|
ur_target
|
float | None
|
Target firing-level for uncertainty regularization. |
None
|
consequent_batch_norm
|
bool
|
Apply batch normalization to the consequent layer inputs. |
False
|
patience
|
int | None
|
Early-stopping patience for validation. |
20
|
restore_best
|
bool
|
Whether to restore the best validation model weights after training. |
True
|
weight_decay
|
float
|
Weight decay coefficient for the optimizer. |
1e-08
|
Notes
The regressor supports only unsupervised rule extraction via
crcr_us because no label-based Mann-Whitney selection is available.
Source code in highfis/estimators/_mhtsk.py
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the MHTSK regressor and optionally extract rules.
After the base training step, if rule_extraction is enabled, rules
are selected via the unsupervised CRCR criterion on the firing-strength
matrix. When retrain_after_extraction is also set, a second
training pass is performed on the reduced model.
Source code in highfis/estimators/_mhtsk.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
TSKClassifier
Bases: _BaseClassifierEstimator
Vanilla TSK classifier with sum-based rule normalization.
The vanilla Takagi-Sugeno-Kang inference computes rule firing strengths with the product t-norm and normalizes them by their total sum.
References
T. Takagi and M. Sugeno, "Fuzzy identification of systems and its applications to modeling and control," in IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-15, no. 1, pp. 116-132, Jan.-Feb. 1985, doi: 10.1109/TSMC.1985.6313399.
Example
Initialise a vanilla TSK classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. Use |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
pfrb_max_rules
|
int | None
|
Maximum point-based FRB rules (unused by TSK). |
None
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_htsk.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK classifier on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators/_base.py
TSKRegressor
Bases: _BaseRegressorEstimator
Vanilla TSK regressor with sum-based rule normalization.
The vanilla Takagi-Sugeno-Kang inference computes rule firing strengths with the product t-norm and normalizes them by their total sum.
References
T. Takagi and M. Sugeno, "Fuzzy identification of systems and its applications to modeling and control," in IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-15, no. 1, pp. 116-132, Jan.-Feb. 1985, doi: 10.1109/TSMC.1985.6313399.
Example
Initialise a vanilla TSK regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_configs
|
list[InputConfig] | None
|
Per-feature :class: |
None
|
n_mfs
|
int
|
Number of k-means clusters / grid MFs (default |
5
|
mf_init
|
str
|
|
'kmeans'
|
sigma_scale
|
float | str
|
Sigma scale factor. Use |
1.0
|
random_state
|
int | None
|
Seed for k-means and weight initialisation. |
None
|
epochs
|
int
|
Maximum training epochs (default |
10
|
learning_rate
|
float
|
Adam learning rate (default |
0.01
|
verbose
|
bool | int
|
Print per-epoch progress. |
False
|
rule_base
|
str | None
|
|
None
|
batch_size
|
int | None
|
Mini-batch size (default |
512
|
shuffle
|
bool
|
Reshuffle each epoch. |
True
|
ur_weight
|
float
|
Uncertainty regularisation weight. |
0.0
|
ur_target
|
float | None
|
Uncertainty regularisation target. |
None
|
consequent_batch_norm
|
bool
|
Batch normalisation on consequent layers. |
False
|
patience
|
int | None
|
Early-stopping patience (default |
20
|
restore_best
|
bool
|
If |
True
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators/_htsk.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators/_base.py
feature_importance
Compute a normalized feature importance vector from consequent weights.
Source code in highfis/estimators/_base.py
fit
Train the TSK regressor on labeled samples.
Validation data should be supplied using x_val and y_val
when available.
Source code in highfis/estimators/_base.py
get_mf_params
Return model membership function metadata after fitting.
inspect
Return a structured summary of fitted model state and rule metadata.
Source code in highfis/estimators/_base.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators/_base.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators/_base.py
rule_activation
Return normalized rule activations for the provided inputs.
Source code in highfis/estimators/_base.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators/_base.py
feature_coverage_rate
Compute the feature coverage rate (FCR) for MHTSK heads.
FCR is the expected proportion of original features that are selected at
least once across n_heads random subsets of size head_size.