Permutation Builder

Re: Permutation Builder

Postby stan » Sat Feb 25, 2017 11:00 pm

Meisterkeks wrote:Hello
With me the filter unfortunately does not; I have the following error message:

Image

With this file:

Datei von filehorst.de laden

What am I doing wrong?

For some reason you have quotes at the beginning and end of each line, try removing those first.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby Meisterkeks » Sun Feb 26, 2017 8:58 am

Ok, I could change that; it works now
Thank you

Best Regards!

Meisterkeks
Meisterkeks
 
Posts: 221
Joined: Fri Aug 19, 2016 7:42 am
Location: Germany

Re: Permutation Builder

Postby Meisterkeks » Sun Feb 26, 2017 9:11 am

feelinLucky wrote:
Meisterkeks wrote:Ok, now it works wonderfully :D :D :D

Let me know if you find any good settings with the new filter.

Thanks


I think user Gatsby has explained this very well here and these filters can get good results:

viewtopic.php?f=14&t=2680#p22954

As with all filters, it is necessary to test when the filter is set too strict, for example, how many of the remaining drawings are included in the calculation. This test must probably be done outside of ExpertLotto with EXCEL (?).
Thank you

Best Regards!

Meisterkeks
Meisterkeks
 
Posts: 221
Joined: Fri Aug 19, 2016 7:42 am
Location: Germany

Re: Permutation Builder

Postby stan » Sun Feb 26, 2017 11:30 pm

I've uploaded a new version of this filter which adds 'min/max rules to pass options'. Try it out and let me know how it works for you. (if the new options are no good I can always revert to the previous implementation).
I also added a check to ignore all quotes in the rules files.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby Gatsby » Mon Feb 27, 2017 2:20 pm

Hi Stan,

I´ve just made a test and it does seems to be working fine. Just another thing, is it possible to have number match count min with x= 0 ? . That is to cover lines where the number match is or should be equal to "0"

And is it possible that the max number of rules be displayed, according to the number of lines in the file?

Thanks a lot.
Last edited by Gatsby on Mon Feb 27, 2017 9:35 pm, edited 1 time in total.
Gatsby
 
Posts: 305
Joined: Tue May 01, 2007 3:24 pm

Re: Permutation Builder

Postby feelinLucky » Mon Feb 27, 2017 7:19 pm

Stan,

The filter is caching the rules. I was loading various rules for testing and the results were the same. I even ran the filter with an empty rule file and it still worked.
feelinLucky
 
Posts: 86
Joined: Sat Feb 14, 2015 12:37 am

Re: Permutation Builder

Postby Gatsby » Mon Feb 27, 2017 9:32 pm

Hi

Well i have been doing some more filtering and not really sure about if it works fine in all scenarios. This is the situation:

1. I have a file with 60 rules
2. Filtering settings are: rules to pass: min 6, no max
Number match min =2
Number Match max = 2

3. In my excel file there are only 5 rules that have simultaneously numbers 1 and 30, but none the way, the filter "filters" and this should not be expected since there are only 5 transformed combinations with those 2 numbers and rules min to pass is 6 (note: even if there is some reduntant combinations within, which is not the case, because each rule must be considered a diferente case even if is some situations produce the same resulting numbers).
Gatsby
 
Posts: 305
Joined: Tue May 01, 2007 3:24 pm

Re: Permutation Builder

Postby stan » Tue Feb 28, 2017 10:09 pm

Gatsby wrote:Hi Stan,

I´ve just made a test and it does seems to be working fine. Just another thing, is it possible to have number match count min with x= 0 ? . That is to cover lines where the number match is or should be equal to "0"

Yes, it's available in today's app update.

And is it possible that the max number of rules be displayed, according to the number of lines in the file?

It's a bit tricky - and that's why I didn't have min/max rules to pass option in the first version of this plugin:) I'll see what I can do about it.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby stan » Tue Feb 28, 2017 10:10 pm

feelinLucky wrote:Stan,

The filter is caching the rules. I was loading various rules for testing and the results were the same. I even ran the filter with an empty rule file and it still worked.

Good point, I added caching to improve performance but if the cache isn't flushed when rules have changed then it's no good:)
Fixed in today's app update.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby stan » Tue Feb 28, 2017 10:11 pm

Gatsby wrote:Hi

Well i have been doing some more filtering and not really sure about if it works fine in all scenarios. This is the situation:

1. I have a file with 60 rules
2. Filtering settings are: rules to pass: min 6, no max
Number match min =2
Number Match max = 2

3. In my excel file there are only 5 rules that have simultaneously numbers 1 and 30, but none the way, the filter "filters" and this should not be expected since there are only 5 transformed combinations with those 2 numbers and rules min to pass is 6 (note: even if there is some reduntant combinations within, which is not the case, because each rule must be considered a diferente case even if is some situations produce the same resulting numbers).

Please post or email me some examples so I know what to look for.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby Gatsby » Tue Feb 28, 2017 11:43 pm

7 8 24 27 36
7 8 24 27 36
8 9 25 28 37
9 10 26 29 38
10 11 27 30 39
11 12 28 31 40
12 13 29 32 41
13 14 30 33 42
14 15 31 34 43
15 16 32 35 44
16 17 33 36 45
17 18 34 37 46
18 19 35 38 47
19 20 36 39 48
20 21 37 40 49
21 22 38 41 50
22 23 39 42 1
23 24 40 43 2
24 25 41 44 3
25 26 42 45 4
26 27 43 46 5
27 28 44 47 6
28 29 45 48 7
29 30 46 49 8
30 31 47 50 9
31 32 48 1 10
32 33 49 2 11
33 34 50 3 12
34 35 1 4 13
35 36 2 5 14
36 37 3 6 15
37 38 4 7 16
38 39 5 8 17
39 40 6 9 18
40 41 7 10 19
41 42 8 11 20
42 43 9 12 21
43 44 10 13 22
44 45 11 14 23
45 46 12 15 24
46 47 13 16 25
47 48 14 17 26
48 49 15 18 27
49 50 16 19 28
50 1 17 20 29
1 2 18 21 30
2 3 19 22 31
3 4 20 23 32
4 5 21 24 33
5 6 22 25 34
6 7 23 26 35

Hi Stan

In the example above you can see a Permutation Pool (Which results from the application of the correspondent rules) for some draw. If you count the number of lines where you find a number in red that means that number or numbers was drawn in the next draw (just for an example...i didn´t colored every pick). So, the Permutation Pool Filter should allow to filter in such ways:

1 - Considering the number of lines that have a draw number(s) we could select x to y rules (for instance 3 to 5) must pass and 1 to 2 numbers
So in this case the filter should accept any combination if it has 1 or 2 numbers equal in 3 to 5 rules


2 - Considering the number of lines/rules that don´t have any number that was picked in the next draw we could select for instance 15 to 23 rules must pass and min = 0 and max = 0 numbers to pass.
So, in this 2nd case the filter should accept any combinations from the package that don´t meet any number in 15 to 23 rules.

This is way i asked for a min = 0 and max =0 for number count. So the max should also allow for "0" number to match.

Hope this clearifies what i´m looking for.

BTW, when i filter with 1 rule must pass, min 5 to max 5 numbers, the filter works fine because in that particular case of a file with 50 rules that result in 50 diferent combinations, these exactly 50 combinations are rejected/accepted. But, this type of filtering isn´t in itself particularly efective so i need more versatility to use the information on the transformed setting, like the aproximate number of times we find 0, 1, 2 or 3 draw numbers and use this to set the secondaries filters.

Thinking about this i would also add that if we had some kind of analyzer to help to set these parametrs, similarly to what happens with WNH, that would be great. Or maybe just an indication on the right hand of the filter page with the indication of, in respect to the last draw, how many lines had 0, 1, 2 and 3 or more numbers in it. That would help to set the values for this filter. Don´t know if it viable though.

Thanks
Gatsby
 
Posts: 305
Joined: Tue May 01, 2007 3:24 pm

Re: Permutation Builder

Postby stan » Fri Mar 03, 2017 10:07 pm

Let me clarify how rule parsing actually works. For example the rule may look like this:
1,2,3,4,5
11,12,13,14,15

The parser will first create a list of ALL pool numbers:
1,2,3,4,5,6,7,8,....,49

and then replace the numbers found in the rule:
11,12,13,14,15,6,7,8,9,10,11,12,13,14,15,16,....,49

So when the latest draw is for example 1,2,3,4,5,6 and min/max match settings are e.g. min=3, max=3 then the filter will accept tickets with the following three number combinations:
11,12,13
11,12,6
12,13,6
14,15,6
etc

However I have no problem changing the filter logic to work only with the numbers specified in the rule instead of the whole number pool. In that the rule above will match only with tickets containing numbers 11 to 15
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby Gatsby » Fri Mar 03, 2017 10:48 pm

stan wrote:
However I have no problem changing the filter logic to work only with the numbers specified in the rule instead of the whole number pool. In that the rule above will match only with tickets containing numbers 11 to 15


Yes, it think it must work only with numbers specified in the rule instead of the whole number pool. But, that´s only part of the feature. As i exposed in the thread, once the "permutated file" is constructed, i think in the filtering process (comparing the combinations file with the numbers in the package) the filter should have the option to choose the number of times a combination should or not match with each line from the resulting permutation process/file. In the example a combination from the package would only pass/be accepted/rejected if did/did not match any number from that file in x to y rules/permutated combinations.

if a file as 50 rules, then the transformed number file has 50 combinations, then is just a question of comparing tickets, sort like using a match tcket file filter, with the file being "given" by the permutation pool "process creation".

And i have another idea about using that file that i´m going to send to you soon.
Gatsby
 
Posts: 305
Joined: Tue May 01, 2007 3:24 pm

Re: Permutation Builder

Postby stan » Sun Mar 12, 2017 10:23 pm

I uploaded a new version which matches the numbers in the rule only (instead of the whole pool). Also the 'max rules to pass option' is now more lenient so if your settings are e.g. 'at most 100 rules must pass' and the input file has only 50 rules then a ticket will be still accepted with all those 50 rules passed.
Expert Lotto Team
User avatar
stan
Site Admin
 
Posts: 6338
Joined: Thu Sep 23, 2004 1:01 pm

Re: Permutation Builder

Postby Gatsby » Sun Mar 12, 2017 10:38 pm

Hi Stan,

thanks for the update, but please let me make attention to these points:

1.st: this is a advise to anyone using a full ciclic permutation set of rules. That file will producce in any circunstance a equivalent set of combinations, so there is no advantage in here.

2nd. : have you already looked at the possibility to enhance the filter with the min = 0 and max =0 for number count. So the max should also allow also for "0" number to match. In this situation this means that we want to filter all the combinations that don´t match any number from the "permutated file" like in all rules OR in any combination of x to y rules. And that applies also when we want to match 1 number, 1 to 3 numbers, etc, in all rules OR in (for example and for a permutation file with 11 rules) in 3 to 5 rules or 6 to 11 rules, etc.

3rd: i don´t think the filter is working correctly because if i set 1 to 5 rules must pass, from a set with 11 rules, after the filter is used the max limit goes to some value near the max=1000 again.
Last edited by Gatsby on Sun Mar 12, 2017 10:56 pm, edited 1 time in total.
Gatsby
 
Posts: 305
Joined: Tue May 01, 2007 3:24 pm

PreviousNext

Return to Comments, suggestions, feature requests

Who is online

Users browsing this forum: No registered users and 5 guests

cron