{
  "_id": "6afe7310b0151ec0d657f2b7",
  "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",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-19 03:51:41 UTC",
    "User": "root"
  },
  "Author": "Harry He [aut, cre, cph]",
  "Maintainer": "Harry He <zih028@ucsd.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-18 21:00:02 UTC",
  "RemoteUrl": "https://github.com/cran/capnet",
  "RemoteRef": "HEAD",
  "RemoteSha": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
  "_user": "cran",
  "_type": "src",
  "_file": "capnet_0.4.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/ab0dcb2b0be880d5af597e3a8d492cfc0f8426815dff2b469be0f0455d498a67",
  "_filesize": 818380,
  "_sha256": "ab0dcb2b0be880d5af597e3a8d492cfc0f8426815dff2b469be0f0455d498a67",
  "_expires": "2027-02-27T03:54:54.000Z",
  "_created": "2026-11-19T03:51:41.000Z",
  "_published": "2026-11-19T03:54:56.753Z",
  "_upstream": "https://github.com/cran/capnet",
  "_status": "success",
  "_maintainer": {
    "name": "Harry He",
    "email": "zih028@ucsd.edu",
    "login": "harryziyuhe",
    "description": "PhD in Political Science @ UCSD",
    "uuid": 122750316
  },
  "_jobs": [
    {
      "job": 135325783017,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14497347187"
    },
    {
      "job": 135325782971,
      "time": 152,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14497052932"
    },
    {
      "job": 135324105715,
      "time": 275,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14496778125"
    },
    {
      "job": 135325783011,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14497380484"
    },
    {
      "job": 135325782919,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14496913150"
    },
    {
      "job": 135325782976,
      "time": 118,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14497217443"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670",
  "_commit": {
    "id": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
    "author": "Harry He <zih028@ucsd.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.1\n",
    "time": 1795035602
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.4.1",
      "date": "2026-11-18"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "harryziyuhe",
      "count": 1,
      "uuid": 122750316
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 637,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/capnet"
  },
  "_devurl": "https://github.com/harryziyuhe/capnet",
  "_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"
  ],
  "_cranurl": false,
  "_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/cran/capnet/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/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-11-18 21:00:02",
      "modified": "2026-11-18 21:00:02",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "capnet",
  "_universes": [
    "cran",
    "harryziyuhe"
  ],
  "_indexurl": "https://harryziyuhe.r-universe.dev/capnet",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-11-19T03:53:47.000Z",
      "distro": "resolute",
      "commit": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
      "fileid": "https://r2.ropensci.org/80b32bb0a3d546c095cac8ad3fe1b7a2c1ff0d4adb61eb2ecc61a71197fe8bda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-11-19T03:53:47.000Z",
      "distro": "resolute",
      "commit": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
      "fileid": "https://r2.ropensci.org/45fe035f74ce82e9e6af2906288ce1ebdbcc0e6bc38b2aaf9a00007b919bf31e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.1",
      "date": "2026-11-19T03:54:06.000Z",
      "commit": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
      "fileid": "https://r2.ropensci.org/8a4972f5c9ee3762870d79fadc9a99a583a852b429f8dadc51e906d983202a0d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-11-19T03:52:51.000Z",
      "commit": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
      "fileid": "https://r2.ropensci.org/11515a632d8569f82c2e1bc7267b62011a8522bbb3831802e16337b7079c2411",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-11-19T03:53:00.000Z",
      "commit": "ecd8501502ce80f2c1c7eab6a849c604afe853ea",
      "fileid": "https://r2.ropensci.org/15f6afbf0369a0cca589c956bc8aef2fd47e94d19c53f619411316e1ab5acf57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44453826670"
    }
  ]
}