<jupyter_start><jupyter_text>ATLAS Gold StandardThis notebook generates a gold standard of ATLAS objects using Norris classifications.<jupyter_code>import astropy.io.ascii as asc, numpy
table = asc.read('one-table-to-rule-them-all.tbl')
resolved = table[table['Component S (Franzen)'] / table['Component Sp (Franzen)'] > 1]
resolved_rgz = resolved[numpy.array([bool(i) for i in resolved['Component Zooniverse ID (RGZ)']])]
resolved_rgz_norris = resolved_rgz[numpy.array([bool(i) for i in resolved_rgz['Source # (Norris)']])]
resolved_rgz_norris
numpy.random.seed(0)
indices = numpy.random.choice(list(range(len(resolved_rgz_norris))), replace=False, size=20)
resolved_rgz_norris[indices]
zids = [row['Component Zooniverse ID (RGZ)'] for row in resolved_rgz_norris[indices]]
assert len(set(zids)) == 20
with open('atlas_gold_standard.txt', 'w') as f:
    for zid in zids:
        f.write('{}\n'.format(zid))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14423076923076922, 'fraction_numerical': 0.00641025641025641, 'mean_word_length': 7.077586206896552, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '184633', 'license': 'MIT', 'n_tokens_mistral': 344, 'n_tokens_neox': 329, 'n_words': 73, 'path': 'scripts/atlas-gold-standard/atlas_gold_standard.ipynb', 'repo_name': 'chengsoonong/crowdastro', 'size': '936'}