joshua400 commited on
Commit
067b681
·
1 Parent(s): 1c2fa82

Fix Pydantic typing error for Request

Browse files
README.md CHANGED
@@ -122,17 +122,17 @@ Prompt --> LLM generates action (JSON) --> Environment executes
122
  ### Reward vs Training Step
123
  Shows reward improvement over GRPO training iterations compared to random baseline.
124
 
125
- ![Reward vs Episode](https://raw.githubusercontent.com/joshua400/FairRecovery-PlusPlus/plots-branch/plots/reward_vs_episode.png)
126
 
127
  ### Fairness: Baseline vs Trained
128
  Demonstrates that the trained agent achieves better fairness scores (closer to 0) than the random baseline.
129
 
130
- ![Fairness vs Episode](https://raw.githubusercontent.com/joshua400/FairRecovery-PlusPlus/plots-branch/plots/fairness_vs_episode.png)
131
 
132
  ### Component Rewards Breakdown
133
  Shows how R_exec (utility) and R_fair (fairness) improve after training.
134
 
135
- ![Component Rewards](https://raw.githubusercontent.com/joshua400/FairRecovery-PlusPlus/plots-branch/plots/component_rewards.png)
136
 
137
  ---
138
 
 
122
  ### Reward vs Training Step
123
  Shows reward improvement over GRPO training iterations compared to random baseline.
124
 
125
+ `plots/reward_vs_episode.png`
126
 
127
  ### Fairness: Baseline vs Trained
128
  Demonstrates that the trained agent achieves better fairness scores (closer to 0) than the random baseline.
129
 
130
+ `plots/fairness_vs_episode.png`
131
 
132
  ### Component Rewards Breakdown
133
  Shows how R_exec (utility) and R_fair (fairness) improve after training.
134
 
135
+ `plots/component_rewards.png`
136
 
137
  ---
138
 
assets/fairness_vs_episode.png CHANGED

Git LFS Details

  • SHA256: 46690b2c4ac79d1e4d7e35f1538e03834a1646cb6a1eb36def1450894d42367c
  • Pointer size: 130 Bytes
  • Size of remote file: 45.8 kB
assets/fairness_vs_steps.png CHANGED

Git LFS Details

  • SHA256: 738e42fb416e07e84bb41b200ef85085420474f36d0ca08b4f2e9c30824f1dc4
  • Pointer size: 130 Bytes
  • Size of remote file: 39.8 kB
assets/reward_vs_episode.png CHANGED

Git LFS Details

  • SHA256: 46b851199c7254a46602962b32c5ef034f92d5ad776389562e40c57b3701eb30
  • Pointer size: 130 Bytes
  • Size of remote file: 36 kB
assets/reward_vs_steps.png CHANGED

Git LFS Details

  • SHA256: b669872e7539b8528b01f120cf5ccba989634e67aafec663b02d60271679ad1c
  • Pointer size: 130 Bytes
  • Size of remote file: 54.3 kB
assets/score_heatmap.png CHANGED

Git LFS Details

  • SHA256: 5b0e5d5757dbbfb9497cc7f5d0a93e6d0f10ff4337bbd2168a68ed4d1d91d04a
  • Pointer size: 130 Bytes
  • Size of remote file: 32.8 kB
assets/training_loss.png CHANGED

Git LFS Details

  • SHA256: 0fcbf5708df16ec70d1881549d0564a37fe74d55aca339ecf19f5adf22459d4f
  • Pointer size: 130 Bytes
  • Size of remote file: 54.2 kB
assets/training_results.png CHANGED

Git LFS Details

  • SHA256: d2775b7f98cb57ee69d17643fcaa27131b150b3a5bbf06eee57f2e2c97ad04dc
  • Pointer size: 130 Bytes
  • Size of remote file: 78.2 kB
assets/utility_vs_fairness.png CHANGED

Git LFS Details

  • SHA256: c661f163c926201ce39018e9b6cb2617b92b2f2e9a143ec4b21dde2fbaa36e35
  • Pointer size: 130 Bytes
  • Size of remote file: 25 kB
fairness_vs_episode.png CHANGED

Git LFS Details

  • SHA256: 46690b2c4ac79d1e4d7e35f1538e03834a1646cb6a1eb36def1450894d42367c
  • Pointer size: 130 Bytes
  • Size of remote file: 45.8 kB
fairness_vs_steps.png CHANGED

Git LFS Details

  • SHA256: 738e42fb416e07e84bb41b200ef85085420474f36d0ca08b4f2e9c30824f1dc4
  • Pointer size: 130 Bytes
  • Size of remote file: 39.8 kB
reward_vs_episode.png CHANGED

Git LFS Details

  • SHA256: 46b851199c7254a46602962b32c5ef034f92d5ad776389562e40c57b3701eb30
  • Pointer size: 130 Bytes
  • Size of remote file: 36 kB
reward_vs_steps.png CHANGED

Git LFS Details

  • SHA256: b669872e7539b8528b01f120cf5ccba989634e67aafec663b02d60271679ad1c
  • Pointer size: 130 Bytes
  • Size of remote file: 54.3 kB
server/app.py CHANGED
@@ -7,6 +7,7 @@ Mirrors hallucination-detector-gym server/app.py pattern exactly.
7
  from __future__ import annotations
8
  import os, sys
9
  from typing import Optional
 
10
 
11
  sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
12
 
@@ -24,7 +25,6 @@ configure_logging(json_output=True, log_level="INFO")
24
 
25
 
26
  def _build_app():
27
- from fastapi import FastAPI, Request
28
  from fastapi.responses import JSONResponse, RedirectResponse
29
  import gradio as gr
30
 
 
7
  from __future__ import annotations
8
  import os, sys
9
  from typing import Optional
10
+ from fastapi import FastAPI, Request
11
 
12
  sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
13
 
 
25
 
26
 
27
  def _build_app():
 
28
  from fastapi.responses import JSONResponse, RedirectResponse
29
  import gradio as gr
30
 
utility_vs_fairness.png CHANGED

Git LFS Details

  • SHA256: c661f163c926201ce39018e9b6cb2617b92b2f2e9a143ec4b21dde2fbaa36e35
  • Pointer size: 130 Bytes
  • Size of remote file: 25 kB