Description Usage Arguments Value Examples
Insert Kernel Instance into Model Tree
1 2 | insert.kernel.instance(orig.model.tree, node, kernel.class.name, operation.id,
hyper.params = NULL)
|
orig.model.tree |
a ModelTree object |
node |
the node at which to insert the kernel instance |
kernel.class.name |
a string indicating the class of kernel to insert |
operation.id |
a string indicating how to insert the kernel at |
hyper.params |
the hyper parameters of the inserted kernel. Can be NULL to fit hyper parameters at a later time. |
a ModelTree object
1 2 3 4 5 6 7 8 9 10 | mt <- create.model.tree.builtin()
mt <- insert.kernel.instance(mt, 1, "SE", NULL)
print(mt) # "SE.1"
mt <- insert.kernel.instance(mt, 1, "SE", "*")
print(mt) # "( SE.1 * SE.2 )"
mt <- insert.kernel.instance(mt, 3, "RQ", "+")
print(mt) # "( ( SE.1 * SE.2 ) + RQ.1 )"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.