Utilities ========= Exceptions ---------- .. currentmodule:: RuleTree.exceptions .. autosummary:: :toctree: generated/ :nosignatures: MissingOptionalDependencyError NoSplitFoundWarning Optional dependencies --------------------- .. currentmodule:: RuleTree.utils.optional .. autosummary:: :toctree: generated/ :nosignatures: import_optional Drawing ------- ``RuleTree.plot_tree`` and ``RuleTree.export_graphviz`` draw with this module, whose functions also draw a subtree from its root node; its default colors are ``DEFAULT_COLORS``. .. automodule:: RuleTree.utils.plotting :no-members: .. currentmodule:: RuleTree.utils.plotting .. autosummary:: :toctree: generated/ :nosignatures: plot_tree export_graphviz Embeddings ---------- Images and texts as vectors, for the pivot stumps (they need the ``embeddings`` extra). .. automodule:: RuleTree.utils.embeddings :no-members: .. currentmodule:: RuleTree.utils.embeddings .. autosummary:: :toctree: generated/ :nosignatures: ImageEmbedder TextEmbedder Constants --------- .. automodule:: RuleTree.utils.define :no-members: Saving ------ .. currentmodule:: RuleTree.utils.data_utils .. autosummary:: :toctree: generated/ :nosignatures: json_numpy_encoder Fairness and privacy -------------------- .. currentmodule:: RuleTree.utils.fairness_metrics .. autosummary:: :toctree: generated/ :nosignatures: balance_metric max_fairness_cost privacy_metric Clustering ---------- .. currentmodule:: RuleTree.utils.bic_estimator .. autosummary:: :toctree: generated/ :nosignatures: bic Shapelets --------- The shapelet transforms used by the shapelet and proximity stumps (they need the ``shapelets`` extra). .. currentmodule:: RuleTree.utils.shapelet_transform .. autosummary:: :toctree: generated/ :nosignatures: ~Shapelets.Shapelets ~TabularShapelets.TabularShapelets Factor analysis --------------- The principal component analyses used by the clustering trees, from the ``light_famd`` package. .. currentmodule:: RuleTree.utils.light_famd .. autosummary:: :toctree: generated/ :nosignatures: PCA CA MCA MFA FAMD