{
  "_id": "6a0f6528acfb0bcc41c5d01e",
  "Package": "kerntools",
  "Type": "Package",
  "Title": "Kernel Functions and Tools for Machine Learning Applications",
  "Version": "1.2.0",
  "Authors@R": "person(\"Elies\", \"Ramon\", email = \"eramon@everlyrusher.com\",\nrole = c(\"aut\",\"cre\",\"cph\"),  comment = c(ORCID = \"0000-0002-7953-8115\"))",
  "Description": "Kernel functions for diverse types of data (including, but\nnot restricted to: nonnegative and real vectors, real matrices,\ncategorical and ordinal variables, sets, strings), plus other\nutilities like kernel similarity, kernel Principal Components\nAnalysis (PCA) and features' importance for Support Vector\nMachines (SVMs), which expand other 'R' packages like\n'kernlab'.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Language": "en-US",
  "URL": "https://github.com/elies-ramon/kerntools,\nhttps://elies-ramon.github.io/kerntools/",
  "BugReports": "https://github.com/elies-ramon/kerntools/issues",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://elies-ramon.r-universe.dev",
  "Date/Publication": "2026-01-21 14:04:11 UTC",
  "RemoteUrl": "https://github.com/elies-ramon/kerntools",
  "RemoteRef": "HEAD",
  "RemoteSha": "1772947f92438e875fc342778735b2c501cd30c3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 10:12:02 UTC",
    "User": "root"
  },
  "Author": "Elies Ramon [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-7953-8115>)",
  "Maintainer": "Elies Ramon <eramon@everlyrusher.com>",
  "MD5sum": "0df296f7089dbdf804f3264f3f979143",
  "_user": "elies-ramon",
  "_type": "src",
  "_file": "kerntools_1.2.0.tar.gz",
  "_fileid": "2215d850324450859380c933b610f67653ea429f96dda7905cdea52a7eedb3d6",
  "_filesize": 2142469,
  "_sha256": "2215d850324450859380c933b610f67653ea429f96dda7905cdea52a7eedb3d6",
  "_created": "2026-05-21T10:12:02.000Z",
  "_published": "2026-05-21T20:03:52.347Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77258050253,
      "time": 156,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133079739"
    },
    {
      "job": 77258050453,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133080434"
    },
    {
      "job": 77258050367,
      "time": 186,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7133080583"
    },
    {
      "job": 77258049739,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133073376"
    },
    {
      "job": 77258049815,
      "time": 214,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133027820"
    },
    {
      "job": 77258049409,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7145958139"
    },
    {
      "job": 77258050297,
      "time": 111,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133065176"
    },
    {
      "job": 77258050661,
      "time": 104,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7133063504"
    },
    {
      "job": 77258050456,
      "time": 104,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133062822"
    }
  ],
  "_buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/elies-ramon/kerntools",
  "_commit": {
    "id": "1772947f92438e875fc342778735b2c501cd30c3",
    "author": "Elies Ramon <65907573+elies-ramon@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #2 from DavisVaughan/fix/dplyr\n\nAvoid `dplyr::id()`",
    "time": 1769004251
  },
  "_maintainer": {
    "name": "Elies Ramon",
    "email": "eramon@everlyrusher.com",
    "login": "elies-ramon",
    "orcid": "0000-0002-7953-8115",
    "description": "Data Scientist and Machine Learning researcher.",
    "uuid": 65907573
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "kernlab",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "elies-ramon",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2026-04",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "kernel-methods",
    "pca"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "davisvaughan",
      "count": 1,
      "uuid": 19150088
    },
    {
      "user": "elies-ramon",
      "count": 1,
      "uuid": 65907573
    }
  ],
  "_userbio": {
    "uuid": 65907573,
    "type": "user",
    "name": "Elies Ramon",
    "description": "Data Scientist and Machine Learning researcher."
  },
  "_downloads": {
    "count": 252,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/kerntools"
  },
  "_devurl": "https://github.com/elies-ramon/kerntools",
  "_pkgdown": "https://elies-ramon.github.io/kerntools/",
  "_searchresults": 17,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/kerntools.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/elies-ramon/kerntools",
  "_realowner": "elies-ramon",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2024-08-27"
    },
    {
      "version": "1.0.2",
      "date": "2024-09-04"
    },
    {
      "version": "1.1.0",
      "date": "2024-10-25"
    },
    {
      "version": "1.2.0",
      "date": "2025-02-19"
    },
    {
      "version": "1.2.1",
      "date": "2026-01-28"
    }
  ],
  "_exports": [
    "Acc",
    "Acc_rnd",
    "aggregate_imp",
    "Aitchison",
    "Boots_CI",
    "BrayCurtis",
    "centerK",
    "centerX",
    "Chi2",
    "cLinear",
    "cosNorm",
    "cosnormX",
    "desparsify",
    "Dirac",
    "dummy_data",
    "dummy_var",
    "estimate_gamma",
    "F1",
    "Frobenius",
    "frobNorm",
    "heatK",
    "histK",
    "Intersect",
    "Jaccard",
    "Kendall",
    "kPCA",
    "kPCA_arrows",
    "kPCA_imp",
    "KTA",
    "Laplace",
    "Linear",
    "minmax",
    "MKC",
    "nmse",
    "Normal_CI",
    "plotImp",
    "Prec",
    "Procrustes",
    "RBF",
    "Rec",
    "Ruzicka",
    "simK",
    "Spe",
    "Spectrum",
    "svm_imp",
    "TSS",
    "vonNeumann"
  ],
  "_datasets": [
    {
      "name": "showdata",
      "title": "Showdata",
      "object": "showdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Favorite.color",
        "Favorite.actress",
        "Favorite.actor",
        "Favorite.show",
        "Liked.new.show"
      ],
      "rows": 100,
      "table": true,
      "tojson": true
    },
    {
      "name": "soil",
      "title": "Soil microbiota (raw counts)",
      "object": "soil",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "Acc",
      "title": "Accuracy",
      "topics": [
        "Acc"
      ]
    },
    {
      "page": "Acc_rnd",
      "title": "Accuracy of a random model",
      "topics": [
        "Acc_rnd"
      ]
    },
    {
      "page": "aggregate_imp",
      "title": "Aggregate importances",
      "topics": [
        "aggregate_imp"
      ]
    },
    {
      "page": "Boots_CI",
      "title": "Confidence Interval using Bootstrap",
      "topics": [
        "Boots_CI"
      ]
    },
    {
      "page": "BrayCurtis",
      "title": "Kernels for count data",
      "topics": [
        "BrayCurtis",
        "Ruzicka"
      ]
    },
    {
      "page": "centerK",
      "title": "Centering a kernel matrix",
      "topics": [
        "centerK"
      ]
    },
    {
      "page": "centerX",
      "title": "Centering a squared matrix by row or column",
      "topics": [
        "centerX"
      ]
    },
    {
      "page": "Chi2",
      "title": "Chi-squared kernel",
      "topics": [
        "Chi2"
      ]
    },
    {
      "page": "cLinear",
      "title": "Compositional kernels",
      "topics": [
        "Aitchison",
        "cLinear"
      ]
    },
    {
      "page": "cosNorm",
      "title": "Cosine normalization of a kernel matrix",
      "topics": [
        "cosNorm"
      ]
    },
    {
      "page": "cosnormX",
      "title": "Cosine normalization of a matrix",
      "topics": [
        "cosnormX"
      ]
    },
    {
      "page": "desparsify",
      "title": "This function deletes those columns and/or rows in a matrix/data.frame that only contain 0s.",
      "topics": [
        "desparsify"
      ]
    },
    {
      "page": "Dirac",
      "title": "Kernels for categorical variables",
      "topics": [
        "Dirac"
      ]
    },
    {
      "page": "dummy_data",
      "title": "Convert categorical data to dummies.",
      "topics": [
        "dummy_data"
      ]
    },
    {
      "page": "dummy_var",
      "title": "Levels per factor variable",
      "topics": [
        "dummy_var"
      ]
    },
    {
      "page": "estimate_gamma",
      "title": "Gamma hyperparameter estimation (RBF kernel)",
      "topics": [
        "estimate_gamma"
      ]
    },
    {
      "page": "F1",
      "title": "F1 score",
      "topics": [
        "F1"
      ]
    },
    {
      "page": "Frobenius",
      "title": "Frobenius kernel",
      "topics": [
        "Frobenius"
      ]
    },
    {
      "page": "frobNorm",
      "title": "Frobenius normalization",
      "topics": [
        "frobNorm"
      ]
    },
    {
      "page": "heatK",
      "title": "Kernel matrix heatmap",
      "topics": [
        "heatK"
      ]
    },
    {
      "page": "histK",
      "title": "Kernel matrix histogram",
      "topics": [
        "histK"
      ]
    },
    {
      "page": "Jaccard",
      "title": "Kernels for sets",
      "topics": [
        "Intersect",
        "Jaccard"
      ]
    },
    {
      "page": "Kendall",
      "title": "Kendall's tau kernel",
      "topics": [
        "Kendall"
      ]
    },
    {
      "page": "kPCA",
      "title": "Kernel PCA",
      "topics": [
        "kPCA"
      ]
    },
    {
      "page": "kPCA_arrows",
      "title": "Plot the original variables' contribution to a PCA plot",
      "topics": [
        "kPCA_arrows"
      ]
    },
    {
      "page": "kPCA_imp",
      "title": "Contributions of the variables to the Principal Components (\"loadings\")",
      "topics": [
        "kPCA_imp"
      ]
    },
    {
      "page": "KTA",
      "title": "Kernel-target alignment",
      "topics": [
        "KTA"
      ]
    },
    {
      "page": "Laplace",
      "title": "Laplacian kernel",
      "topics": [
        "Laplace"
      ]
    },
    {
      "page": "Linear",
      "title": "Linear kernel",
      "topics": [
        "Linear"
      ]
    },
    {
      "page": "minmax",
      "title": "Minmax normalization",
      "topics": [
        "minmax"
      ]
    },
    {
      "page": "MKC",
      "title": "Multiple Kernel (Matrices) Combination",
      "topics": [
        "MKC"
      ]
    },
    {
      "page": "nmse",
      "title": "NMSE (Normalized Mean Squared Error)",
      "topics": [
        "nmse"
      ]
    },
    {
      "page": "Normal_CI",
      "title": "Confidence Interval using Normal Approximation",
      "topics": [
        "Normal_CI"
      ]
    },
    {
      "page": "plotImp",
      "title": "Importance barplot",
      "topics": [
        "plotImp"
      ]
    },
    {
      "page": "Prec",
      "title": "Precision or PPV",
      "topics": [
        "Prec"
      ]
    },
    {
      "page": "Procrustes",
      "title": "Procrustes Analysis",
      "topics": [
        "Procrustes"
      ]
    },
    {
      "page": "RBF",
      "title": "Gaussian RBF (Radial Basis Function) kernel",
      "topics": [
        "RBF"
      ]
    },
    {
      "page": "Rec",
      "title": "Recall or Sensitivity or TPR",
      "topics": [
        "Rec"
      ]
    },
    {
      "page": "showdata",
      "title": "Showdata",
      "topics": [
        "showdata"
      ]
    },
    {
      "page": "simK",
      "title": "Kernel matrix similarity",
      "topics": [
        "simK"
      ]
    },
    {
      "page": "soil",
      "title": "Soil microbiota (raw counts)",
      "topics": [
        "soil"
      ]
    },
    {
      "page": "Spe",
      "title": "Specificity or TNR",
      "topics": [
        "Spe"
      ]
    },
    {
      "page": "Spectrum",
      "title": "Spectrum kernel",
      "topics": [
        "Spectrum"
      ]
    },
    {
      "page": "svm_imp",
      "title": "SVM feature importance",
      "topics": [
        "svm_imp"
      ]
    },
    {
      "page": "TSS",
      "title": "Total Sum Scaling",
      "topics": [
        "TSS"
      ]
    },
    {
      "page": "vonNeumann",
      "title": "Von Neumann entropy",
      "topics": [
        "vonNeumann"
      ]
    }
  ],
  "_pkglogo": "https://github.com/elies-ramon/kerntools/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/elies-ramon/kerntools/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "kernlab",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "Kernel-functions.Rmd",
      "filename": "Kernel-functions.html",
      "title": "Kernel functions",
      "author": "Elies Ramon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose of this document",
        "Introduction",
        "Informal definition",
        "Advantages",
        "Feature space",
        "Kernels for real vectors",
        "Linear kernel",
        "Definition",
        "Usage",
        "RBF kernel",
        "Laplacian kernel",
        "Kernels for real matrices",
        "Frobenius kernel",
        "Kernels for abundances (counts or frequencies)",
        "Bray-Curtis kernel",
        "Ruzicka kernel",
        "Compositional-linear kernel",
        "Aitchison kernel",
        "Kernels for categorical data",
        "Dirac kernel",
        "Kernels for sets",
        "Intersect kernel",
        "Jaccard kernel",
        "Kernels for ordinal data, ranks, and permutations",
        "Kendall's $\\tau$ kernel",
        "Kernels for strings, sequences, or (short) texts",
        "Spectrum kernel",
        "Kernels for bag-of-words (BoW) or bags-of-visual-words data",
        "$\\chi^2$ kernel"
      ],
      "created": "2024-10-25 08:12:47",
      "modified": "2025-02-19 14:51:30",
      "commits": 3
    },
    {
      "source": "Kernel-PCA-and-CIA.Rmd",
      "filename": "Kernel-PCA-and-CIA.html",
      "title": "Kernel PCA and Coinertia",
      "author": "Elies Ramon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose of this document",
        "Introduction",
        "Matrix decomposition",
        "Eigendecomposition",
        "Singular Value Decomposition (SVD)",
        "Principal Components Analysis (PCA)",
        "Kernel PCA",
        "Linear kernel",
        "Rest of kernels",
        "Advantages of kernel PCA",
        "kerntools implementation",
        "Coinertia analysis using kernels",
        "Kernel approach"
      ],
      "created": "2024-10-25 08:12:47",
      "modified": "2024-10-25 08:38:31",
      "commits": 2
    },
    {
      "source": "kerntools.Rmd",
      "filename": "kerntools.html",
      "title": "kerntools: R tools for kernel methods",
      "author": "Elies Ramon",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose",
        "Loading",
        "Package Overview",
        "A simple example",
        "A (slightly) more complicated example",
        "Non-standard data, exotic normalizations, and more about feature spaces",
        "Non-standard data",
        "Normalization techniques",
        "Fusing data. A word about a priori and a posteriori feature importances."
      ],
      "created": "2024-09-11 21:10:49",
      "modified": "2025-02-19 14:51:30",
      "commits": 2
    }
  ],
  "_score": 5.661812685537261,
  "_indexed": true,
  "_nocasepkg": "kerntools",
  "_universes": [
    "elies-ramon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-21T10:14:22.000Z",
      "distro": "noble",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "ed6fcc9f97fe89a0b7da05499cc7d8ee904862963c6c293c77d4c3d210782b7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-05-21T10:14:22.000Z",
      "distro": "noble",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "ccf9da1b0947e2255dcaca7e689f5458ff42758ffa6d0e5b62ac6644f6968187",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-21T10:14:34.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "a90f323d6e9b9e7c13283b984dc90d41a4b03bb3ed8d83104966772993839f4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-05-21T10:14:08.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "3f3d9f2040cffbd8952a8e1f85009636aa0d39f608600240edbdcb3c9bbda06a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-05-21T20:03:28.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "676fdb760c86fab2016c7e1b7522ef2eb7a7af3616570dde7593ecf339214982",
      "status": "success",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-21T10:13:29.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "151d17350426339ec0a7462f54c3bd894fe3c011ce442587169f744f87e1af93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-21T10:13:20.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "186157a4fa7745da18be1338a09d7f45ea812feea40119fc92ed17606ecffaff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-05-21T10:13:22.000Z",
      "commit": "1772947f92438e875fc342778735b2c501cd30c3",
      "fileid": "9b44e81a7b561a29960f49361ba05afff02eb4b7369019b1fb4f11f55137448c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/elies-ramon/actions/runs/26219543120"
    }
  ]
}