Spaces:
Running
Running
0.2.4 - Added `MMC` to `Payout Sim`
Browse files
app/app.R
CHANGED
@@ -529,7 +529,9 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
529 |
|
530 |
br(),
|
531 |
|
532 |
-
markdown("![new_tc_change](https://i.ibb.co/XjKwtzr/screenshot-2023-10-05-at-10.png)"),
|
|
|
|
|
533 |
|
534 |
br(),
|
535 |
|
@@ -537,11 +539,13 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
537 |
|
538 |
- **sum_pay**: Sum of Payouts
|
539 |
- **shp_pay**: Sharpe Ratio of Payouts
|
540 |
-
- **1C0T**: 1xCORRv2 + 0xTC
|
541 |
-
- **2C0T**: 2xCORRv2 + 0xTC (New Payout Mode)
|
542 |
-
- **2C1T**: 2xCORRv2 + 1xTC (New Payout Mode)
|
543 |
- **1C3T**: 1xCORRv2 + 3xTC (Original Degen Mode)
|
|
|
|
|
|
|
|
|
544 |
|
|
|
545 |
"),
|
546 |
|
547 |
br(),
|
@@ -671,6 +675,7 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
671 |
- #### **0.2.1** — Added `KPI (All)`
|
672 |
- #### **0.2.2** — Sped up chart rendering with `toWebGL()`
|
673 |
- #### **0.2.3** — Added new `MMC` - Ref: https://forum.numer.ai/t/changing-scoring-payouts-again-to-mmc-only/6794/27
|
|
|
674 |
"),
|
675 |
|
676 |
br(),
|
@@ -689,7 +694,7 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
689 |
|
690 |
footer = shinydashboardPlus::dashboardFooter(
|
691 |
left = "Powered by ❤️, ☕, Shiny, and 🤗 Spaces",
|
692 |
-
right = paste0("Version 0.2.
|
693 |
|
694 |
)
|
695 |
|
@@ -922,6 +927,7 @@ server <- function(input, output) {
|
|
922 |
d_payout[, payout_2C0T := (2*corrV2_final) * stake * pay_ftr]
|
923 |
d_payout[, payout_2C1T := (2*corrV2_final + tc_final) * stake * pay_ftr]
|
924 |
d_payout[, payout_1C3T := (corrV2_final + 3*tc_final) * stake * pay_ftr]
|
|
|
925 |
|
926 |
# Summarise
|
927 |
d_payout_smry <-
|
@@ -935,11 +941,13 @@ server <- function(input, output) {
|
|
935 |
sum_pay_2C0T = sum(payout_2C0T, na.rm = T),
|
936 |
sum_pay_2C1T = sum(payout_2C1T, na.rm = T),
|
937 |
sum_pay_1C3T = sum(payout_1C3T, na.rm = T),
|
|
|
938 |
|
939 |
shp_pay_1C0T = mean(payout_1C0T, na.rm = T) / sd(payout_1C0T, na.rm = T),
|
940 |
shp_pay_2C0T = mean(payout_2C0T, na.rm = T) / sd(payout_2C0T, na.rm = T),
|
941 |
shp_pay_2C1T = mean(payout_2C1T, na.rm = T) / sd(payout_2C1T, na.rm = T),
|
942 |
-
shp_pay_1C3T = mean(payout_1C3T, na.rm = T) / sd(payout_1C3T, na.rm = T)
|
|
|
943 |
|
944 |
) |>
|
945 |
as.data.table()
|
@@ -978,6 +986,7 @@ server <- function(input, output) {
|
|
978 |
d_payout[, payout_2C0T := (2*corrV2_final) * stake * pay_ftr]
|
979 |
d_payout[, payout_2C1T := (2*corrV2_final + tc_final) * stake * pay_ftr]
|
980 |
d_payout[, payout_1C3T := (corrV2_final + 3*tc_final) * stake * pay_ftr]
|
|
|
981 |
|
982 |
# Summarise
|
983 |
d_payout_smry <-
|
@@ -989,11 +998,13 @@ server <- function(input, output) {
|
|
989 |
sum_pay_2C0T = sum(payout_2C0T, na.rm = T),
|
990 |
sum_pay_2C1T = sum(payout_2C1T, na.rm = T),
|
991 |
sum_pay_1C3T = sum(payout_1C3T, na.rm = T),
|
|
|
992 |
|
993 |
shp_pay_1C0T = mean(payout_1C0T, na.rm = T) / sd(payout_1C0T, na.rm = T),
|
994 |
shp_pay_2C0T = mean(payout_2C0T, na.rm = T) / sd(payout_2C0T, na.rm = T),
|
995 |
shp_pay_2C1T = mean(payout_2C1T, na.rm = T) / sd(payout_2C1T, na.rm = T),
|
996 |
-
shp_pay_1C3T = mean(payout_1C3T, na.rm = T) / sd(payout_1C3T, na.rm = T)
|
|
|
997 |
|
998 |
) |>
|
999 |
as.data.table()
|
@@ -1747,17 +1758,20 @@ server <- function(input, output) {
|
|
1747 |
|
1748 |
# Reformat individual columns
|
1749 |
formatRound(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
|
|
1750 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1751 |
digits = 2) |>
|
1752 |
|
1753 |
formatStyle(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
|
|
1754 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1755 |
color = styleInterval(cuts = c(-1e-15, 1e-15),
|
1756 |
values = c("#D24141", "#D1D1D1", "#00A800"))) |>
|
1757 |
|
1758 |
formatStyle(columns = c("model",
|
1759 |
-
"
|
1760 |
-
"
|
|
|
1761 |
), fontWeight = "bold")
|
1762 |
|
1763 |
})
|
@@ -1787,17 +1801,18 @@ server <- function(input, output) {
|
|
1787 |
|
1788 |
# Reformat individual columns
|
1789 |
formatRound(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
|
|
1790 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1791 |
digits = 2) |>
|
1792 |
|
1793 |
formatStyle(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
|
|
1794 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1795 |
color = styleInterval(cuts = c(-1e-15, 1e-15),
|
1796 |
values = c("#D24141", "#D1D1D1", "#00A800"))) |>
|
1797 |
|
1798 |
-
formatStyle(columns = c("
|
1799 |
-
|
1800 |
-
), fontWeight = "bold")
|
1801 |
|
1802 |
})
|
1803 |
|
|
|
529 |
|
530 |
br(),
|
531 |
|
532 |
+
# markdown("![new_tc_change](https://i.ibb.co/XjKwtzr/screenshot-2023-10-05-at-10.png)"),
|
533 |
+
markdown("![new_mmc](https://forum.numer.ai/uploads/default/optimized/2X/0/0b04785bd7167ff261f26325bc926c107398e26a_2_1035x729.jpeg)"),
|
534 |
+
|
535 |
|
536 |
br(),
|
537 |
|
|
|
539 |
|
540 |
- **sum_pay**: Sum of Payouts
|
541 |
- **shp_pay**: Sharpe Ratio of Payouts
|
|
|
|
|
|
|
542 |
- **1C3T**: 1xCORRv2 + 3xTC (Original Degen Mode)
|
543 |
+
- **1C0T**: 1xCORRv2 + 0xTC (Until the End of 2023)
|
544 |
+
- **2C0T**: 2xCORRv2 + 0xTC (Until the End of 2023)
|
545 |
+
- **2C1T**: 2xCORRv2 + 1xTC (Until the End of 2023)
|
546 |
+
- **2MMC**: 1xMMCv2 (Upcoming Payout Mode) - See https://forum.numer.ai/t/changing-scoring-payouts-again-to-mmc-only/6794
|
547 |
|
548 |
+
|
549 |
"),
|
550 |
|
551 |
br(),
|
|
|
675 |
- #### **0.2.1** — Added `KPI (All)`
|
676 |
- #### **0.2.2** — Sped up chart rendering with `toWebGL()`
|
677 |
- #### **0.2.3** — Added new `MMC` - Ref: https://forum.numer.ai/t/changing-scoring-payouts-again-to-mmc-only/6794/27
|
678 |
+
- #### **0.2.4** — Added `MMC` to `Payout Sim`
|
679 |
"),
|
680 |
|
681 |
br(),
|
|
|
694 |
|
695 |
footer = shinydashboardPlus::dashboardFooter(
|
696 |
left = "Powered by ❤️, ☕, Shiny, and 🤗 Spaces",
|
697 |
+
right = paste0("Version 0.2.4"))
|
698 |
|
699 |
)
|
700 |
|
|
|
927 |
d_payout[, payout_2C0T := (2*corrV2_final) * stake * pay_ftr]
|
928 |
d_payout[, payout_2C1T := (2*corrV2_final + tc_final) * stake * pay_ftr]
|
929 |
d_payout[, payout_1C3T := (corrV2_final + 3*tc_final) * stake * pay_ftr]
|
930 |
+
d_payout[, payout_2MMC := (2*mmc) * stake * pay_ftr]
|
931 |
|
932 |
# Summarise
|
933 |
d_payout_smry <-
|
|
|
941 |
sum_pay_2C0T = sum(payout_2C0T, na.rm = T),
|
942 |
sum_pay_2C1T = sum(payout_2C1T, na.rm = T),
|
943 |
sum_pay_1C3T = sum(payout_1C3T, na.rm = T),
|
944 |
+
sum_pay_2MMC = sum(payout_2MMC, na.rm = T),
|
945 |
|
946 |
shp_pay_1C0T = mean(payout_1C0T, na.rm = T) / sd(payout_1C0T, na.rm = T),
|
947 |
shp_pay_2C0T = mean(payout_2C0T, na.rm = T) / sd(payout_2C0T, na.rm = T),
|
948 |
shp_pay_2C1T = mean(payout_2C1T, na.rm = T) / sd(payout_2C1T, na.rm = T),
|
949 |
+
shp_pay_1C3T = mean(payout_1C3T, na.rm = T) / sd(payout_1C3T, na.rm = T),
|
950 |
+
shp_pay_2MMC = mean(payout_2MMC, na.rm = T) / sd(payout_2MMC, na.rm = T)
|
951 |
|
952 |
) |>
|
953 |
as.data.table()
|
|
|
986 |
d_payout[, payout_2C0T := (2*corrV2_final) * stake * pay_ftr]
|
987 |
d_payout[, payout_2C1T := (2*corrV2_final + tc_final) * stake * pay_ftr]
|
988 |
d_payout[, payout_1C3T := (corrV2_final + 3*tc_final) * stake * pay_ftr]
|
989 |
+
d_payout[, payout_2MMC := (2*mmc) * stake * pay_ftr]
|
990 |
|
991 |
# Summarise
|
992 |
d_payout_smry <-
|
|
|
998 |
sum_pay_2C0T = sum(payout_2C0T, na.rm = T),
|
999 |
sum_pay_2C1T = sum(payout_2C1T, na.rm = T),
|
1000 |
sum_pay_1C3T = sum(payout_1C3T, na.rm = T),
|
1001 |
+
sum_pay_2MMC = sum(payout_2MMC, na.rm = T),
|
1002 |
|
1003 |
shp_pay_1C0T = mean(payout_1C0T, na.rm = T) / sd(payout_1C0T, na.rm = T),
|
1004 |
shp_pay_2C0T = mean(payout_2C0T, na.rm = T) / sd(payout_2C0T, na.rm = T),
|
1005 |
shp_pay_2C1T = mean(payout_2C1T, na.rm = T) / sd(payout_2C1T, na.rm = T),
|
1006 |
+
shp_pay_1C3T = mean(payout_1C3T, na.rm = T) / sd(payout_1C3T, na.rm = T),
|
1007 |
+
shp_pay_2MMC = mean(payout_2MMC, na.rm = T) / sd(payout_2MMC, na.rm = T)
|
1008 |
|
1009 |
) |>
|
1010 |
as.data.table()
|
|
|
1758 |
|
1759 |
# Reformat individual columns
|
1760 |
formatRound(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
1761 |
+
"sum_pay_2MMC", "shp_pay_2MMC",
|
1762 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1763 |
digits = 2) |>
|
1764 |
|
1765 |
formatStyle(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
1766 |
+
"sum_pay_2MMC", "shp_pay_2MMC",
|
1767 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1768 |
color = styleInterval(cuts = c(-1e-15, 1e-15),
|
1769 |
values = c("#D24141", "#D1D1D1", "#00A800"))) |>
|
1770 |
|
1771 |
formatStyle(columns = c("model",
|
1772 |
+
"sum_pay_2MMC", "shp_pay_2MMC"
|
1773 |
+
# "sum_pay_2C1T", "sum_pay_1C3T",
|
1774 |
+
# "shp_pay_2C1T", "shp_pay_1C3T"
|
1775 |
), fontWeight = "bold")
|
1776 |
|
1777 |
})
|
|
|
1801 |
|
1802 |
# Reformat individual columns
|
1803 |
formatRound(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
1804 |
+
"sum_pay_2MMC", "shp_pay_2MMC",
|
1805 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1806 |
digits = 2) |>
|
1807 |
|
1808 |
formatStyle(columns = c("sum_pay_1C0T", "sum_pay_2C0T", "sum_pay_2C1T", "sum_pay_1C3T",
|
1809 |
+
"sum_pay_2MMC", "shp_pay_2MMC",
|
1810 |
"shp_pay_1C0T", "shp_pay_2C0T", "shp_pay_2C1T", "shp_pay_1C3T"),
|
1811 |
color = styleInterval(cuts = c(-1e-15, 1e-15),
|
1812 |
values = c("#D24141", "#D1D1D1", "#00A800"))) |>
|
1813 |
|
1814 |
+
formatStyle(columns = c("sum_pay_2MMC", "shp_pay_2MMC"),
|
1815 |
+
fontWeight = "bold")
|
|
|
1816 |
|
1817 |
})
|
1818 |
|