<jupyter_start><jupyter_text>Distance GNN> - toc:true- branch: master- badges: true- comments: false- author: 최서연, 최규빈<jupyter_code>import numpy as np
import pandas as pd
img1 = np.random.randn(28*28).reshape(28,28)
img2 = np.random.randn(28*28).reshape(28,28)
img3 = np.random.randn(28*28).reshape(28,28)
img4 = np.random.randn(28*28).reshape(28,28)
img5 = np.random.randn(28*28).reshape(28,28)
_a = [1]*5+[2]*5+[3]*5+[4]*5+[5]*5
_b = [1,2,3,4,5]*5<jupyter_output><empty_output><jupyter_text>`-` 2번째 데이터<jupyter_code>df=pd.DataFrame({'t':_a ,'s':_b})
df<jupyter_output><empty_output><jupyter_text>`-` 3번째 데이터<jupyter_code>df=df.assign(third = [0]*25)
df
df.third[0] = np.exp(((img1-img1)**2).sum())
theta= 5000
df.third[1] = np.exp(-((img1-img2)**2/theta).sum())
df<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.22613065326633167, 'fraction_numerical': 0.09798994974874371, 'mean_word_length': 7.56989247311828, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '325938', 'license': 'Apache-2.0', 'n_tokens_mistral': 426, 'n_tokens_neox': 412, 'n_words': 48, 'path': '_notebooks/2022-06-04-GNN-dist.ipynb', 'repo_name': 'seoyeonc/ms', 'size': '796'}