PROSTLE commited on
Commit
ed82cc8
·
1 Parent(s): 10f4dec

fix: satisfy 3-task minimum and standardize task naming

Browse files
Files changed (2) hide show
  1. inference.py +2 -2
  2. openenv.yaml +12 -2
inference.py CHANGED
@@ -187,8 +187,8 @@ if __name__ == "__main__":
187
  tickers = sys.argv[1:] if len(sys.argv) > 1 else ["RELIANCE.NS"]
188
 
189
  # [START] block required by OpenEnv grader
190
- # We use the first ticker as the primary task context if multiple are provided
191
- task_name = f"Analyze_{tickers[0]}"
192
  print(f"[START] task={task_name}", flush=True)
193
 
194
  results = run_batch_inference(tickers)
 
187
  tickers = sys.argv[1:] if len(sys.argv) > 1 else ["RELIANCE.NS"]
188
 
189
  # [START] block required by OpenEnv grader
190
+ # We use 'prediction' as the task name to match openenv.yaml
191
+ task_name = "prediction"
192
  print(f"[START] task={task_name}", flush=True)
193
 
194
  results = run_batch_inference(tickers)
openenv.yaml CHANGED
@@ -13,13 +13,23 @@ tags:
13
  - stock-prediction
14
  - ai-vit
15
 
16
- # Task definition for the OpenEnv grader
17
  tasks:
18
  - name: prediction
19
- description: "Generate a market direction prediction (bullish/bearish/neutral) and a confidence score for a given ticker."
20
  difficulty: medium
21
  max_steps: 1
22
  score_range: [0.0, 1.0]
 
 
 
 
 
 
 
 
 
 
23
 
24
  # High-level definition of the environment's interaction space
25
  observation_space:
 
13
  - stock-prediction
14
  - ai-vit
15
 
16
+ # Task definitions for the OpenEnv grader
17
  tasks:
18
  - name: prediction
19
+ description: "Full market direction prediction (bullish/bearish/neutral) and a confidence score."
20
  difficulty: medium
21
  max_steps: 1
22
  score_range: [0.0, 1.0]
23
+ - name: sentiment
24
+ description: "Analyze recent news and social media sentiment for a specific ticker."
25
+ difficulty: easy
26
+ max_steps: 1
27
+ score_range: [0.0, 1.0]
28
+ - name: technical
29
+ description: "Calculate and interpret technical indicators (RSI, MACD, etc.) for a ticker."
30
+ difficulty: easy
31
+ max_steps: 1
32
+ score_range: [0.0, 1.0]
33
 
34
  # High-level definition of the environment's interaction space
35
  observation_space: