Skip to content

Commit b2af8d5

Browse files
committed
rename demonstrative_noun to determiner_noun
1 parent 303dccf commit b2af8d5

File tree

45 files changed

+92015
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+92015
-11
lines changed

images/exp1a_average.png

-895 KB

images/exp2.png

369 KB

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_determiner_noun-across_1_adjective_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_determiner_noun-between_neighbors_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_subject_verb-across_prepositional_phrase_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_subject_verb-across_relative_clause_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_subject_verb-in_question_with_aux_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_agreement_subject_verb-in_simple_question_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_anaphor_agreement-pronoun_gender_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_argument_structure-dropped_argument_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_argument_structure-swapped_arguments_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_argument_structure-transitive_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_binding-principle_a_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_case-subjective_pronoun_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_ellipsis-n_bar_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_filler-gap-wh_question_object_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_filler-gap-wh_question_subject_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_irregular-verb_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_island-effects-adjunct_island_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_island-effects-coordinate_structure_constraint_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_local_attractor-in_question_with_aux_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_npi_licensing-matrix_question_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_npi_licensing-only_npi_licensor_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_quantifiers-existential_there_results_260000.txt

+4,000
Large diffs are not rendered by default.

runs/fairseq_Roberta-base_5M/2/saves/forced_choice/8192/probing_quantifiers-superlative_results_260000.txt

+4,000
Large diffs are not rendered by default.

scripts/plot_accuracy_boxplot.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
STEP = '*'
1616
IS_LOCAL = True
1717
REP = 0
18-
PARAM_NAMES: Optional[List[str]] = None # [f'param_{i:03}' for i in [1, 2]]
19-
CONDITIONS = ['leave_unmasked_prob', ]
18+
PARAM_NAMES: Optional[List[str]] = [
19+
'huggingface_Roberta-base_30B',
20+
'huggingface_Roberta-base_10M',
21+
'fairseq_Roberta-base_5M',
22+
'huggingface_BabyBERTa_5M+standard-unmasking',
23+
'huggingface_BabyBERTa_5M',
24+
]
25+
CONDITIONS = ['corpora', 'leave_unmasked_prob', ]
2026

2127
if IS_LOCAL:
2228
configs.Eval.local_runs = True

zorro/utils.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_phenomena_and_paradigms(excluded_paradigms: Optional[List[str]] = None,
8787
# 4
8888
'agreement_subject_verb',
8989
# 2
90-
'agreement_demonstrative_subject',
90+
'agreement_determiner_noun',
9191
'filler-gap',
9292
'island-effects',
9393
'quantifiers',
@@ -205,15 +205,12 @@ def get_legend_label(group_name,
205205
res = res.replace("corpora=('wikipedia1', 'wikipedia2', 'wikipedia3')", 'Wiki-1 + Wiki-2 + Wiki-3')
206206
res = res.replace("corpora=('aochildes', 'aonewsela', 'wikipedia3')", 'AO-CHILDES + AO-Newsela + Wiki-3')
207207

208-
res = res.replace("corpora=('aochildes',)", 'AO-CHILDES')
209-
res = res.replace("corpora=('aonewsela',)", 'AO-Newsela')
210-
res = res.replace("corpora=('wikipedia1',)", 'Wikipedia-1')
211-
212208
res = res.replace("('aochildes',)", 'AO-CHILDES')
213209
res = res.replace("('aonewsela',)", 'AO-Newsela')
214210
res = res.replace("('wikipedia1',)", 'Wikipedia-1')
215211

216212
res = res.replace("data_size=", '')
213+
res = res.replace("corpora=", '')
217214

218215
return res
219216

zorro/visualizer.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def make_ax_title(name: str):
2727
ax_title = ax_title.replace('structure', 'struct.')
2828
ax_title = ax_title.replace('prepositional', 'prep.')
2929
ax_title = ax_title.replace('agreement', 'agreem.')
30-
ax_title = ax_title.replace('demonstrative', 'det.')
30+
ax_title = ax_title.replace('determiner', 'det.')
3131
return ax_title
3232

3333

@@ -505,9 +505,9 @@ def _plot_boxplot_summary_on_axis(self,
505505

506506
# x axis
507507
x_ticks = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
508-
ax.set_xlabel('Average Accuracy', fontsize=configs.Figs.ax_font_size)
508+
ax.set_xlabel('Average Accuracy', fontsize=8)
509509
ax.set_xticks(x_ticks)
510-
ax.set_xticklabels(x_ticks, fontsize=configs.Figs.tick_font_size)
510+
ax.set_xticklabels(x_ticks, fontsize=8)
511511

512512
# collect last_accuracy for each replication across all paradigms
513513
gn2rep2accuracies_by_pd = defaultdict(dict)
@@ -539,7 +539,7 @@ def _plot_boxplot_summary_on_axis(self,
539539
data_for_one_group = accuracies_by_pd_by_rep.mean(axis=0)
540540
boxplot_data.append(data_for_one_group)
541541
# boxplot plots IQR and line at median, not mean
542-
positions = [n for n, _ in enumerate(group_names)]
542+
positions = [n for n, _ in enumerate(group_names)][::-1]
543543
box_plot = ax.boxplot(boxplot_data,
544544
positions=positions,
545545
vert=False,
@@ -548,6 +548,7 @@ def _plot_boxplot_summary_on_axis(self,
548548
flierprops={'markersize': 2},
549549
boxprops=dict(linewidth=1),
550550
zorder=2,
551+
showfliers = False,
551552
)
552553
# mark the mean
553554
means = [np.mean(x) for x in boxplot_data]

0 commit comments

Comments
 (0)