Documentation-only landing page that summarises the scope of every pillar, its current implementation status, and the governing mathematical object. Use this together with the package overview — edaphos-package — as the starting point for navigating the API.
Details
| Pillar | Namespace | Status | Governing object |
| 1. Causal AI | causal_* | implemented | Structural causal model \(G = (V, E)\) with backdoor-adjusted estimand \(\beta_{x \to y}^{\text{do}}\) (Pearl, 2009); LM and BART estimators; real-data Cerrado application (causal_cerrado_real_dag(), v1.4.0) identifying direct effects on 1095 WoSIS topsoil profiles (MAP, tree cover, clay); LLM-driven Knowledge-Graph pipeline (causal_kg_new(), causal_llm_extract(), causal_augment_dag()) supporting Ollama / OpenAI / Anthropic; multi-extractor voting (causal_llm_vote(), causal_llm_ingest_abstract_voted()) with majority / weighted / intersection rules for consensus across backends; paginated corpus clients for SciELO / OpenAlex + causal_corpus_deduplicate(); resumable disk-cached ingestion (causal_llm_ingest_corpus() with cache_dir + max_retries); ontology alignment against a curated Cerrado vocabulary and live FAO AGROVOC SPARQL, including concurrent batched alignment (causal_ontology_agrovoc_align_batch()); bottom-up structure learning from horizon data via causal_structure_learn() (hc / tabu / pc-stable / mmhc backed by bnlearn) with bootstrap edge confidence; paper-scale persistence and audit via causal_kg_save() / causal_kg_load() (portable RDS edge-list), causal_kg_to_turtle() (W3C RDF 1.1 Turtle export with reified provenance), causal_kg_rank_edges() (multi-source ranking) and a summary() method. |
| 2. Physics-Informed ML | piml_* | implemented | Pedogenetic ODE \(dy/dz = -\lambda_0 e^{-\mu z}(y - y_\infty)\) and Neural ODE \(dy/dz = f_\theta(z, y, \mathbf{x})\); Bayesian posterior over \((\lambda_0, \mu, y_\infty, y_0)\) via Laplace approximation and adaptive random-walk Metropolis (piml_profile_fit_bayesian()); Neural-ODE deep ensemble (piml_neural_ode_fit_ensemble()) approximating the predictive posterior through K independent trajectories. |
| 3. 4D Pedometry | temporal_* | implemented | Stacked ConvLSTM (Shi et al., 2015) with seq-to-seq training, multi-step rollout and a mass-balance physics loss. |
| 4. Foundation Models | foundation_* | implemented | SimCLR scaffold (foundation_simclr_pretrain()), MoCo v2 (foundation_moco_pretrain()) with momentum encoder + dictionary queue + raster-specific augmentations, and a planetary-scale tile pipeline (foundation_tile_source_soilgrids(), foundation_tile_align(), foundation_tile_dataset(), foundation_moco_pretrain_tiles() with Apple MPS / NVIDIA CUDA device dispatch, foundation_moco_embed_raster()); downstream fine-tuning API (foundation_fit_classifier(), foundation_fit_regressor()) with linear-probe and full fine-tuning regimes + a two-group learning-rate schedule; public pretrained weights distribution via Zenodo (foundation_weights_list(), foundation_weights_download(), foundation_weights_load()) with SHA-256 verification and an on-disk cache under tools::R_user_dir("edaphos"). The first published encoder, edaphos-cerrado-moco-v1 (DOI 10.5281/zenodo.19701276, CC-BY-4.0), was pretrained on 50 000 16x16 Cerrado tiles (SoilGrids + WorldClim + SRTM). Honestly benchmarked in the v1.3.0 case-cerrado-end-to-end vignette against a ranger + gstat kriging baseline on 1212 real WoSIS profiles. |
| 5. Autonomous Active Learning | al_* | implemented | Hybrid policy \(\pi(\mathbf{x}) = \alpha\,\tilde u(\mathbf{x}) + (1-\alpha)\,\tilde d(\mathbf{x})\) with PIML-backed gate; BatchBALD information-theoretic batch acquisition (al_query_batchbald()) with greedy log-det submodular optimisation over QRF tree-level predictions. |
| 6. Quantum ML | quantum_* | implemented | Pure-R ZZFeatureMap (quantum_feature_map()) + quantum-kernel Gram matrix (quantum_kernel()) + kernel ridge regression (quantum_krr_fit()); Qiskit-backed VQE bridge (quantum_hamiltonian(), quantum_hamiltonian_h2(), quantum_hamiltonian_organo_mineral(), quantum_vqe_fit(), quantum_vqe_exact()) with three back ends — exact statevector, shot-based Aer with SPSA, and full IBM Quantum Runtime dispatch (quantum_ibmq_submit(), quantum_ibmq_available(), quantum_ibmq_backends(), quantum_ibmq_least_busy()) with M3 readout mitigation and ZNE gate-folding error mitigation; qiskit-nature bridge (quantum_hamiltonian_from_pyscf(), quantum_hamiltonian_organo_mineral_nature(), quantum_nature_total_energy()) that lifts a user-supplied XYZ geometry through PySCF RHF + FreezeCore + ActiveSpace + ParityMapper into a qubit Hamiltonian, with curated organo-mineral presets (formic-acid carboxylate, methanediol ortho-diol, Fe(III)–formate mineral binding). |
| 7. Bayesian Hierarchical Spatial | bhs_* | implemented | Hierarchical spatial linear model \(y = X\beta + w + \varepsilon\) with \(w \sim GP(0, \sigma^2 \rho(\cdot; \phi))\) and \(\varepsilon \sim N(0, \tau^2 I)\); conjugate Gibbs sampler (bhs_fit()) whose \(\beta\) and variance updates are closed-form, with the range \(\phi\) handled by profile-MLE over a user grid — the same hyperparameter strategy as INLA (Rue, Martino and Chopin, 2009) — and an RcppArmadillo backend for the Cholesky-heavy inner loop. Bayesian kriging at new sites (predict.edaphos_bhs()) propagates every posterior draw of \((\beta, \sigma^2, \tau^2)\) into the predictive distribution. Rank-deficient designs are rejected up front with the aliased column named. |
| 8. Neural Operators | no_* | implemented | Learns the solution operator \(\mathcal{G}: u(z) \mapsto y(z)\) between depth-function spaces rather than a pointwise regression. Two architectures: a 1-D Fourier Neural Operator (no_fno_fit()) whose blocks act as \((\mathcal{K}v)(z) = \mathcal{F}^{-1}(R_\theta \cdot \mathcal{F}v)(z)\) with the spectrum truncated to n_modes, and a DeepONet (no_deeponet_fit()) factorising \(\mathcal{G}(u)(z) \approx \sum_{k=1}^{p} b_k(u)\, t_k(z)\) into branch and trunk networks, which is the constructive form of the Chen and Chen (1995) universal operator approximation theorem. Both ship a pure-R backend and a torch backend with full autograd and cpu / mps / cuda dispatch. |
| 9. Diffusion Models | dm_* | implemented | Denoising Diffusion Probabilistic Model (Ho, Jain and Abbeel, 2020) over soil-map patches. Forward process \(q(x_t \mid x_0) = N(\sqrt{\bar\alpha_t}\, x_0, (1-\bar\alpha_t) I)\) on the cosine schedule of Nichol and Dhariwal (2021) (dm_cosine_schedule()); a denoiser \(\epsilon_\theta(x_t, t)\) trained by score matching (dm_fit()); ancestral sampling from \(t = T\) down to 0 (dm_sample()), optionally conditioned on covariates. The backend = "r" trainer updates the readout layer only over random hidden features (an ELM regime, Huang, Zhu and Siew, 2006); backend = "torch" trains the whole network. |
| 10. Graph Neural Networks | gnn_* | implemented | Graph Attention Network (Veličković et al., 2018) over a k-NN co-location graph of profiles (gnn_build_graph(), with edges = "spatial", "feature" or "hybrid" and optional self-loops). gnn_fit() trains multi-head attention \(\alpha_{ij} = \mathrm{softmax}_j(\mathrm{LeakyReLU}(a^\top [Wh_i \Vert Wh_j]))\) by analytic reverse-mode gradients through the grouped softmax — verified against central finite differences — with residual connections, head averaging, a transductive train_mask and a closed-form ridge readout. gnn_fit_ensemble() averages seeds so the comparison against a quantile regression forest is between two ensembles rather than one model and a forest; gnn_embed() exposes the learned node embeddings and gnn_causal_discovery() feeds them to Pillar 1's structure learner. |
