The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
FuzzyClassifier. Each classifier has a generator
named after its function with the suffix Model
(e.g. FuzzyGaussianNaiveBayesModel,
GauNBFuzzyParamModel,
DWFuzzyGammaNaiveBayesModel) and the methods
$new(), $fit(train, cl),
$predict(newdata, type), $set_params(...),
$is_fitted() and $print(). Calls can be
chained:
FuzzyGammaNaiveBayesModel$new()$fit(x, y)$predict(x_new).verbose = FALSE or
globally with options(FuzzyClass.verbose = FALSE) (see
fuzzy_verbose()).FuzzyGaussianNaiveBayes(train, cl) and the other functions
train and return the R6 object, and predict(fit, newdata) /
predict(fit, newdata, type = "matrix") keep working.
type = "prob" is now accepted as a synonym of
"matrix". Predictions are identical to version 0.2.0.fit$estimates (they were the elements of the S3 list
returned in previous versions), together with fit$params,
fit$predictors, fit$classes,
fit$n_obs and fit$fit_time.cli) for
untrained models, train/cl with different
sizes and missing required arguments (wdelta,
weta).fuzzy_naive_bayes(), so every
classifier can be used with parsnip,
workflows, recipes, rsample,
tune and yardstick. The classifier is chosen
by the engine ("gaussian", "gamma",
"beta", "exponential",
"binomial", "poisson",
"geometric", "trapezoidal",
"triangular", "hypergeometric",
"bayes_rule", "naive",
"dw_gamma", "dw_hypergeometric",
"gaussian_fuzzy_param",
"exponential_fuzzy_param" and
"poisson_fuzzy_param").fuzzy, alpha_cut and
ranking_method (metd) can be tuned with
tune(); their dials parameter objects are
fuzzy_membership(), alpha_cut() and
ranking_method().parsnip, dials and the other tidymodels
packages are only suggested: the model is registered when
parsnip is loaded.R6 and
cli.testthat structure
(tests/testthat/), so they run with
R CMD check and devtools::test().metd = 5
in functions GauNBFuzzyParam, ExpNBFuzzyParam,
and PoiNBFuzzyParam.max.col for substantial speedups.verifyNumbersFunction) ensuring compatibility with R 4.2+
and resolving missing argument errors in
DWFuzzyHipergeometricNaiveBayes,
FuzzyBinomialNaiveBayes,
FuzzyHipergeometricNaiveBayes, and
FuzzyPoissonNaiveBayes.FuzzyHipergeometricNaiveBayes by applying joint membership
once to the class score, consistent with other models.FuzzyGeoNaiveBayes applied once per class.dplyr, tibble, tidyr,
rlang, purrr) from Imports.get_classes()) for estimation and
prediction, and the columns of type = "matrix" follow the
levels.FuzzyGammaNaiveBayes /
DWFuzzyGammaNaiveBayes: exact Gamma maximum likelihood
estimates (the previous optimisation was bounded by max(x),
which truncated the shape/scale).FuzzyBetaNaiveBayes: removed the artificial upper bound
(10) on the Beta shapes; the method of moments is used as starting
value.FuzzyGeoNaiveBayes: probability mass function
consistent with the estimator (dgeom, support 0, 1, 2, …);
memberships use the same intervals in training and prediction, empty
intervals (and values outside the training range) receive 0.001.FuzzyBinomialNaiveBayes: closed-form method of moments
with n >= max(x).GauNBFuzzyParam / ExpNBFuzzyParam:
confidence intervals (alpha-cuts) use the class sample size instead of
the total sample size. ExpNBFuzzyParam ranks densities (as
the Gaussian and Poisson versions), since the ranking methods assume
non-negative fuzzy numbers.PoiNBFuzzyParam: alpha-cuts are now nested (they shrink
as alpha increases).metd = 1..5) vectorized; the closed
form of the Q distance replaces one eigen decomposition per observation.
doParallel, foreach and parallel
are no longer needed; cores is kept for backward
compatibility.FuzzyTriangularNaiveBayes /
FuzzyTrapezoidalNaiveBayes: densities outside the support
are floored at 1e-10, avoiding ties decided by class order.FuzzyNaiveBayes: the arguments m and
Pi are now passed to the estimators (they were
ignored).FuzzyHipergeometricNaiveBayesDWFuzzyHipergeometricNaiveBayesFuzzyNaiveBayes to one column in the dataDWFuzzyGammaNaiveBayesGeometricFuzzyGammaNaiveBayesFuzzyBayesRulemetd=4.GauNBFuzzyParam,
ExpNBFuzzyParam,GamNBFuzzyParam and
PoiNBFuzzyParam. The form can be used considering
metd = 4.FuzzyTriangularNaiveBayes.predict has been optimized to functions
FuzzyGammaNaiveBayes.GamNBFuzzyParam and
GauNBFuzzyParam.predict function has been optimized to
FuzzyGammaNaiveBayes, FuzzyBetaNaiveBayes,
FuzzyBinomialNaiveBayes,FuzzyExponencialNaiveBayes,FuzzyTriangularNaiveBayes,FuzzyPoissonNaiveBayes\() by function(.) in function
FuzzyNaiveBayes, line 262.description in FuzzyClass
DocumentationFuzzyGammaNaiveBayes.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.