plotTensor | R Documentation |
This function visualizes the contribution of a bivariate tensor product.
plotTensor(cboost, tname, npoints = 100L, nbins = 15L)
cboost |
(Compboost) |
tname |
( |
npoints |
( |
nbins |
( |
ggplot
object containing the graphic.
cboost = Compboost$new(data = iris, target = "Petal.Length",
learning_rate = 0.1)
cboost$addTensor("Sepal.Width", "Sepal.Length", df1 = 4, df2 = 4, n_knots = 10)
cboost$addTensor("Sepal.Width", "Species", df1 = 4, df2 = 2, n_knots = 10)
cboost$train(100L)
plotTensor(cboost, "Sepal.Width_Species_tensor")
plotTensor(cboost, "Sepal.Width_Sepal.Length_tensor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.