Estimators
Scikit-learn compatible estimator wrappers for highFIS TSK models.
This module provides high-level, sklearn-compatible wrappers for every TSK
variant implemented in highfis.models. Each estimator follows the standard
fit / predict / score interface and handles membership-function
initialization, model construction, and the training loop internally.
Base Classes
Two abstract base classes share the common logic:
_BaseClassifierEstimator: For classification tasks._BaseRegressorEstimator: For regression tasks.
Model Family Overview
Concrete estimators cover the following model families:
TSK Vanilla Takagi-Sugeno-Kang model.
Implemented by:
`TSKClassifierEstimator`, `TSKRegressorEstimator`
HTSK High-dimensional TSK via averaged defuzzification.
Implemented by:
`HTSKClassifierEstimator`, `HTSKRegressorEstimator`
LogTSK Inverse-log normalization of log-domain rule weights for high-dimensional data.
Implemented by:
`LogTSKClassifierEstimator`, `LogTSKRegressorEstimator`
DombiTSK Dombi T-norm based TSK.
Implemented by:
`DombiTSKClassifierEstimator`, `DombiTSKRegressorEstimator`
ADMTSK Adaptive Dombi TSK with Composite Gaussian membership functions.
Implemented by:
`ADMTSKClassifierEstimator`, `ADMTSKRegressorEstimator`
AYATSK Adaptive Yager T-norm based TSK.
Implemented by:
`AYATSKClassifierEstimator`, `AYATSKRegressorEstimator`
AdaTSK Adaptive softmin based TSK.
Implemented by:
`AdaTSKClassifierEstimator`, `AdaTSKRegressorEstimator`
ADPTSK Adaptive double-parameter softmin based TSK with Gaussian PIMF.
Implemented by:
`ADPTSKClassifierEstimator`, `ADPTSKRegressorEstimator`
FSRE-AdaTSK AdaTSK with feature-selection and rule-extraction gates.
Implemented by:
`FSREAdaTSKClassifierEstimator`, `FSREAdaTSKRegressorEstimator`
DG-ALETSK Double-gate adaptive Ln-Exp softmin TSK.
Implemented by:
`DGALETSKClassifierEstimator`, `DGALETSKRegressorEstimator`
DG-TSK Double-gate TSK with point-based FRB.
Implemented by:
`DGTSKClassifierEstimator`, `DGTSKRegressorEstimator`
HDFIS High-dimensional inference with both product DMF and minimum frozen-antecedent variants.
Implemented by:
`HDFISProdClassifierEstimator`, `HDFISProdRegressorEstimator`,
`HDFISMinClassifierEstimator`, `HDFISMinRegressorEstimator`
Membership Function Initialization
The following strategies are available for initializing membership functions:
-
mf_init="kmeans"(default): K-means cluster centroids are used as membership function centers. The sigma values are derived from within-cluster spread and scaled bysigma_scale. This produces a CoCo rule base by default. -
mf_init="grid": Regular grid placement controlled byInputConfig. This produces a Cartesian rule base by default.
Notes
- All estimators follow the scikit-learn API design.
- Model construction and training are fully encapsulated within the estimator interface.
ADMTSKClassifierEstimator
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.
Example
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, either |
'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
|
validation_data
|
tuple[Any, Any] | None
|
Validation dataset used for early stopping. |
None
|
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.py
2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
ADMTSKRegressorEstimator
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.
Example
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, either |
'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
|
validation_data
|
tuple[Any, Any] | None
|
Validation dataset used for early stopping. |
None
|
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.py
2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
ADPTSKClassifierEstimator
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
Example
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. |
True
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
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.py
2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
ADPTSKRegressorEstimator
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
Example
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. |
True
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
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.py
2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
AYATSKClassifierEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
AYATSKRegressorEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
AdaTSKClassifierEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
AdaTSKRegressorEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
DGALETSKClassifierEstimator
Bases: FSREAdaTSKClassifierEstimator
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
|
Initial ALE-softmin parameter |
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators.py
3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
DGALETSKRegressorEstimator
Bases: FSREAdaTSKRegressorEstimator
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
|
Initial ALE-softmin parameter |
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators.py
3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
DGTSKClassifierEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
DGTSKRegressorEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
DombiTSKClassifierEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
DombiTSKRegressorEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
FSREAdaTSKClassifierEstimator
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
|
Initial ALE-softmin parameter |
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators.py
3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
FSREAdaTSKRegressorEstimator
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
|
Initial ALE-softmin parameter |
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in highfis/estimators.py
3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
HDFISMinClassifierEstimator
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.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
HDFISMinRegressorEstimator
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.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
HDFISProdClassifierEstimator
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
Source code in highfis/estimators.py
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
HDFISProdRegressorEstimator
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.
Example
Source code in highfis/estimators.py
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
HTSKClassifierEstimator
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.
Example
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
HTSKRegressorEstimator
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.
Example
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.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
LogTSKClassifierEstimator
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.
Example
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
LogTSKRegressorEstimator
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.
Example
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
TSKClassifierEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 | |
evaluate
Compute classification evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK classifier on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict class labels for input samples.
predict_proba
Predict class probabilities for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.
Source code in highfis/estimators.py
score
Return classification accuracy on the provided dataset.
Source code in highfis/estimators.py
TSKRegressorEstimator
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
|
validation_data
|
tuple[Any, Any] | None
|
Optional |
None
|
weight_decay
|
float
|
L2 weight decay for consequent parameters. |
1e-08
|
Source code in highfis/estimators.py
1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 | |
evaluate
Compute regression evaluation metrics for the provided dataset.
Source code in highfis/estimators.py
fit
Train the TSK regressor on labeled samples.
Source code in highfis/estimators.py
load
classmethod
Load a persisted estimator created by save.
Source code in highfis/estimators.py
predict
Predict continuous target values for input samples.
Source code in highfis/estimators.py
save
Persist estimator configuration, model weights and fitted metadata.