POC-English baseline test 2018-10-23

Agglomerative clustering -- cell 12; Updated 2018-10-19 test_grammar, Link Grammar 5.4.4.
This notebook is shared as static POC-English-2018-10-23.html
The "All tests" table is shared as 'short_table.txt' in POC-English-2018-10-23 directory.
Previous (reference) tests: POC-English-Amb-2018-10-21.html, POC-English-Amb-2018-08-09.html

Basic settings

In [1]:
import os, sys, time
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path: sys.path.append(module_path)
from ull.grammar_learner.utl import UTC
from ull.grammar_learner.read_files import check_dir
from ull.grammar_learner.write_files import list2file
from ull.grammar_learner.widgets import html_table
from src.grammar_learner.pqa_table import table_rows
tmpath = module_path + '/tmp/'
check_dir(tmpath, True, 'none')
table = []
long_table = []
start = time.time()
print(UTC(), ':: module_path =', module_path)
2018-10-23 07:41:03 UTC :: module_path = /home/obaskov/py/language-learning

Grammar Learner corpus-specific parameters

In [2]:
corpus = 'POC-English-Amb'
out_dir = module_path + '/output/POC-English-' + str(UTC())[:10]
runs = (1,1)    # (attempts to learn grammar per line, grammar tests per attempt)
if runs != (1,1): out_dir += '-multi'
kwargs = {
    'min_word_count':   1           ,   # SVS (sparse vector space) parameter
    'min_link_count':   1           ,   # SVS
    'max_words'     :   100000      ,   # SVS: max space dimension 1
    'max_features'  :   100000      ,   # SVS: dimension 2: disjuncts/connectors 
    'min_co-occurrence_count':  1   ,   # SVS
    'min_co-occurrence_probability': 1e-9,  # SVS
    'left_wall'     :   ''          ,
    'period'        :   False       ,
    'word_space'    :   'vectors'   ,
    'clustering'    :   ('kmeans', 'kmeans++', 10),
    'cluster_range' :   (2,50,1,5)  ,
    'cluster_criteria': 'silhouette',
    'clustering_metric': ('silhouette', 'cosine'),
    'tmpath'        :   tmpath      , 
    'verbose'       :   'min'       ,
    'template_path' :   'poc-turtle',
    'linkage_limit' :   1000        ,
    'categories_generalization': 'off'}
lines = [
    [11, 'POC-English-Amb'    , 'MST-fixed-manually'             , 0  , 0 , 'none'  ], 
    [12, 'POC-English-Amb'    , 'MST-fixed-manually'             , 0  , 0 , 'rules' ], 
    [13, 'POC-English-Amb'    , 'LG-English'                     , 0  , 0 , 'none'  ], 
    [14, 'POC-English-Amb'    , 'LG-English'                     , 0  , 0 , 'rules' ], 
    [15, 'POC-English-Amb'    , 'R=6-Weight=6:R-mst-weight=+1:R' , 0  , 0 , 'none'  ], 
    [16, 'POC-English-Amb'    , 'R=6-Weight=6:R-mst-weight=+1:R' , 0  , 0 , 'rules' ], 
    [17, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R' , 0  , 0 , 'none'  ], 
    [18, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R' , 0  , 0 , 'rules' ], 
    [19, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R-agm-opt' , 0  , 0 , 'none'  ], 
    [20, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R-agm-opt' , 0  , 0 , 'rules' ], 
    [21, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R-agm-100' , 0  , 0 , 'none'  ], 
    [22, 'POC-English-disAmb' , 'R=6-Weight=6:R-mst-weight=+1:R-agm-100' , 0  , 0 , 'rules' ], 
    [23, 'POC-English-Amb'    , 'R=6-Weight=1-mst-weight=+1:R'   , 0  , 0 , 'none'  ], 
    [24, 'POC-English-disAmb' , 'R=6-Weight=1-mst-weight=+1:R'   , 0  , 0 , 'none'  ], 
    [25, 'POC-English-disAmb' , 'R=6-Weight=1-mst-weight=+1:R-agm-opt' , 0  , 0 , 'none'  ], 
    [26, 'POC-English-disAmb' , 'R=6-Weight=1-mst-weight=+1:R-agm-100' , 0  , 0 , 'none'  ], 
    [27, 'POC-English-Amb'    , 'LG-ANY-all-parses'              , 0  , 0 , 'none'  ], 
    [28, 'POC-English-disAmb' , 'LG-ANY-all-parses'              , 0  , 0 , 'none'  ], 
    [29, 'POC-English-disAmb' , 'LG-ANY-all-parses-agm-opt'      , 0  , 0 , 'none'  ], 
    [30, 'POC-English-disAmb' , 'LG-ANY-all-parses-agm-100'      , 0  , 0 , 'none' ]]
rp = module_path + '/data/POC-English-Amb/MST-fixed-manually/poc-english_ex-parses-gold.txt'
cp = rp # corpus path = reference path

Baseline: POC-English-Amb, 5 datasets; ...-disAmb, 6 datasets

ULL Project Plan ⇒ Parses ⇒ lines 11-30

Connectors-DRK-Connectors

In [3]:
%%capture
kwargs['context'] = 1
kwargs['grammar_rules'] = 1
kwargs['word_space'] = 'vectors'
kwargs['clustering'] = ('kmeans', 'kmeans++', 10)
average21, long21, header = table_rows(lines, out_dir, cp, rp, runs, **kwargs)
table.extend(average21)
long_table.extend(long21)
In [4]:
display(html_table([header]+average21))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonecDRKc300.2873%65%0.78
13POC-English-AmbLG-English --- --- nonecDRKc300.2875%65%0.77
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKc290.2486%54%0.57
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKc300.2782%51%0.55
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonecDRKc300.2390%58%0.60
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonecDRKc410.1492%62%0.66
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKc210.2186%56%0.61
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKc240.2188%57%0.62
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonecDRKc260.1887%57%0.62
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonecDRKc390.1994%64%0.67
27POC-English-AmbLG-ANY-all-parses --- --- nonecDRKc230.2589%58%0.60
28POC-English-disAmbLG-ANY-all-parses --- --- nonecDRKc250.2989%58%0.61
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonecDRKc250.2789%58%0.61
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonecDRKc360.1594%64%0.67

Connectors-DRK-Disjuncts

In [5]:
%%capture
kwargs['grammar_rules'] = 2
average22, long22, header = table_rows(lines, out_dir, cp, rp, runs, **kwargs)
table.extend(average22)
long_table.extend(long22)
In [6]:
display(html_table([header]+average22))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonecDRKd300.26100%99%0.99
12POC-English-AmbMST-fixed-manually --- --- rulescDRKd270.26100%99%0.99
13POC-English-AmbLG-English --- --- nonecDRKd310.28100%98%0.97
14POC-English-AmbLG-English --- --- rulescDRKd260.27100%98%0.97
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKd290.2497%65%0.65
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulescDRKd270.2299%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKd290.2598%66%0.66
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulescDRKd280.27100%68%0.68
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonecDRKd290.2197%66%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulescDRKd280.23100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonecDRKd390.13100%69%0.69
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulescDRKd400.14100%70%0.70
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKd210.2197%72%0.72
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKd230.298%70%0.70
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonecDRKd240.1898%71%0.71
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonecDRKd390.18100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonecDRKd220.2595%66%0.66
28POC-English-disAmbLG-ANY-all-parses --- --- nonecDRKd260.2895%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonecDRKd230.2795%69%0.69
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonecDRKd380.15100%70%0.70

Disjuncts-DRK-Disjuncts

In [7]:
%%capture
kwargs['context'] = 2
average23, long23, header = table_rows(lines, out_dir, cp, rp, runs, **kwargs)
table.extend(average23)
long_table.extend(long23)
In [8]:
display(html_table([header]+average23))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonedDRKd290.28100%99%0.99
12POC-English-AmbMST-fixed-manually --- --- rulesdDRKd260.26100%99%0.99
13POC-English-AmbLG-English --- --- nonedDRKd40.61100%83%0.83
14POC-English-AmbLG-English --- --- rulesdDRKd40.61100%86%0.86
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedDRKd50.48100%68%0.68
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdDRKd50.48100%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedDRKd350.2398%67%0.67
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdDRKd340.23100%69%0.69
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedDRKd30.46100%67%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdDRKd30.46100%67%0.67
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedDRKd420.08100%72%0.72
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdDRKd410.08100%72%0.72
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedDRKd210.4598%71%0.71
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedDRKd200.4395%67%0.67
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedDRKd310.398%67%0.67
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedDRKd440.12100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonedDRKd40.79100%72%0.72
28POC-English-disAmbLG-ANY-all-parses --- --- nonedDRKd300.2295%69%0.69
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedDRKd190.2195%70%0.70
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedDRKd400.08100%72%0.72

Disjuncts-ILE-Disjuncts

In [9]:
%%capture
kwargs['context'] = 2
kwargs['word_space'] = 'discrete'
kwargs['clustering'] = 'group'
kwargs['grammar_rules'] = 2
average24, long24, header = table_rows(lines, out_dir, cp, rp, runs, **kwargs)
table.extend(average24)
long_table.extend(long24)
In [10]:
display(html_table([header]+average24))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonedILEd37 --- 100%100%1.00
12POC-English-AmbMST-fixed-manually --- --- rulesdILEd28 --- 100%99%0.99
13POC-English-AmbLG-English --- --- nonedILEd37 --- 100%98%0.97
14POC-English-AmbLG-English --- --- rulesdILEd30 --- 100%98%0.97
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedILEd38 --- 97%66%0.66
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdILEd34 --- 99%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedILEd39 --- 98%67%0.67
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdILEd36 --- 100%69%0.69
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedILEd42 --- 96%66%0.66
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdILEd36 --- 100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedILEd61 --- 100%73%0.73
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdILEd55 --- 100%73%0.73
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedILEd39 --- 97%69%0.69
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedILEd41 --- 95%67%0.67
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedILEd44 --- 97%66%0.66
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedILEd59 --- 100%70%0.70
27POC-English-AmbLG-ANY-all-parses --- --- nonedILEd38 --- 95%67%0.67
28POC-English-disAmbLG-ANY-all-parses --- --- nonedILEd39 --- 95%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedILEd42 --- 95%71%0.71
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedILEd61 --- 100%72%0.72

Disjuncts-ALE-Disjuncts

In [11]:
%%capture
kwargs['word_space'] = 'sparse'
kwargs['cluster_range'] = (2,36,1,1)
kwargs['clustering'] = ('agglomerative', 'ward')
kwargs['clustering_metric'] = ('silhouette', 'cosine')
average25, long25, header = table_rows(lines, out_dir, cp, rp, runs, **kwargs)
table.extend(average25)
long_table.extend(long25)
In [12]:
display(html_table([header]+average25))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonedALEd210.29100%100%1.00
12POC-English-AmbMST-fixed-manually --- --- rulesdALEd180.29100%99%0.99
13POC-English-AmbLG-English --- --- nonedALEd150.27100%95%0.95
14POC-English-AmbLG-English --- --- rulesdALEd140.27100%95%0.95
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedALEd190.2897%65%0.65
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdALEd180.2899%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedALEd110.2898%65%0.65
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdALEd100.28100%68%0.67
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedALEd230.2797%66%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdALEd220.27100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedALEd240.14100%69%0.69
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdALEd230.14100%69%0.69
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedALEd230.297%70%0.70
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedALEd230.2195%69%0.69
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedALEd240.298%70%0.70
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedALEd210.17100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonedALEd240.2595%66%0.66
28POC-English-disAmbLG-ANY-all-parses --- --- nonedALEd290.2795%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedALEd280.2895%71%0.71
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedALEd210.15100%73%0.73

All tests (all entries for multi-test runs > (1.1))

In [13]:
display(html_table([header]+long_table))
LineCorpusParsingLWRWGen.SpaceRulesSilhouettePAPQF1
11POC-English-AmbMST-fixed-manually --- --- nonecDRKc 30 0.2873%65%0.78
13POC-English-AmbLG-English --- --- nonecDRKc 30 0.2875%65%0.77
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKc 29 0.2486%54%0.57
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKc 30 0.2782%51%0.55
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonecDRKc 30 0.2390%58%0.60
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonecDRKc 41 0.1492%62%0.66
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKc 21 0.2186%56%0.61
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKc 24 0.2188%57%0.62
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonecDRKc 26 0.1887%57%0.62
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonecDRKc 39 0.1994%64%0.67
27POC-English-AmbLG-ANY-all-parses --- --- nonecDRKc 23 0.2589%58%0.60
28POC-English-disAmbLG-ANY-all-parses --- --- nonecDRKc 25 0.2989%58%0.61
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonecDRKc 25 0.2789%58%0.61
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonecDRKc 36 0.1594%64%0.67
11POC-English-AmbMST-fixed-manually --- --- nonecDRKd 30 0.26100%99%0.99
12POC-English-AmbMST-fixed-manually --- --- rulescDRKd 27 0.26100%99%0.99
13POC-English-AmbLG-English --- --- nonecDRKd 31 0.28100%98%0.97
14POC-English-AmbLG-English --- --- rulescDRKd 26 0.27100%98%0.97
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKd 29 0.2497%65%0.65
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulescDRKd 27 0.2299%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonecDRKd 29 0.2598%66%0.66
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulescDRKd 28 0.27100%68%0.68
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonecDRKd 29 0.2197%66%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulescDRKd 28 0.23100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonecDRKd 39 0.13100%69%0.69
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulescDRKd 40 0.14100%70%0.70
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKd 21 0.2197%72%0.72
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonecDRKd 23 0.298%70%0.70
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonecDRKd 24 0.1898%71%0.71
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonecDRKd 39 0.18100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonecDRKd 22 0.2595%66%0.66
28POC-English-disAmbLG-ANY-all-parses --- --- nonecDRKd 26 0.2895%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonecDRKd 23 0.2795%69%0.69
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonecDRKd 38 0.15100%70%0.70
11POC-English-AmbMST-fixed-manually --- --- nonedDRKd 29 0.28100%99%0.99
12POC-English-AmbMST-fixed-manually --- --- rulesdDRKd 26 0.26100%99%0.99
13POC-English-AmbLG-English --- --- nonedDRKd 4 0.61100%83%0.83
14POC-English-AmbLG-English --- --- rulesdDRKd 4 0.61100%86%0.86
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedDRKd 5 0.48100%68%0.68
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdDRKd 5 0.48100%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedDRKd 35 0.2398%67%0.67
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdDRKd 34 0.23100%69%0.69
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedDRKd 3 0.46100%67%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdDRKd 3 0.46100%67%0.67
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedDRKd 42 0.08100%72%0.72
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdDRKd 41 0.08100%72%0.72
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedDRKd 21 0.4598%71%0.71
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedDRKd 20 0.4395%67%0.67
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedDRKd 31 0.398%67%0.67
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedDRKd 44 0.12100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonedDRKd 4 0.79100%72%0.72
28POC-English-disAmbLG-ANY-all-parses --- --- nonedDRKd 30 0.2295%69%0.69
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedDRKd 19 0.2195%70%0.70
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedDRKd 40 0.08100%72%0.72
11POC-English-AmbMST-fixed-manually --- --- nonedILEd 37 --- 100%100%1.00
12POC-English-AmbMST-fixed-manually --- --- rulesdILEd 28 --- 100%99%0.99
13POC-English-AmbLG-English --- --- nonedILEd 37 --- 100%98%0.97
14POC-English-AmbLG-English --- --- rulesdILEd 30 --- 100%98%0.97
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedILEd 38 --- 97%66%0.66
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdILEd 34 --- 99%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedILEd 39 --- 98%67%0.67
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdILEd 36 --- 100%69%0.69
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedILEd 42 --- 96%66%0.66
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdILEd 36 --- 100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedILEd 61 --- 100%73%0.73
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdILEd 55 --- 100%73%0.73
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedILEd 39 --- 97%69%0.69
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedILEd 41 --- 95%67%0.67
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedILEd 44 --- 97%66%0.66
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedILEd 59 --- 100%70%0.70
27POC-English-AmbLG-ANY-all-parses --- --- nonedILEd 38 --- 95%67%0.67
28POC-English-disAmbLG-ANY-all-parses --- --- nonedILEd 39 --- 95%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedILEd 42 --- 95%71%0.71
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedILEd 61 --- 100%72%0.72
11POC-English-AmbMST-fixed-manually --- --- nonedALEd 21 0.29100%100%1.00
12POC-English-AmbMST-fixed-manually --- --- rulesdALEd 18 0.29100%99%0.99
13POC-English-AmbLG-English --- --- nonedALEd 15 0.27100%95%0.95
14POC-English-AmbLG-English --- --- rulesdALEd 14 0.27100%95%0.95
15POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedALEd 19 0.2897%65%0.65
16POC-English-AmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdALEd 18 0.2899%68%0.68
17POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- nonedALEd 11 0.2898%65%0.65
18POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R --- --- rulesdALEd 10 0.28100%68%0.67
19POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- nonedALEd 23 0.2797%66%0.67
20POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-opt --- --- rulesdALEd 22 0.27100%69%0.69
21POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- nonedALEd 24 0.14100%69%0.69
22POC-English-disAmbR=6-Weight=6:R-mst-weight=+1:R-agm-100 --- --- rulesdALEd 23 0.14100%69%0.69
23POC-English-AmbR=6-Weight=1-mst-weight=+1:R --- --- nonedALEd 23 0.297%70%0.70
24POC-English-disAmbR=6-Weight=1-mst-weight=+1:R --- --- nonedALEd 23 0.2195%69%0.69
25POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-opt --- --- nonedALEd 24 0.298%70%0.70
26POC-English-disAmbR=6-Weight=1-mst-weight=+1:R-agm-100 --- --- nonedALEd 21 0.17100%71%0.71
27POC-English-AmbLG-ANY-all-parses --- --- nonedALEd 24 0.2595%66%0.66
28POC-English-disAmbLG-ANY-all-parses --- --- nonedALEd 29 0.2795%70%0.70
29POC-English-disAmbLG-ANY-all-parses-agm-opt --- --- nonedALEd 28 0.2895%71%0.71
30POC-English-disAmbLG-ANY-all-parses-agm-100 --- --- nonedALEd 21 0.15100%73%0.73
In [14]:
print(UTC(), ':: finished, elapsed', str(round((time.time()-start)/3600, 1)), 'hours')
table_str = list2file(table, out_dir+'/short_table.txt')
if runs == (1,1):
    print('Results saved to', out_dir + '/short_table.txt')
else:
    long_table_str = list2file(long_table, out_dir+'/long_table.txt')
    print('Average results saved to', out_dir + '/short_table.txt\n'
          'Detailed results for every run saved to', out_dir + '/long_table.txt')
2018-10-23 07:49:52 UTC :: finished, elapsed 0.1 hours
Results saved to /home/obaskov/py/language-learning/output/POC-English-2018-10-23/short_table.txt