更新 neuron activation distribution.py
This commit is contained in:
parent
1dc22a9747
commit
57f99677c4
|
|
@ -55,3 +55,18 @@ plt.show()
|
||||||
# plt.xlabel("Activation Value")
|
# plt.xlabel("Activation Value")
|
||||||
# plt.ylabel("Density")
|
# plt.ylabel("Density")
|
||||||
# plt.show()
|
# plt.show()
|
||||||
|
|
||||||
|
|
||||||
|
# from sklearn.preprocessing import StandardScaler
|
||||||
|
|
||||||
|
# # Normalize activation values to z-score
|
||||||
|
# scaler = StandardScaler()
|
||||||
|
# normalized_data = scaler.fit_transform(flattened_data.reshape(-1, 1)).flatten()
|
||||||
|
|
||||||
|
# # Plot the normalized activation distribution
|
||||||
|
# sns.histplot(normalized_data, bins=50, kde=True, stat='density')
|
||||||
|
# plt.title("Neuron Activation Distribution (Normalized Features)")
|
||||||
|
# plt.xlabel("Normalized Activation Value (Z-Score)")
|
||||||
|
# plt.ylabel("Density")
|
||||||
|
# plt.show()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue