Wen1201 commited on
Commit
e118b44
·
verified ·
1 Parent(s): cbb69ac

Upload app_bayesian.py

Browse files
Files changed (1) hide show
  1. app_bayesian.py +6 -6
app_bayesian.py CHANGED
@@ -147,7 +147,7 @@ with st.sidebar:
147
  st.markdown("---")
148
 
149
  # MCMC 參數設定
150
- st.subheader("🔬 MCMC 參數")
151
 
152
  n_samples = st.number_input(
153
  "抽樣數 (Samples)",
@@ -159,12 +159,12 @@ with st.sidebar:
159
  )
160
 
161
  n_tune = st.number_input(
162
- "調整期 (Tune)",
163
  min_value=200,
164
  max_value=5000,
165
  value=1000,
166
  step=200,
167
- help="調整期的樣本數"
168
  )
169
 
170
  n_chains = st.selectbox(
@@ -255,7 +255,7 @@ tab1, tab2 = st.tabs(["📊 貝氏分析", "💬 AI 助手"])
255
 
256
  # Tab 1: 貝氏分析
257
  with tab1:
258
- st.header("📊 貝氏階層模型分析")
259
 
260
  # 載入資料
261
  if data_source == "使用預設資料集":
@@ -444,12 +444,12 @@ with tab1:
444
 
445
  # Tab: Trace & Posterior
446
  with result_tabs[1]:
447
- st.markdown("### 📈 Trace Plot(收斂診斷)")
448
  st.markdown("""
449
  **Trace Plot 用途**:
450
  - 檢查 MCMC 抽樣是否收斂
451
  - 左圖:後驗分佈密度
452
- - 右圖:抽樣軌跡(應該像「毛毛蟲」)
453
  """)
454
 
455
  if st.session_state.trace_img:
 
147
  st.markdown("---")
148
 
149
  # MCMC 參數設定
150
+ st.subheader("🔬 蒙地卡羅馬可夫鏈 參數")
151
 
152
  n_samples = st.number_input(
153
  "抽樣數 (Samples)",
 
159
  )
160
 
161
  n_tune = st.number_input(
162
+ "Burn-in",
163
  min_value=200,
164
  max_value=5000,
165
  value=1000,
166
  step=200,
167
+ help="Burn-in 的樣本數"
168
  )
169
 
170
  n_chains = st.selectbox(
 
255
 
256
  # Tab 1: 貝氏分析
257
  with tab1:
258
+ st.header("📊 貝氏統合分析模型")
259
 
260
  # 載入資料
261
  if data_source == "使用預設資料集":
 
444
 
445
  # Tab: Trace & Posterior
446
  with result_tabs[1]:
447
+ st.markdown("### 📈 Trace Plot(抽樣軌跡)")
448
  st.markdown("""
449
  **Trace Plot 用途**:
450
  - 檢查 MCMC 抽樣是否收斂
451
  - 左圖:後驗分佈密度
452
+ - 右圖:抽樣軌跡
453
  """)
454
 
455
  if st.session_state.trace_img: