Description Usage Arguments Value Examples
Add a Kernel Class to a Model Tree
1 | add.kernel(orig.model.tree, kernel.class.name, kernel)
|
orig.model.tree |
a ModelTree object |
kernel.class.name |
the name of the kernel class (arbitrary, must not match the class name of any kernel already in the model tree). |
kernel |
either an R function defining a kernel, or a string indicating a built-in kernel type |
hyper.param.names |
a vector containing the names of the kernel hyperparameters |
kernel.additional.params |
a list containing any additional kernel parameters |
kernel.grad |
either an R function returning the gradient of |
a ModelTree object
1 2 | mt <- create.model.tree()
mt <- add.kernel(mt, "SE", "squaredExponential", c("l"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.