Package: soilcnn 0.1.0
soilcnn: Convolutional Neural Networks for Digital Soil Mapping
A framework, built on 'torch', for mapping a soil property from point observations and a stack of aligned rasters with a convolutional network that reads the neighbourhood of each point. It extracts the patches; resamples by spatial blocks or by k-fold nearest neighbour distance matching, after Linnenbrink et al. (2024) <doi:10.5194/gmd-17-5897-2024>; tunes and selects under a noise floor and the one-standard-error rule; refits the selected configuration under several seeds; and predicts median, mean and interval maps over rasters of any extent. The map's centre is the ensemble median over seeds; the mean corrects its back-transformation by smearing, after Duan (1983) <doi:10.1080/01621459.1983.10478017>. The intervals are conformal, calibrated three ways and each checked on the test set: on the cross-validated residuals; on a calibration set held out of every fold, as split conformal, after Lei et al. (2018) <doi:10.1080/01621459.2017.1307116>; or with every fold's model at each pixel, as CV+, after Barber et al. (2021) <doi:10.1214/20-AOS1965> -- with points, or whole groups of them, weighing alike, after Dunn et al. (2023) <doi:10.1080/01621459.2022.2060112>. The area of applicability of Meyer and Pebesma (2021) <doi:10.1111/2041-210X.13650> is mapped beside them. What a model learned is read by permutation, by SHAP values from expected gradients, after Erion et al. (2021) <doi:10.1038/s42256-021-00343-w>, by SAGE, after Covert et al. (2020) <doi:10.48550/arXiv.2004.00668>, by accumulated local effects, after Apley and Zhu (2020) <doi:10.1111/rssb.12377>, and by refits without each variable. Random forest and multilayer perceptron baselines run under the same folds.
Authors:
soilcnn_0.1.0.tar.gz
soilcnn_0.1.0.zip(r-4.7-any)soilcnn_0.1.0.zip(r-4.6-any)
soilcnn_0.1.0.tar.gz(r-4.7-any)soilcnn_0.1.0.tar.gz(r-4.6-any)
soilcnn_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
soilcnn/json (API)
| # Install 'soilcnn' in R: |
| install.packages('soilcnn', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/moquedace/soilcnn/issues
Pkgdown/docs site:https://moquedace.github.io
Last updated from:2379c381d2. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 198 | ||
| source / vignettes | OK | 310 | ||
| linux-release | OK | 208 | ||
| windows-devel | OK | 146 | ||
| windows-release | OK | 146 | ||
| wasm-release | OK | 144 |
Exports:ale_effectaoa_diaoa_referenceaoa_thresholdblock_bootstrapblock_bootstrap_by_sizecalc_metricscaret_availablecaret_specccccheck_fold_plancompare_importanceconformal_calibrateconformal_cvconformal_intervalconformal_scale_fitconformal_scaled_calibrateconformal_scaled_intervalcontext_importancecv_plus_calibratecv_plus_intervalcv_residualscv_residuals_for_configdi_referencedissimilarity_indexdsm_finaldsm_importancedsm_loaddsm_predictdsm_preparedsm_report_finaldsm_trainequal_area_blocksexample_landscapeexample_runfold_leakage_reportfreeze_selectionget_modelholdoutholdout_cvimportance_groupsimportance_mapimportance_pointsimportance_weightsinside_aoaknndm_cvknndm_foldslatest_run_dirlist_modelsmake_manual_tune_gridmake_tune_gridmodel_specocclusion_reportone_sepaired_family_testpermutation_importancepicp_reportprediction_sampleprint_aoaprint_noise_floorprint_one_serandom_cvrandom_foldsrefit_importanceregion_cvregion_foldsregister_modelresolve_resamplingsage_importancescore_test_gridseed_noise_floorselected_config_idset_torch_threadssetup_torch_deviceshap_importancesmearsmear_mapsmearing_checksmearing_factorsmearing_from_runspatial_correlogramspatial_cvspatial_foldssummarise_resamplestarget_transform_spec
Dependencies:bitbit64callrclicliprcorocpp11crayondescdplyrfarvergenericsgluehmsjanitorjsonlitelabelinglifecyclelubridatemagrittrmatrixStatsotelpillarpkgconfigprettyunitsprocessxprogresspspurrrR6RColorBrewerRcppreadrrlangsafetensorsscalessnakecasestringistringrterratibbletidyrtidyselecttimechangetorchtzdbutf8vctrsviridisLitevroomwithr
