def both(): both_dict = default_dict.copy() both_dict['title'] = 'First Real Experiment' both_dict['part'] = '1' both_dict['maxim'] = 20 both_dict['train_time'] = 200 both_gt = BrownGrammarTrainer(**both_dict) both_gt.timed_train(s=4) both_gt.make_csv_and_pickle()
def both(): both_dict = default_dict.copy() both_dict['title'] = 'First Real Experiment' both_dict['part'] = '1' both_dict['maxim'] = 20 both_dict['train_time'] = 200 both_gt = BrownGrammarTrainer(**both_dict) both_gt.timed_train(s=4) both_gt.make_csv_and_pickle()
def small_set_flex(): small_dict = default_dict.copy() small_dict['title'] = 'SvsM1' small_dict['part'] = 'small_flex' small_dict['maxim'] = 7 small_dict['train_time'] = 40 small_gt = BrownGrammarTrainer(**small_dict) small_gt.timed_train(s=2) small_gt.make_csv_and_pickle()
def no_num(): punct_dict = default_dict.copy() punct_dict['title'] = 'First Real Experiment' punct_dict['part'] = '3' punct_dict['maxim'] = 20 punct_dict['train_time'] = 200 punct_dict['include_numbers'] = False punct_gt = BrownGrammarTrainer(**punct_dict) punct_gt.timed_train(s=4) punct_gt.make_csv_and_pickle()
def no_punct(): num_dict = default_dict.copy() num_dict['title'] = 'First Real Experiment' num_dict['part'] = '2' num_dict['maxim'] = 20 num_dict['train_time'] = 200 num_dict['include_punctuation'] = False num_gt = BrownGrammarTrainer(**num_dict) num_gt.timed_train(s=4) num_gt.make_csv_and_pickle()
def no_num(): punct_dict = default_dict.copy() punct_dict['title'] = 'First Real Experiment' punct_dict['part'] = '3' punct_dict['maxim'] = 20 punct_dict['train_time'] = 200 punct_dict['include_numbers'] = False punct_gt = BrownGrammarTrainer(**punct_dict) punct_gt.timed_train(s=4) punct_gt.make_csv_and_pickle()
def no_punct(): num_dict = default_dict.copy() num_dict['title'] = 'First Real Experiment' num_dict['part'] = '2' num_dict['maxim'] = 20 num_dict['train_time'] = 200 num_dict['include_punctuation'] = False num_gt = BrownGrammarTrainer(**num_dict) num_gt.timed_train(s=4) num_gt.make_csv_and_pickle()
def small_set(): small_dict = default_dict.copy() small_dict['title'] = 'SvsM1' small_dict['part'] = 'small' small_dict['maxim'] = 7 small_dict['train_time'] = 50 small_dict['include_punctuation'] = False small_dict['include_numbers'] = False small_gt = BrownGrammarTrainer(**small_dict) small_gt.timed_train(s=2) small_gt.make_csv_and_pickle()
def try_gen_error(): gen_dict = default_dict.copy() gen_dict['title'] = 'Gen Error Trial' gen_dict['minim'] = 4 gen_dict['maxim'] = 4 gen_dict['include_punctuation'] = False gen_dict['include_numbers'] = False gen_dict['gen_len'] = 8 gt = BrownGrammarTrainer(**gen_dict) gt.timed_train() gt.make_csv_and_pickle()
def med_set_flex(): med_dict = default_dict.copy() med_dict['title'] = 'SvsM1' med_dict['maxim'] = 7 med_dict['train_time'] = 40 #### THE PART THAT'S DIFFERENT ### ################################## med_dict['part'] = 'med_flex' med_dict['medium'] = True ################################## med_gt = BrownGrammarTrainer(**med_dict) med_gt.timed_train(s=2) med_gt.make_csv_and_pickle()
def med_set(): med_dict = default_dict.copy() med_dict['title'] = 'SvsM1' med_dict['include_punctuation'] = False med_dict['include_numbers'] = False med_dict['maxim'] = 7 med_dict['train_time'] = 50 #### THE PART THAT'S DIFFERENT ### ################################## med_dict['part'] = 'med' med_dict['medium'] = True ################################## med_gt = BrownGrammarTrainer(**med_dict) med_gt.timed_train(s=2) med_gt.make_csv_and_pickle()
from GrammarBrain.BrownGrammarTrainer import BrownGrammarTrainer from GrammarBrain.brown_data.util.Experiments import default_dict gen_dict = default_dict.copy() gen_dict['title'] = 'Gen Error 4 to 8' gen_dict['minim'] = 4 gen_dict['maxim'] = 8 gen_dict['include_punctuation'] = False gen_dict['include_numbers'] = False gen_dict['gen_len'] = 20 gen_dict['train_time'] = 40 def gen_error_1(): gen_dict_1 = gen_dict.copy() gen_dict_1['part'] = 1 gt = BrownGrammarTrainer(**gen_dict_1) gt.timed_train(s=4) gt.make_csv_and_pickle() def gen_error_2(): gen_dict_2 = gen_dict.copy() gen_dict_2['part'] = 2 gen_dict_2['include_punctuation'] = True gen_dict_2['include_numbers'] = True gt = BrownGrammarTrainer(**gen_dict_2) gt.timed_train(s=4) gt.make_csv_and_pickle() def gen_error_3(): gen_dict_3 = gen_dict.copy() gen_dict_3['part'] = 3