Skip to content

Rolling computations

You might wonder which classes in River can be wrapped with a utils.Rolling. This can be answered with a bit of metaprogramming.

import importlib
import inspect
from river.utils.rolling import Rollable

for submodule in importlib.import_module("river.api").__all__:
    for _, obj in inspect.getmembers(
        importlib.import_module(f"river.{submodule}"), lambda x: isinstance(x, Rollable)
    ):
        print(f'{submodule}.{obj.__name__}')
[covariance.EmpiricalCovariance](../../api/covariance/EmpiricalCovariance)
[metrics.Accuracy](../../api/metrics/Accuracy)
[metrics.AdjustedMutualInfo](../../api/metrics/AdjustedMutualInfo)
[metrics.AdjustedRand](../../api/metrics/AdjustedRand)
[metrics.BalancedAccuracy](../../api/metrics/BalancedAccuracy)
[metrics.ClassificationReport](../../api/metrics/ClassificationReport)
[metrics.CohenKappa](../../api/metrics/CohenKappa)
[metrics.Completeness](../../api/metrics/Completeness)
[metrics.ConfusionMatrix](../../api/metrics/ConfusionMatrix)
[metrics.CrossEntropy](../../api/metrics/CrossEntropy)
[metrics.F1](../../api/metrics/F1)
[metrics.FBeta](../../api/metrics/FBeta)
[metrics.FowlkesMallows](../../api/metrics/FowlkesMallows)
[metrics.GeometricMean](../../api/metrics/GeometricMean)
[metrics.Homogeneity](../../api/metrics/Homogeneity)
[metrics.Jaccard](../../api/metrics/Jaccard)
[metrics.LogLoss](../../api/metrics/LogLoss)
[metrics.MAE](../../api/metrics/MAE)
[metrics.MAPE](../../api/metrics/MAPE)
[metrics.MCC](../../api/metrics/MCC)
[metrics.MSE](../../api/metrics/MSE)
[metrics.MacroF1](../../api/metrics/MacroF1)
[metrics.MacroFBeta](../../api/metrics/MacroFBeta)
[metrics.MacroJaccard](../../api/metrics/MacroJaccard)
[metrics.MacroPrecision](../../api/metrics/MacroPrecision)
[metrics.MacroRecall](../../api/metrics/MacroRecall)
[metrics.MicroF1](../../api/metrics/MicroF1)
[metrics.MicroFBeta](../../api/metrics/MicroFBeta)
[metrics.MicroJaccard](../../api/metrics/MicroJaccard)
[metrics.MicroPrecision](../../api/metrics/MicroPrecision)
[metrics.MicroRecall](../../api/metrics/MicroRecall)
[metrics.MultiFBeta](../../api/metrics/MultiFBeta)
[metrics.MutualInfo](../../api/metrics/MutualInfo)
[metrics.NormalizedMutualInfo](../../api/metrics/NormalizedMutualInfo)
[metrics.Precision](../../api/metrics/Precision)
[metrics.R2](../../api/metrics/R2)
[metrics.RMSE](../../api/metrics/RMSE)
[metrics.RMSLE](../../api/metrics/RMSLE)
[metrics.ROCAUC](../../api/metrics/ROCAUC)
[metrics.Rand](../../api/metrics/Rand)
[metrics.Recall](../../api/metrics/Recall)
[metrics.RollingROCAUC](../../api/metrics/RollingROCAUC)
[metrics.SMAPE](../../api/metrics/SMAPE)
[metrics.Silhouette](../../api/metrics/Silhouette)
[metrics.VBeta](../../api/metrics/VBeta)
[metrics.WeightedF1](../../api/metrics/WeightedF1)
[metrics.WeightedFBeta](../../api/metrics/WeightedFBeta)
[metrics.WeightedJaccard](../../api/metrics/WeightedJaccard)
[metrics.WeightedPrecision](../../api/metrics/WeightedPrecision)
[metrics.WeightedRecall](../../api/metrics/WeightedRecall)
[proba.Beta](../../api/proba/Beta)
[proba.Gaussian](../../api/proba/Gaussian)
[proba.Multinomial](../../api/proba/Multinomial)
[proba.MultivariateGaussian](../../api/proba/MultivariateGaussian)
[stats.BayesianMean](../../api/stats/BayesianMean)
[stats.Cov](../../api/stats/Cov)
[stats.Mean](../../api/stats/Mean)
[stats.PearsonCorr](../../api/stats/PearsonCorr)
[stats.SEM](../../api/stats/SEM)
[stats.Sum](../../api/stats/Sum)
[stats.Var](../../api/stats/Var)