{
  "_id": "6afef75dd65881f9616f4a17",
  "Package": "capnet",
  "Type": "Package",
  "Title": "Contribution-Capped Elastic Net Regularization",
  "Version": "0.4.1",
  "Date": "2026-10-28",
  "Authors@R": "person(\"Harry\", \"He\", email = \"zih028@ucsd.edu\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Copyright": "2026 Harry He",
  "Description": "Implements contribution-capped regularization to directly\nbound per-feature contributions in predictive models. Includes\nquasi-Newton optimization for unbounded fits and projected\nproximal gradient for finite coefficient bounds, as well as\ncross-validation, walk-forward fitting and prediction, and\nplotting utilities. References: Andrew and Gao (2007)\n<doi:10.1145/1273496.1273501>; Friedman et al. (2010)\n<doi:10.18637/jss.v033.i01>; James et al. (2020)\n<doi:10.1080/01621459.2019.1609970>; Nocedal (1980)\n<doi:10.1090/S0025-5718-1980-0572855-7>.",
  "URL": "https://github.com/harryziyuhe/capnet",
  "BugReports": "https://github.com/harryziyuhe/capnet/issues",
  "License": "GPL (>= 2)",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://harryziyuhe.r-universe.dev",
  "Date/Publication": "2026-11-13 05:33:33 UTC",
  "RemoteUrl": "https://github.com/harryziyuhe/capnet",
  "RemoteRef": "HEAD",
  "RemoteSha": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-19 13:15:28 UTC",
    "User": "root"
  },
  "Author": "Harry He [aut, cre, cph]",
  "Maintainer": "Harry He <zih028@ucsd.edu>",
  "_user": "harryziyuhe",
  "_type": "src",
  "_file": "capnet_0.4.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/982cac7c08e3cd95226bb5356804a32a8b496d3da6ab62474c56ad9a62bd5f14",
  "_filesize": 712322,
  "_sha256": "982cac7c08e3cd95226bb5356804a32a8b496d3da6ab62474c56ad9a62bd5f14",
  "_expires": "2027-02-27T13:19:23.000Z",
  "_created": "2026-11-19T13:15:28.000Z",
  "_published": "2026-11-19T13:19:25.724Z",
  "_upstream": "https://github.com/harryziyuhe/capnet",
  "_status": "success",
  "_maintainer": {
    "name": "Harry He",
    "email": "zih028@ucsd.edu",
    "login": "harryziyuhe",
    "description": "PhD in Political Science @ UCSD",
    "uuid": 122750316
  },
  "_jobs": [
    {
      "job": 135586567187,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14534546523"
    },
    {
      "job": 135586567201,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14534876257"
    },
    {
      "job": 135586567218,
      "time": 167,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14535310094"
    },
    {
      "job": 135586567194,
      "time": 184,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14534756455"
    },
    {
      "job": 135584148059,
      "time": 247,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14534361325"
    },
    {
      "job": 135586567174,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14533612245"
    },
    {
      "job": 135586567383,
      "time": 107,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14534098012"
    },
    {
      "job": 135586567259,
      "time": 87,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14533392539"
    },
    {
      "job": 135586567249,
      "time": 94,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14532184957"
    }
  ],
  "_buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040",
  "_commit": {
    "id": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
    "author": "hfheziyu <zih028@ucsd.edu>",
    "committer": "hfheziyu <zih028@ucsd.edu>",
    "message": "Create capnet_11122026.pdf\n",
    "time": 1794548013
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "lbfgs",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "xts",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "harryziyuhe",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 6
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-13",
      "n": 9
    },
    {
      "week": "2026-14",
      "n": 5
    },
    {
      "week": "2026-18",
      "n": 3
    },
    {
      "week": "2026-19",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 2
    },
    {
      "week": "2026-29",
      "n": 13
    },
    {
      "week": "2026-30",
      "n": 2
    },
    {
      "week": "2026-31",
      "n": 7
    },
    {
      "week": "2026-32",
      "n": 12
    },
    {
      "week": "2026-34",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 25
    },
    {
      "week": "2026-42",
      "n": 27
    },
    {
      "week": "2026-44",
      "n": 3
    },
    {
      "week": "2026-46",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-03-11"
    },
    {
      "name": "v0.3.0",
      "date": "2026-07-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "harryziyuhe",
      "count": 137,
      "uuid": 122750316
    },
    {
      "user": "ziyuharryhe",
      "count": 22,
      "uuid": 321133516
    }
  ],
  "_userbio": {
    "uuid": 122750316,
    "type": "user",
    "name": "Harry He",
    "followers": 2,
    "description": "PhD in Political Science @ UCSD"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/capnet"
  },
  "_devurl": "https://github.com/harryziyuhe/capnet",
  "_searchresults": 10,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/capnet.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/harryziyuhe/capnet",
  "_realowner": "harryziyuhe",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.1",
      "date": "2026-11-18"
    }
  ],
  "_exports": [
    "capnet",
    "capnet_violations",
    "coef_path",
    "cv_capnet",
    "plot_redistribution",
    "simulate_capnet_data",
    "walk_capnet"
  ],
  "_help": [
    {
      "page": "capnet",
      "title": "Fit a linear model with elastic net and contribution cap regularization",
      "topics": [
        "capnet"
      ]
    },
    {
      "page": "capnet_violations",
      "title": "Check contribution-cap violations for a fitted 'capnet' model",
      "topics": [
        "capnet_violations"
      ]
    },
    {
      "page": "coef_path",
      "title": "Calculate coefficients along a penalty path",
      "topics": [
        "coef_path"
      ]
    },
    {
      "page": "coef.capnet",
      "title": "Extract coefficients from a fitted 'capnet' model",
      "topics": [
        "coef.capnet"
      ]
    },
    {
      "page": "coef.walk_capnet",
      "title": "Extract coefficient paths from a walk-forward 'capnet' fit",
      "topics": [
        "coef.walk_capnet"
      ]
    },
    {
      "page": "cv_capnet",
      "title": "Perform cross-validation for 'capnet'",
      "topics": [
        "cv_capnet"
      ]
    },
    {
      "page": "normalize_family",
      "title": "Normalize user input into a stats family object",
      "topics": [
        "normalize_family"
      ]
    },
    {
      "page": "plot_redistribution",
      "title": "Plot redistribution of coefficients and contributions",
      "topics": [
        "plot_redistribution"
      ]
    },
    {
      "page": "plot.capnet_path",
      "title": "Plot coefficient paths along a single hyperparameter",
      "topics": [
        "plot.capnet_path"
      ]
    },
    {
      "page": "plot.cv_capnet",
      "title": "Plot cross-validation results for 'cv_capnet'",
      "topics": [
        "plot.cv_capnet"
      ]
    },
    {
      "page": "predict.capnet",
      "title": "Predict from a fitted 'capnet' model",
      "topics": [
        "predict.capnet"
      ]
    },
    {
      "page": "predict.walk_capnet",
      "title": "Predict from a walk-forward 'capnet' fit",
      "topics": [
        "predict.walk_capnet"
      ]
    },
    {
      "page": "print.capnet_violations",
      "title": "Print the violation matrix from a 'capnet_violations' object",
      "topics": [
        "print.capnet_violations"
      ]
    },
    {
      "page": "simulate_capnet_data",
      "title": "Generate synthetic data for testing 'capnet'",
      "topics": [
        "simulate_capnet_data"
      ]
    },
    {
      "page": "validate_family_supported",
      "title": "Validate the family/link combination is supported",
      "topics": [
        "validate_family_supported"
      ]
    },
    {
      "page": "walk_capnet",
      "title": "Perform walk-forward model fitting with contribution caps",
      "topics": [
        "walk_capnet"
      ]
    }
  ],
  "_pkglogo": "https://github.com/harryziyuhe/capnet/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/harryziyuhe/capnet/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lbfgs",
    "lifecycle",
    "Matrix",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr",
    "xts",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "capnet_guide.Rmd",
      "filename": "capnet_guide.html",
      "title": "capnet: Contribution-Capped Elastic Net Regularization",
      "author": "Harry He",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Method",
        "The Contribution Cap Penalty",
        "Optimization Strategy",
        "Getting Started",
        "Cross-Validation and Fitting",
        "Visualizing Coefficient Redistribution",
        "Computational Cost",
        "Model Parameters",
        "Standardization",
        "Multiplier",
        "Box Constraints",
        "Diagnosing Convergence Failure",
        "Convergence Sensitivity to $\\gamma$",
        "Convergence Across Specifications",
        "Why Different Specifications Fail at Different $\\gamma$ Values",
        "$\\lambda$ Selection with Active Contribution Caps",
        "Cross-Validation Instability",
        "Coefficient Stability Across CV Runs",
        "Predictive Performance",
        "Standard Well-Behaved Features",
        "High-Variance Features with Occasional Spikes",
        "Application Domains",
        "Finance",
        "Social Science",
        "Machine Learning and Statistical Modeling",
        "Healthcare and Natural Science"
      ],
      "created": "2026-09-21 18:53:04",
      "modified": "2026-10-30 21:18:17",
      "commits": 5
    }
  ],
  "_score": 4.954242509439325,
  "_indexed": true,
  "_nocasepkg": "capnet",
  "_universes": [
    "harryziyuhe"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-11-19T13:17:39.000Z",
      "distro": "resolute",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/84d8652d2bb88f63c14fb801dc4733aa2300fc968432e1d1596f514b6b2766fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-11-19T13:17:33.000Z",
      "distro": "resolute",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/42f1f7dd44c9d0b2fab4364c2c65edf05b550445301e571258866f6cc3418335",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-11-19T13:17:38.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/8cbff73b2d7143dcf23380bbd788bed5ff0c0736a8ca9c060ad17b5917389043",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-11-19T13:17:47.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/bd3007c4bb23b3dc7569a6b3be2cbc5aae08a476981fae6402d5a66d65719aa1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.1",
      "date": "2026-11-19T13:17:36.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/1343af8928ccd1af201fae5b2557db38d54bb39ff5562a3e59201593d76dfdd5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-11-19T13:16:48.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/4da0817e555ec2adb7d7b2bc0fcf1a894829ac3af9c5eba97ed80e21d50f8a1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-11-19T13:16:50.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/8d456637c311ac1ebe0b05c282b60d9b6bb01497ba8664603264119474ae4604",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-11-19T13:16:45.000Z",
      "commit": "272ca2305dfd3e161950f0543d4e21ecf8e66f4f",
      "fileid": "https://r2.ropensci.org/c22c863e95524abdbe54023eb58ec482d51563c67e8ae9bff460ae91753cc718",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harryziyuhe/actions/runs/44531010040"
    }
  ]
}