<jupyter_start><jupyter_text>Distances between Eigenvalues<jupyter_code># Value 1
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K0.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K0.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K0.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 2
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K1.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K1.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K1.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 3
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K2.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K2.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K2.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()

# Value 4
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K3.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K3.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K3.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 5
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K4.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K4.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K4.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 6
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K5.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K5.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K5.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 7
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K6.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K6.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K6.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()

# Value 8
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K7.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K7.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K7.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()


# Value 9
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K8.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K8.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K8.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()

# Value 10
activator = "sgmd"
df_cnn_relu0_1 = pd.read_csv("results/" + activator + "/cnn_K9.csv")
activator = "tanh"
df_cnn_relu0_2 = pd.read_csv("results/" + activator + "/cnn_K9.csv")
activator = "relu"
df_cnn_relu0_3 = pd.read_csv("results/" + activator + "/cnn_K9.csv")

print("Sgmd to Tanh: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_2.to_numpy())))
print("Tanh to Relu: ", float(np.linalg.norm(df_cnn_relu0_2.to_numpy() - df_cnn_relu0_3.to_numpy())))
print("Relu to Sgmd: ", float(np.linalg.norm(df_cnn_relu0_1.to_numpy() - df_cnn_relu0_3.to_numpy())))
print()

df_k1 = np.transpose(df_k1)
df_k2 = np.transpose(df_k2)
df_k3 = np.transpose(df_k3)
# print(df_k1)
# print(df_k2)
# print(df_k3)
print("Sgmd to Tanh: ", float(np.linalg.norm(df_k1 - df_k2)))
print("Tanh to Relu: ", float(np.linalg.norm(df_k2 - df_k3)))
print("Relu to Sgmd: ", float(np.linalg.norm(df_k1 - df_k3)))<jupyter_output>Sgmd to Tanh:  1.2212399244308472
Tanh to Relu:  0.9338163733482361
Relu to Sgmd:  1.3059508800506592
{'fraction_non_alphanumeric': 0.18003120124804992, 'fraction_numerical': 0.04477379095163807, 'mean_word_length': 6.021905805038335, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '273677', 'license': 'ECL-2.0', 'n_tokens_mistral': 3272, 'n_tokens_neox': 3184, 'n_words': 398, 'path': 'mnist/Analysis-distance.ipynb', 'repo_name': 'ajaymota/jax', 'size': '6410'}