Description Usage Arguments Value Author(s) Examples
Cast the variables in a clusterpath l1 data frame into the columns of a new data frame, to facilitate plotting in [23]d. In practice this is quite a bit faster than brute-force plotting all points returned by predict.clusterpath.
1 |
df |
clusterpath data frame. |
Data frame with a row for every breakpoint in the dimensionality of the problem, suitable for plotting with lines in the high dimension to represent the entire linear path of optimal solutions for the l1 problem.
Toby Dylan Hocking
1 2 3 4 5 | sim <- gendata(N=10,D=2,K=2)
df <- clusterpath.l1.id(sim$mat)
system.time(str(castbreakpoints(df)))
system.time(str(predict(df)))
system.time(str(castbreakpoints(predict(df))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.