In [1]:
using StatsBase
s = [874, 1293, 1070] ./ 3237
p = [224, 242, 236] ./ 702
s = WeightVec(s)
p = WeightVec(p)
Out[1]:
In [2]:
model = "new grid beam"
rs_1 = [0.6590389016018307, 0.7001545595054096, 0.6766355140186916];
rp_1 = [0.2982456140350877, 0.20967741935483872, 0.2743362831858407];
rs_2 = [0.6979405034324943, 0.7554179566563467, 0.6822429906542056];
rp_2 = [0.34234234234234234, 0.2773109243697479, 0.2682926829268293];
rs_3 = [0.631578947368421, 0.6955177743431221, 0.6616822429906543];
rp_3 = [0.17543859649122806, 0.1693548387096774, 0.19469026548672566];
rs_4 = [0.6430205949656751, 0.7383900928792569, 0.6822429906542056];
rp_4 = [0.25225225225225223, 0.2773109243697479, 0.2764227642276423];
rs_5 = [0.6407322654462243, 0.714064914992272, 0.6841121495327103];
rp_5 = [0.21052631578947367, 0.23387096774193547, 0.25663716814159293];
rs_6 = [0.6887871853546911, 0.7321981424148607, 0.6878504672897197];
rp_6 = [0.32432432432432434, 0.29411764705882354, 0.2764227642276423];
rs_ens_1 = [0.6475972540045767, 0.7171561051004637, 0.7140186915887851];
rp_ens_1 = [0.21929824561403508, 0.23387096774193547, 0.336283185840708];
rs_ens_2 = [0.7208237986270023, 0.7693498452012384, 0.7121495327102804];
rp_ens_2 = [0.35135135135135137, 0.29411764705882354, 0.34146341463414637];
rs_m = (rs_1 + rs_2 + rs_3 + rs_4 + rs_5 + rs_6) / 6
rp_m = (rp_1 + rp_2 + rp_3 + rp_4 + rp_5 + rp_6) / 6
rs_ens_m = (rs_ens_1 + rs_ens_2) / 2
rp_ens_m = (rp_ens_1 + rp_ens_2) / 2
println("Single: $(rs_m)")
println("Paragraph: $(rp_m)")
println("Weighted Single: $(mean_and_std(rs_m, s))")
println("Weighted Paragraph: $(mean_and_std(rp_m, p))")
println("Ensemble Weighted Single: $(mean_and_std(rs_ens_m, s))")
println("Ensemble Weighted Paragraph: $(mean_and_std(rp_ens_m, p))")
In [ ]: