but that also not
> giving me the answer I'm looking for.
>
> We can use the for-loop in this case using "data_sample_matrix" matrix.
> But want to avoid looping.
>
> Can anyone please help?
>
> Thank you!
> Arijit
>
>
>
>
>
> From: arijit chakrab
;m looking for.
>
> We can use the for-loop in this case using "data_sample_matrix" matrix.
> But want to avoid looping.
>
> Can anyone please help?
>
> Thank you!
> Arijit
>
>
>
>
>
> From: arijit chakraborty
Arijit
From: arijit chakraborty
Sent: Saturday, April 22, 2017 12:45 PM
To: dev@systemml.incubator.apache.org
Subject: Re: Randomly Selecting rows from a dataframe
Thank you Matthias! You are most helpful!
Thanks again!
Arijit
_
Thank you Matthias! You are most helpful!
Thanks again!
Arijit
From: Matthias Boehm
Sent: Saturday, April 22, 2017 2:20:48 AM
To: dev@systemml.incubator.apache.org
Subject: Re: Randomly Selecting rows from a dataframe
you can take for example a 1% sample of
you can take for example a 1% sample of rows via a permutation matrix
(specifically selection matrix) as follows
I = (rand(rows=nrow(X), cols=1, min=0, max=1) <= 0.01);
P = removeEmpty(target=diag(I), margin="rows");
Xsample = P %*% X;
or via removeEmpty and selection vector
I = (rand(rows=nrow
Hi,
Suppose I've a dataframe of 10 variables (X1-X10) and have 1000 rows. Now I
want to randomly select rows so that I've a subset of the dataset.
Can anyone please help me to solve this problem?
I tried the following code:
randSample = sample(nrow(dataframe), 200);
This gives me a colum