Questions tagged [balanced-groups]
11 questions
2
votes
3 answers
How to create balanced groups
I have a game which can be played by groups of users competing with each other. The number of such groups is very small, under 10. The number of players is thousands.
When a user buys a ticket, a group is assigned to him. Currently, assigning a…

user998692
- 5,172
- 7
- 40
- 63
1
vote
1 answer
Matching balanced parentheses before a character
I need to match a string within balanced parentheses before a literal period in c#. My regex with balanced groups works except when there are extra open parens in the string. According to my understanding, this requires a conditional fail pattern to…

rednoyz
- 1,318
- 10
- 24
1
vote
2 answers
How to divide dataset into balanced sets based on multiple variables
I have a large dataset I need to divide into multiple balanced sets.
The set looks something like the following:
> data<-matrix(runif(4000, min=0, max=10), nrow=500, ncol=8 )
> colnames(data)<-c("A","B","C","D","E","F","G","H")
The sets, each…

N. V
- 13
- 3
1
vote
1 answer
duplicate low frequency values in a factor
I need to duplicate those levels whose frequency in my factor variable called groups is less than 500.
> head(groups)
[1] 0000000 1000000 1000000 1000000 0000000 0000000
75 Levels: 0000000 0000001 0000010 0000100 0000110 0001000 0001010 0001100…

Mario M.
- 802
- 11
- 26
1
vote
1 answer
Find specific segments using regex
I've got a string which i want split up in specific segments but i cant match the correct segment of the string because of two occurences of the same pattern.
My string:
@if(text.text…

Magni Hansen
- 82
- 10
1
vote
0 answers
hive ouput sorted values in a each partition
I have two tables with schema
table: run1
id string
week_date string
metric double …

Sreedhar
- 11
- 1
0
votes
1 answer
How to match my whole string with regular expression while allowing nested patterns
My current regular expression only matches the nested pattern not the outermost @if....endif@ pattern. How can I modify my expression to match the outermost pattern. If the outermost pattern is removed from the string the expression should then…

Magni Hansen
- 82
- 10
0
votes
1 answer
Why am i getting empty matches with this pattern?
On http://regexstorm.net/tester i use the following pattern:
(?:(?!\(|\)|\,).)*(?:(?:(?'open'\()(?:(?!\(|\)).)*)+((?'content-open'\))(?:(?!\(|\)|\,).)*)+)*(?(open)(?!))
And the following value:
(asi(de,…

maraaaaaaaa
- 7,749
- 2
- 22
- 37
0
votes
1 answer
How to catch if-statement block and name block in regular expressions
How to capture if-statement block. I've capture the else-statement block in a named Group.
My current solution is at this permalink:…

Magni J. Hansen
- 51
- 5
-1
votes
1 answer
Poor h2o GBM Classification Performance in a balanced binomial response
In a fairly balanced binomial classification response problem, I am observing unusual level of error in h2o.gbm classification for determining class 0, on train set itself. It is from a competition which is over, so interest is only towards…

Hari Prasad
- 1,751
- 2
- 15
- 20
-3
votes
1 answer
Test card numbers for balanced payments
We are planning to integrate our website with balanced payment gateway, would like to know how can we test credit card transactions. Like to have list of test card numbers so that we can test all the card related scenarios.

user3651417
- 11
- 3