Description Usage Arguments Examples
Splits a data set randomly into two data sets x_1 and x_2, such that
the fraction of samples in x_2 is equal to (or as close as possible to) the
given ratio
.
1 | ds.splitdata(datasources, data, ratio, newobj1, newobj2)
|
datasources |
A list of Opal object(s) as a handle to the server-side session |
data |
The name of the variable that holds the data on the server-side. Defaults to |
ratio |
The ratio of samples |
newobj1 |
The name for the variable where x_1 is stored |
newobj2 |
The name for the variable where x_2 is stored |
1 | ds.splitdata(o, "D", 0.1, "D.Train", "D.Test")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.