Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Julia package for kernel functions for machine learning

License

NotificationsYou must be signed in to change notification settings

JuliaGaussianProcesses/KernelFunctions.jl

Repository files navigation

CIcodecovDocumentation (stable)Documentation (latest)ColPrac: Contributor's Guide on Collaborative Practices for Community PackagesCode Style: BlueDOI

Kernel functions for machine learning

KernelFunctions.jl is a general purposekernel package.It provides a flexible framework for creating kernel functions and manipulating them, and an extensive collection of implementations.The main goals of this package are:

  • Flexibility: operations between kernels should be fluid and easy without breaking, with a user-friendly API.
  • Plug-and-play: being model-agnostic; including the kernels before/after other steps should be straightforward. To interoperate well with generic packages for handling parameters likeParameterHandling.jl and FluxML'sFunctors.jl.
  • Automatic Differentiation compatibility: all kernel functions whichought to be differentiable using AD packages likeForwardDiff.jl orZygote.jlshould be.

Examples

x=range(-3.0,3.0; length=100)# A simple standardised squared-exponential / exponentiated-quadratic kernel.k₁=SqExponentialKernel()K₁=kernelmatrix(k₁, x)# Set a function transformation on the datak₂=Matern32Kernel()FunctionTransform(sin)K₂=kernelmatrix(k₂, x)# Set a matrix premultiplication on the datak₃=PolynomialKernel(; c=2.0, degree=2)LinearTransform(randn(4,1))K₃=kernelmatrix(k₃, x)# Add and sum kernelsk₄=0.5*SqExponentialKernel()*LinearKernel(; c=0.5)+0.4* k₂K₄=kernelmatrix(k₄, x)plot(heatmap.([K₁, K₂, K₃, K₄]; yflip=true, colorbar=false)...;    layout=(2,2), title=["K₁""K₂""K₃""K₄"],)

Related Work

This package replaces the now-defunctMLKernels.jl. It incorporates lots of excellent existing work from packages such asGaussianProcesses.jl, and is used in downstream packages such asAbstractGPs.jl,ApproximateGPs.jl,Stheno.jl, andAugmentedGaussianProcesses.jl.

See the JuliaGaussianProcessesGithub organisation andwebsite for more information.

Issues/Contributing

If you notice a problem or would like to contribute by adding more kernel functions or features pleasesubmit an issue, or open a PR (please see theColPrac contribution guidelines).


[8]ページ先頭

©2009-2025 Movatter.jp