ds.splitdata: Split samples of a data set

Description Usage Arguments Examples

View source: R/main.R

Description

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.

Usage

1
ds.splitdata(datasources, data, ratio, newobj1, newobj2)

Arguments

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 "D".

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

Examples

1
    ds.splitdata(o, "D", 0.1, "D.Train", "D.Test")

stefan-m-lenz/dsBoltzmannMachinesClient documentation built on May 2, 2021, 10:46 a.m.