Update pages/LLM_Trial_1.py
Browse files- pages/LLM_Trial_1.py +0 -15
pages/LLM_Trial_1.py
CHANGED
|
@@ -1055,11 +1055,6 @@ d3=pd.DataFrame(results_df3, index=['dataset 2'])
|
|
| 1055 |
d4=pd.DataFrame(results_df4, index=['synthetic dataset 2'])
|
| 1056 |
df_tot= pd.concat([d1,d2,d3,d4])
|
| 1057 |
st.dataframe(df_tot)
|
| 1058 |
-
#st.write('These results demonstrate excellent synthetic data quality: \
|
| 1059 |
-
#the mean poisson deviance (mpd) and mean gamma deviance (mgd) metrics are \
|
| 1060 |
-
#nearly identical between real and synthetic datasets for both dataset 1 and dataset 2. \
|
| 1061 |
-
#This suggests the synthetic data accurately preserves the statistical properties and \
|
| 1062 |
-
#predictive complexity of the original data')
|
| 1063 |
|
| 1064 |
|
| 1065 |
# barplot comparison
|
|
@@ -1076,8 +1071,6 @@ for container in ax.containers:
|
|
| 1076 |
|
| 1077 |
plt.tight_layout()
|
| 1078 |
st.pyplot(fig)
|
| 1079 |
-
#st.write('This visualization confirms the strong fidelity of the synthetic data. \
|
| 1080 |
-
#The first synthetic dataset pefroms little better on frequency')
|
| 1081 |
|
| 1082 |
|
| 1083 |
# MPD: Train vs Test Comparison
|
|
@@ -1119,9 +1112,6 @@ for container in axes[1].containers:
|
|
| 1119 |
|
| 1120 |
plt.tight_layout()
|
| 1121 |
st.pyplot(fig)
|
| 1122 |
-
#st.write('This comparison reveals excellent synthetic data quality with minimal \
|
| 1123 |
-
#train-test gaps. The synthetic generation process maintains distributional properties, \
|
| 1124 |
-
#and also model generalization characteristics.')
|
| 1125 |
|
| 1126 |
# Create a heatmap
|
| 1127 |
fig, ax = plt.subplots(figsize=(10, 6))
|
|
@@ -1134,8 +1124,3 @@ ax.set_ylabel('Datasets')
|
|
| 1134 |
|
| 1135 |
plt.tight_layout()
|
| 1136 |
st.pyplot(fig)
|
| 1137 |
-
#st.write('The heatmap with the near-identical color patterns between real and synthetic versions \
|
| 1138 |
-
#of each dataset confirm excellent replication fidelity. Dataset 2 shows dramatically \
|
| 1139 |
-
#lower MPD values (green, ~0.28-0.44) compared to dataset 1 (orange-red, ~1.43-1.75), while MGD \
|
| 1140 |
-
#values remain similarly high across both, suggesting dataset 2 represents a different \
|
| 1141 |
-
#modeling challenge that the synthetic generation process successfully preserves.')
|
|
|
|
| 1055 |
d4=pd.DataFrame(results_df4, index=['synthetic dataset 2'])
|
| 1056 |
df_tot= pd.concat([d1,d2,d3,d4])
|
| 1057 |
st.dataframe(df_tot)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1058 |
|
| 1059 |
|
| 1060 |
# barplot comparison
|
|
|
|
| 1071 |
|
| 1072 |
plt.tight_layout()
|
| 1073 |
st.pyplot(fig)
|
|
|
|
|
|
|
| 1074 |
|
| 1075 |
|
| 1076 |
# MPD: Train vs Test Comparison
|
|
|
|
| 1112 |
|
| 1113 |
plt.tight_layout()
|
| 1114 |
st.pyplot(fig)
|
|
|
|
|
|
|
|
|
|
| 1115 |
|
| 1116 |
# Create a heatmap
|
| 1117 |
fig, ax = plt.subplots(figsize=(10, 6))
|
|
|
|
| 1124 |
|
| 1125 |
plt.tight_layout()
|
| 1126 |
st.pyplot(fig)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|