Questions tagged [statistical-sampling]

33 questions
0
votes
1 answer

Sample the maximum value on a matrix excluding value on main diagonal

I have a matrix X with its maximum value along the main diagonal. Firstly, want to sample one row i, and pick the maximum value along row i excluding the main diagonal value i.e max != X[i,i]. The code below usually produces results but often has an…
Gilbert
  • 3
  • 4
-1
votes
1 answer

Stratified Sampling using R or Python

I have a dataset with 400K observations and 250 features. I would like to perform the stratified sampling. I referred many links, but they are all after 1 or two variables examples including Target. Can anybody please help me how should be…
Adarsha Murthy
  • 145
  • 3
  • 13
-1
votes
1 answer

sampling ratio for imbalanced dataset

I have an imbalanced dataset that have two classes (+1,-1). The positives are only 7% of the dataset. I want to classify using Desicion Trees. I have tried downsampling the negatives to: The same size of the positives The double or triple the size…
1 2
3