{
  "_id": "6afcee9769eab6fdff2d8c38",
  "Package": "splineKANr",
  "Type": "Package",
  "Title": "B-Spline Kolmogorov-Arnold Networks in Native R 'torch'",
  "Version": "0.5.1",
  "Authors@R": "person(given = \"Thang\", family = \"Le-Dinh\",\nemail = \"thang87sg@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Implements Kolmogorov-Arnold Networks (KAN) whose edge\nfunctions are B-splines plus a residual base activation,\nwritten in native R on top of the 'torch' package. Provides\nCox-de Boor basis evaluation with explicit extrapolation\npolicies, multi-layer networks, Adam and L-BFGS training with\nvalidation, early stopping, input and output normalization,\ngradient clipping and reproducible seeds, adaptive\n(sample-based) grid updates, grid refinement, KAN-specific\nsparsity regularization, pruning, edge-function visualization\nand model persistence. A dependency-free base R reference\nimplementation with analytic gradients is included as a\nnumerical oracle and as a training backend that does not need\n'libtorch'. The design follows Liu et al. (2024)\n<doi:10.48550/arXiv.2404.19756>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-18 00:14:23 UTC",
    "User": "root"
  },
  "Author": "Thang Le-Dinh [aut, cre, cph]",
  "Maintainer": "Thang Le-Dinh <thang87sg@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-17 18:30:02 UTC",
  "RemoteUrl": "https://github.com/cran/splineKANr",
  "RemoteRef": "HEAD",
  "RemoteSha": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
  "_user": "cran",
  "_type": "src",
  "_file": "splineKANr_0.5.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/d1af7f43feb48d11530b2040767f02ee39e6bbba30e3f9c7e290f4f269a7a5d9",
  "_filesize": 833423,
  "_sha256": "d1af7f43feb48d11530b2040767f02ee39e6bbba30e3f9c7e290f4f269a7a5d9",
  "_expires": "2027-02-26T00:17:25.000Z",
  "_created": "2026-11-18T00:14:23.000Z",
  "_published": "2026-11-18T00:17:27.508Z",
  "_upstream": "https://github.com/cran/splineKANr",
  "_status": "success",
  "_maintainer": {
    "name": "Thang Le-Dinh",
    "email": "thang87sg@gmail.com",
    "login": "thangpro9999",
    "description": "PhD in Statistics (Business Applications)",
    "uuid": 266899457
  },
  "_jobs": [
    {
      "job": 134472721589,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14384650143"
    },
    {
      "job": 134472721545,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14383393010"
    },
    {
      "job": 134470998020,
      "time": 211,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14383269066"
    },
    {
      "job": 134472721775,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14383881848"
    },
    {
      "job": 134472721643,
      "time": 87,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14382744831"
    },
    {
      "job": 134472721580,
      "time": 93,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14382879113"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409",
  "_commit": {
    "id": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
    "author": "Thang Le-Dinh <thang87sg@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.5.1\n",
    "time": 1794940202
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "splines",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "torch",
      "version": ">= 0.13.0",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.5.1",
      "date": "2026-11-17"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "thangpro9999",
      "count": 1,
      "uuid": 266899457
    }
  ],
  "_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/splineKANr"
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "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",
    "extra/splineKANr.html",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "kan_activation_check",
    "kan_benchmark",
    "kan_bspline_basis",
    "kan_bspline_basis_r",
    "kan_bspline_deriv_r",
    "kan_edge_function",
    "kan_edge_importance",
    "kan_extend_grid",
    "kan_fd_gradient_r",
    "kan_fit",
    "kan_forward_r",
    "kan_gradient_r",
    "kan_init_state",
    "kan_layer",
    "kan_load",
    "kan_make_grid",
    "kan_metrics",
    "kan_module_from_state",
    "kan_net",
    "kan_partial_dependence",
    "kan_plot_history",
    "kan_plot_network",
    "kan_prune",
    "kan_refine",
    "kan_reg_control",
    "kan_regularization_r",
    "kan_save",
    "kan_scale",
    "kan_scaler",
    "kan_spec",
    "kan_synthetic",
    "kan_unscale",
    "kan_update_grid",
    "kan_validate_all",
    "kan_validate_basis",
    "kan_validate_derivative",
    "kan_validate_gradient"
  ],
  "_help": [
    {
      "page": "kan_activation_check",
      "title": "Fraction of layer inputs outside the spline domain",
      "topics": [
        "kan_activation_check"
      ]
    },
    {
      "page": "kan_benchmark",
      "title": "Multi-seed convergence and accuracy benchmark",
      "topics": [
        "kan_benchmark"
      ]
    },
    {
      "page": "kan_bspline_basis",
      "title": "B-spline basis in torch (Cox-de Boor, batched)",
      "topics": [
        "kan_bspline_basis"
      ]
    },
    {
      "page": "kan_bspline_basis_r",
      "title": "B-spline basis by the Cox-de Boor recursion (base R reference)",
      "topics": [
        "kan_bspline_basis_r"
      ]
    },
    {
      "page": "kan_bspline_deriv_r",
      "title": "First derivative of the B-spline basis (base R reference)",
      "topics": [
        "kan_bspline_deriv_r"
      ]
    },
    {
      "page": "kan_edge_function",
      "title": "Evaluate one edge function on a grid of inputs",
      "topics": [
        "kan_edge_function"
      ]
    },
    {
      "page": "kan_edge_importance",
      "title": "Edge importance (mean absolute edge activation)",
      "topics": [
        "kan_edge_importance"
      ]
    },
    {
      "page": "kan_extend_grid",
      "title": "Extend a domain grid by uniform knots on both sides",
      "topics": [
        "kan_extend_grid"
      ]
    },
    {
      "page": "kan_fd_gradient_r",
      "title": "Central finite-difference gradient of the MSE loss (base R)",
      "topics": [
        "kan_fd_gradient_r"
      ]
    },
    {
      "page": "kan_fit",
      "title": "Fit a B-spline Kolmogorov-Arnold Network",
      "topics": [
        "kan_fit"
      ]
    },
    {
      "page": "kan_forward_r",
      "title": "Forward pass of a KAN in base R",
      "topics": [
        "kan_forward_r"
      ]
    },
    {
      "page": "kan_gradient_r",
      "title": "Mean squared error loss and analytic gradients in base R",
      "topics": [
        "kan_gradient_r"
      ]
    },
    {
      "page": "kan_init_state",
      "title": "Initialize KAN parameters",
      "topics": [
        "kan_init_state"
      ]
    },
    {
      "page": "kan_layer",
      "title": "A single B-spline KAN layer (torch module)",
      "topics": [
        "kan_layer"
      ]
    },
    {
      "page": "kan_make_grid",
      "title": "Build an extended uniform knot grid",
      "topics": [
        "kan_make_grid"
      ]
    },
    {
      "page": "kan_metrics",
      "title": "Regression accuracy metrics",
      "topics": [
        "kan_metrics"
      ]
    },
    {
      "page": "kan_module_from_state",
      "title": "Build a torch module from a state",
      "topics": [
        "kan_module_from_state"
      ]
    },
    {
      "page": "kan_net",
      "title": "Multi-layer B-spline KAN (torch module)",
      "topics": [
        "kan_net"
      ]
    },
    {
      "page": "kan_partial_dependence",
      "title": "Partial dependence of the prediction on one predictor",
      "topics": [
        "kan_partial_dependence"
      ]
    },
    {
      "page": "kan_plot_history",
      "title": "Plot the training history",
      "topics": [
        "kan_plot_history"
      ]
    },
    {
      "page": "kan_plot_network",
      "title": "Plot the network structure",
      "topics": [
        "kan_plot_network"
      ]
    },
    {
      "page": "kan_prune",
      "title": "Prune edges and hidden nodes with small activations",
      "topics": [
        "kan_prune"
      ]
    },
    {
      "page": "kan_refine",
      "title": "Refine the grid of a model (grid extension)",
      "topics": [
        "kan_refine"
      ]
    },
    {
      "page": "kan_reg_control",
      "title": "Regularization settings",
      "topics": [
        "kan_reg_control"
      ]
    },
    {
      "page": "kan_regularization_r",
      "title": "Regularization penalty in base R",
      "topics": [
        "kan_regularization_r"
      ]
    },
    {
      "page": "kan_save",
      "title": "Save and load a fitted KAN",
      "topics": [
        "kan_load",
        "kan_save"
      ]
    },
    {
      "page": "kan_scale",
      "title": "Apply or invert a scaler",
      "topics": [
        "kan_scale",
        "kan_unscale"
      ]
    },
    {
      "page": "kan_scaler",
      "title": "Fit a column scaler",
      "topics": [
        "kan_scaler"
      ]
    },
    {
      "page": "kan_spec",
      "title": "Specify a B-spline KAN architecture",
      "topics": [
        "kan_spec"
      ]
    },
    {
      "page": "kan_synthetic",
      "title": "Synthetic regression problems",
      "topics": [
        "kan_synthetic"
      ]
    },
    {
      "page": "kan_update_grid",
      "title": "Update spline grids from data (adaptive grid)",
      "topics": [
        "kan_update_grid"
      ]
    },
    {
      "page": "kan_validate_all",
      "title": "Run all numerical validations",
      "topics": [
        "kan_validate_all"
      ]
    },
    {
      "page": "kan_validate_basis",
      "title": "Validate the B-spline basis",
      "topics": [
        "kan_validate_basis"
      ]
    },
    {
      "page": "kan_validate_derivative",
      "title": "Validate the first derivative of the B-spline basis",
      "topics": [
        "kan_validate_derivative"
      ]
    },
    {
      "page": "kan_validate_gradient",
      "title": "Validate parameter gradients of the network",
      "topics": [
        "kan_validate_gradient"
      ]
    },
    {
      "page": "plot.kan_model",
      "title": "Plot the edge functions of a KAN layer",
      "topics": [
        "plot.kan_model"
      ]
    },
    {
      "page": "predict.kan_model",
      "title": "Predict from a fitted KAN",
      "topics": [
        "predict.kan_model"
      ]
    }
  ],
  "_readme": "https://github.com/cran/splineKANr/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "callr",
    "cli",
    "coro",
    "desc",
    "farver",
    "glue",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "otel",
    "processx",
    "ps",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "torch",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "splineKANr.Rmd",
      "filename": "splineKANr.html",
      "title": "Getting started with splineKANr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Fit a model",
        "2. Inspect the learned functions",
        "3. Grid refinement, pruning, regularization",
        "4. Save and reload",
        "5. Numerical validation",
        "References"
      ],
      "created": "2026-11-17 18:30:02",
      "modified": "2026-11-17 18:30:02",
      "commits": 1
    },
    {
      "source": "methods.Rmd",
      "filename": "methods.html",
      "title": "B-spline Kolmogorov-Arnold Networks in R: method, validation and an application to PLS-SEM latent scores",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Model",
        "2. Estimation",
        "3. Validation",
        "4. Benchmark",
        "5. Application: predicting satisfaction and loyalty from PLS-SEM scores",
        "References"
      ],
      "created": "2026-11-17 18:30:02",
      "modified": "2026-11-17 18:30:02",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "splinekanr",
  "_universes": [
    "cran",
    "thangpro9999"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-18T00:16:17.000Z",
      "distro": "resolute",
      "commit": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
      "fileid": "https://r2.ropensci.org/95ad56fc2354a03dab4ec8687e7184dd66a34dd53339c0f96c84c3cd50d1b4dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-11-18T00:16:35.000Z",
      "distro": "resolute",
      "commit": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
      "fileid": "https://r2.ropensci.org/fe535eedae619da6b378299e10e97f51295c81620df4e19033c2a145415e0991",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-11-18T00:16:19.000Z",
      "commit": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
      "fileid": "https://r2.ropensci.org/e4a98c216a1027f9b84c0256b94c4e29bbf385d7714aae7b39ef12a102d87dc7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-18T00:15:31.000Z",
      "commit": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
      "fileid": "https://r2.ropensci.org/1ad2b357921d127c5e5121c96a6a42f906fb55317a242f5357ba3c3aabf52155",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-11-18T00:15:37.000Z",
      "commit": "44c219f37f84960ca8f0642fc424c0538b8c0f24",
      "fileid": "https://r2.ropensci.org/0ef926b07c295cd1a5667f6f439562df35b5cbf24f22f3044299fc6a65bc3887",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44205680409"
    }
  ]
}