matrans
Model Averaging-Assisted Optimal Transfer Learning
Description
Transfer learning, as a prevailing technique in computer sciences, aims to improve the performance of a target model by leveraging auxiliary information from heterogeneous source data. We provide novel tools for multi-source transfer learning under statistical models based on model averaging strategies, including linear regression models, partially linear models. Unlike existing transfer learning approaches, this method integrates the auxiliary information through data-driven weight assignments to avoid negative transfer. This is the first package for transfer learning based on the optimal model averaging frameworks, providing efficient implementations for practitioners in multi-source data modeling. The details are described in Hu and Zhang (2023) <https://jmlr.org/papers/v24/23-0030.html>.
Downloads
182
Last 30 days
23155th
477
Last 90 days
1.9K
Last year
Trend: +7.1% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (3 non-OK)
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'matrans-vignette.Rmd' using rmarkdown ! Package pdftex.def Error: File `576ac2e6e07db68d9617caa533bb01f5582b1fa8.png' not found: using draft setting. Error: processing vignette 'matrans-vignette.Rmd' failed with diagnostics: LaTeX failed to compile D:/RCompile/CRANpkg/local/4.4/matrans.Rcheck/vign_test/matrans/vignettes/matrans-vignette.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See matrans-vignette.log for more info. --- failed re-building 'matrans-vignette.Rmd' SUMMARY: processing the following file failed: 'matrans-vignette.Rmd' Error: Vignette re-building failed. Execution halted
Check History
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'matrans-vignette.Rmd' using rmarkdown ! Package pdftex.def Error: File `576ac2e6e07db68d9617caa533bb01f5582b1fa8.png' not found: using draft setting. Error: processing vignette 'matrans-vignette.R ...[truncated]... ytex/r/#debugging for debugging tips. See matrans-vignette.log for more info. --- failed re-building 'matrans-vignette.Rmd' SUMMARY: processing the following file failed: 'matrans-vignette.Rmd' Error: Vignette re-building failed. Execution halted
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.
dependencies in R code
Namespace in Imports field not imported from: ‘formatR’ All declared Imports should be used.