{
  "_id": "6afdadaa117874b00e23dea7",
  "Package": "splineKANr",
  "Type": "Package",
  "Title": "B-Spline Kolmogorov-Arnold Networks in Native R 'torch'",
  "Version": "0.5.3",
  "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": "Apache License (== 2.0)",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://thangpro9999.r-universe.dev",
  "Date/Publication": "2026-11-13 15:29:58 UTC",
  "RemoteUrl": "https://github.com/thangpro9999/splinekanr",
  "RemoteRef": "HEAD",
  "RemoteSha": "dc179396722d2c451961e68bd51d155943711079",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-18 13:23:57 UTC",
    "User": "root"
  },
  "Author": "Thang Le-Dinh [aut, cre, cph]",
  "Maintainer": "Thang Le-Dinh <thang87sg@gmail.com>",
  "_user": "thangpro9999",
  "_type": "src",
  "_file": "splineKANr_0.5.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/d4185348ef16ac4c229d20e7deb751b0f16d1f97a6220d3a739b429ca831bc6b",
  "_filesize": 834116,
  "_sha256": "d4185348ef16ac4c229d20e7deb751b0f16d1f97a6220d3a739b429ca831bc6b",
  "_expires": "2027-02-26T13:52:41.000Z",
  "_created": "2026-11-18T13:23:57.000Z",
  "_published": "2026-11-18T13:52:42.711Z",
  "_upstream": "https://github.com/thangpro9999/splinekanr",
  "_status": "success",
  "_maintainer": {
    "name": "Thang Le-Dinh",
    "email": "thang87sg@gmail.com",
    "login": "thangpro9999",
    "description": "PhD in Statistics (Business Applications)",
    "uuid": 266899457
  },
  "_jobs": [
    {
      "job": 134832977205,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14431521376"
    },
    {
      "job": 134832977230,
      "time": 118,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14431072803"
    },
    {
      "job": 134832977303,
      "time": 176,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14433176044"
    },
    {
      "job": 134832977465,
      "time": 300,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14432848411"
    },
    {
      "job": 134831054909,
      "time": 195,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14430054815"
    },
    {
      "job": 134832977025,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14432090552"
    },
    {
      "job": 134832977349,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14432056042"
    },
    {
      "job": 134832977225,
      "time": 73,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14432170719"
    },
    {
      "job": 134832977351,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14430583890"
    }
  ],
  "_buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509",
  "_commit": {
    "id": "dc179396722d2c451961e68bd51d155943711079",
    "author": "Thang Le-Dinh <thang87sg@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update .Rbuildignore",
    "time": 1794583798
  },
  "_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": "thangpro9999",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-44",
      "n": 7
    },
    {
      "week": "2026-46",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.5.3",
      "date": "2026-11-13"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "thangpro9999",
      "count": 10,
      "uuid": 266899457
    }
  ],
  "_userbio": {
    "uuid": 266899457,
    "type": "user",
    "name": "Thang Le-Dinh",
    "followers": 0,
    "description": "PhD in Statistics (Business Applications)"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/splineKANr"
  },
  "_devurl": "https://github.com/thangpro9999/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"
  ],
  "_homeurl": "https://github.com/thangpro9999/splinekanr",
  "_realowner": "thangpro9999",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.5.1",
      "date": "2026-11-18"
    }
  ],
  "_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/thangpro9999/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-10-29 14:59:44",
      "modified": "2026-10-29 14:59:44",
      "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-10-29 14:59:44",
      "modified": "2026-10-29 14:59:44",
      "commits": 1
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "splinekanr",
  "_universes": [
    "thangpro9999"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-11-18T13:26:01.000Z",
      "distro": "resolute",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/878603192f709bf61f49b243c807fde7e7511e54fdc795944cebc9afa8d8c5cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-11-18T13:25:46.000Z",
      "distro": "resolute",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/b7e05cce9b7c3413e2335d64f3e4c84749e416c89728735506850507c137a998",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-11-18T13:41:42.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/8972ecd2c03f13572b2f7c5b27f5d937eff057b8a33e4d1ce3e6280edb689717",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-11-18T13:50:12.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/bebcd224c32cc19ad8bc116d6a6d95079941e0adec981977ac3b034282d9125d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.3",
      "date": "2026-11-18T13:25:47.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/00e1ccd50048a27cb1a9a401b3bb8380b348cb322a2886144d307974673d81de",
      "status": "success",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-11-18T13:25:08.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/cf350e54026606c9c380de35a056685cb35ff8c63a1e2ac7dd2d0ea5ff122ae7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-11-18T13:25:05.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/27d27411c0951c097a2521231c6fa258a07d5c942a7bcf38c5db43e2c3372f70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-11-18T13:25:11.000Z",
      "commit": "dc179396722d2c451961e68bd51d155943711079",
      "fileid": "https://r2.ropensci.org/9b170f0e9fcbe55360903cb8f43762344b1f79bec74f256e7251093195249a8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thangpro9999/actions/runs/44312754509"
    }
  ]
}