New idea to visualize the distribution of PSA sampled parameters

オープン
#170 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r

調査の方向性

Start by checking how dampack currently exposes plotting and visualization features, then use the supplied R example with df_psa_random to understand the proposed grouping and density-ridge plots. Done would mean a documented way to visualize PSA sampled parameter distributions grouped as probabilities, utilities, costs, and other; the issue does not specify an entry point, tests, or expected interface.

索引モデルが issue の本文から書いたものです。

説明

feature

When the DARTH framework is uses, it would be nice to show the sampled distributions in an illustrative way.

Example to get started with. But we can improve this

Melt the dataset

df_melt <- melt(df_psa_random, variable.name = "Parameter")

Create a new column to classify parameters by prefix

df_melt <- df_melt %>%
mutate(Group = case_when(
str_starts(Parameter, "p_") ~ "Probabilities",
str_starts(Parameter, "u_") ~ "Utilities",
str_starts(Parameter, "c_") ~ "Costs",
TRUE ~ "Other"
))

Optionally check the groups

table(df_melt$Group)

df_probs <- df_melt %>% filter(Group == "Probabilities")

Probabilities:
ggplot(df_probs, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Probabilities")

df_utils <- df_melt %>% filter(Group == "Utilities")

ggplot(df_utils, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Utilities")

df_costs <- df_melt %>% filter(Group == "Costs")

ggplot(df_costs, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Costs")

df_other <- df_melt %>% filter(Group == "Other")

ggplot(df_other, aes(x = value, y = Parameter)) +
geom_density_ridges(scale = 1.5, rel_min_height = 0.01) +
theme_bw(base_size = 14) +
ggtitle("Other")

主要言語
R
スター
43
フォーク
14
平均マージ
4時間 44分
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DARTH-git/dampack のほかの issue

DARTH-git/dampack の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。