fedcausal#

Source | Issues | Changelog | Citing | causalbase

fedcausal learns causal structure from data split across sites that cannot share them. The sites send only what each method needs, never their rows:

Estimator

Data

What crosses the network

FedGES

Discrete or continuous, across sites

Structures and scores

FedRCD

Continuous, linear non-Gaussian, across sites

Additive moment sums

Learning from data in one place (GES, XGES, the scores and graphs these methods build on) is the job of causalbase.

from fedcausal import FedGES
from fedcausal.data import contiguous_split
from causalbase.datasets import load_alarm

sites = contiguous_split(load_alarm().data, 5)
model = FedGES(n_jobs=-1).fit(sites)
model.adjacency_

Federated runs work in one process for experiments, or over Flower across real machines, with the same round loop in both.

Getting started

Installation and a first federated structure.

Quickstart
Methods

FedGES and its fusion operators, and what their options change.

Algorithms and options
Deployment

FedGES and FedRCD across real machines with Flower.

Deployment
API reference

Parameters, attributes and methods of every class and function.

API reference