Method · Software · Research Community

Meta Fuzzy
Functions

An adaptive ensemble-learning framework that integrates clustering, fuzzy memberships and predictive models to produce accurate, interpretable and data-responsive predictions.

A framework for learning how models should work together

Meta Fuzzy Functions (MFF), introduced by Tak (2018), is a model-aggregation framework designed around a simple premise: different predictive methods may carry complementary information for the same problem. Instead of selecting a single winner or assigning fixed weights, MFF learns groups of similarly behaving models in the validation prediction space and converts their fuzzy memberships into contribution weights.

Adaptive

The clustering structure, memberships and model contributions are learned from the validation behavior of the candidate models.

Model-agnostic

The framework can aggregate comparable outputs from statistical, fuzzy, machine-learning and hybrid predictive models.

Interpretable

Membership-derived weights reveal which models contribute to each meta component and by how much.

From independent predictions to adaptive meta-functions

MFF preserves the identity of the base models while learning their relationships in prediction space. The resulting meta-functions combine models that exhibit compatible validation behavior and suppress models with weak or irrelevant contributions.

Base Models
Validation Prediction Space
Clustering
Membership Weights
Final Prediction
  1. Generate validation and test/new-data predictions from a pool of base learners.
  2. Represent each learner through its validation prediction profile.
  3. Organize learners using FCM, PFCM, Gustafson–Kessel clustering or k-means.
  4. Normalize membership degrees to obtain cluster-specific contribution weights.
  5. Construct meta-functions and select the structure with the lowest validation loss.
  6. Transfer the learned contribution structure to test or new-data predictions.
What makes MFF different? It is neither winner-takes-all model selection nor a static average. The framework learns overlapping model groups and component-specific weights directly from validation predictions.

Reproducible implementations

The software layer turns the methodological framework into a reproducible workflow for building prediction matrices, tuning meta-components, generating final predictions and evaluating performance.

CRAN · v1.0.0

MFF for R

MFF 1.0.0 uses a common prediction-pool interface for regression and point forecasting. Each column represents a candidate and rows align with observed outcomes. Fit one configuration with fit_mff(), compare a grid with tune_mff(), and inspect the selected combination with weights().

  • External models. Import aligned validation and test predictions generated in R, Python or another environment with mff_pool().
  • Bootstrap and hyperparameter aggregation. Use boot_train() for bootstrap candidates or supply predictions from multiple settings as separate columns. mff_learner() wraps custom learners for training in R.
  • Forecasting. Build rolling-origin pools with rolling_train(). Use a separate pool for each forecast horizon.
  • Integrations. Use as_mff_pool() with saved out-of-fold predictions from caret or tidymodels and with rolling-origin forecasts from fable.

Supported clustering methods include fuzzy c-means, possibilistic fuzzy c-means, Gustafson–Kessel and k-means.

install.packages("MFF")
library(MFF)
vignette("mff-workflow", package = "MFF")
In development

MFF for Python

A Python implementation is being prepared for public release. It will extend the framework to Python-centered machine-learning workflows while preserving the validation-space clustering and membership-weighting logic.

Planned public materials: source code, notebooks, worked examples and API documentation.

Research using and extending MFF

Selected studies demonstrate the evolution of MFF from forecast combination to possibilistic and intuitionistic extensions, index construction, effect-size aggregation, regression, feature selection and classification.

  1. 2026Tak, N. & Ucan, A. Meta fuzzy feature-selection-based regression functions. Applied Soft Computing, 190, 114592.
  2. 2025Ataş, P. K., Tak, N., Özöğür-Akyüz, S. & Erdogan, B. E. An innovative approach to ensemble learning in bankruptcy prediction using support vector machines and meta fuzzy functions. Information Sciences, 719, 122450.
  3. 2023Yabacı Tak, A. An adaptive categorical effect size method based on intuitionistic meta fuzzy functions. Scientific Reports, 13, 17403.
  4. 2023Yabacı Tak, A. & Ercan, I. Ensemble of effect size methods based on meta fuzzy functions. Engineering Applications of Artificial Intelligence, 119, 105804.
  5. 2023Cevik, F. C., Gever, B., Tak, N. & Khaniyev, T. Forecast combination approach with meta-fuzzy functions for forecasting the number of immigrants. Soft Computing, 27, 2509–2535.
  6. 2023Gök, A. & Tak, N. Dating currency crisis and assessing the determinants based on meta fuzzy index functions. Computational Economics, 61, 1225–1250.
  7. 2022Tak, N. & Gök, A. Dating currency crises and designing early warning systems: Meta-possibilistic fuzzy index functions. International Journal of Finance & Economics, 27, 3773–3790.
  8. 2021Tak, N. Forecast combination with meta possibilistic fuzzy functions. Information Sciences, 560, 168–182.
  9. 2021Tak, N., Eğrioğlu, E., Bas, E. & Yolcu, U. An adaptive forecast combination approach based on meta intuitionistic fuzzy functions. Journal of Intelligent & Fuzzy Systems, 40, 9567–9581.
  10. 2018Tak, N. Meta fuzzy functions: Application of recurrent type-1 fuzzy functions. Applied Soft Computing, 73, 1–13.

MFF 1.0.0 examples

Combine external regression predictions

This example reconstructs a pool from the package’s bundled validation and test predictions. The same constructor accepts predictions from external models.

library(MFF)
example <- mff_example()
pool <- mff_pool(validation_predictions(example), validation_observed(example),
                 test_predictions(example), test_observed(example))
fit <- tune_mff(pool, clusters = 2:3, method = "fcm", m = c(1.5, 2),
               control = mff_control(seed = 19))
weights(fit)
evaluate(predict(fit, pool), test_observed(pool))

Aggregate bootstrap fits

Bootstrap samples are drawn from training rows. All candidates share the same validation and test rows.

library(MFF)
split <- mff_split(train = 1:15, validation = 16:23, test = 24:31)
pool <- boot_train(Volume ~ Girth + Height, datasets::trees, split,
                   times = 8, control = mff_control(seed = 44))
fit <- fit_mff(pool, clusters = 2, method = "fcm", seed = 44)
evaluate(predict(fit, pool), test_observed(pool))

Combine rolling-origin forecasts

Each candidate uses observations available at the forecast origin. This example evaluates one-step-ahead forecasts on the final 12 months.

library(MFF)
models <- list(last = function(y, h) rep(tail(y, 1), h),
               seasonal = function(y, h) tail(y, 12)[seq_len(h)],
               average = function(y, h) rep(mean(tail(y, 12)), h))
pool <- rolling_train(datasets::AirPassengers, models, horizon = 1,
                      n_validation = 12, n_test = 12, min_train = 12)
fit <- fit_mff(pool, clusters = 2, method = "fcm", seed = 21)
evaluate(predict(fit, pool), test_observed(pool))

Forecasting and fable vignette

End-to-End Vignette

Follow data preparation, base-learner predictions, meta-function tuning and evaluation in one workflow.

R Source Code

Download the executable R code behind the official workflow and adapt it to your own prediction matrices.

Function Reference

Explore package functions, inputs, outputs and examples in the official CRAN reference manual.

MFF as an open research framework

MFF is intended not only as a method and software package, but also as a platform for new research. Potential directions include alternative clustering structures, model-selection mechanisms, uncertainty-aware ensembles, classification and regression extensions, domain-specific applications and scalable implementations.

Research using MFF

If you are using MFF, developing an extension, or interested in a methodological or applied collaboration, you are invited to share your work. Relevant publications and community contributions can be highlighted on this page.