FelixPhilip commited on
Commit
9c2accc
·
1 Parent(s): 5f1829e

Oracle weight assigning update

Browse files
Files changed (1) hide show
  1. Oracle/deepfundingoracle.py +2 -10
Oracle/deepfundingoracle.py CHANGED
@@ -235,7 +235,7 @@ def timeout_handler(signum, frame):
235
 
236
 
237
 
238
- def assign_base_weight(df, max_workers=32, llm_retries=3,llm_delay=2):
239
  """
240
  Assign base weights using a single LLM call to determine feature weights,
241
  and programmatically calculate repository weights.
@@ -247,15 +247,7 @@ def assign_base_weight(df, max_workers=32, llm_retries=3,llm_delay=2):
247
 
248
  # Step 1: Call LLM once to determine weights for each feature
249
  prompt = (
250
- "The following are GitHub repository features:\n"
251
- "- Stars\n"
252
- "- Forks\n"
253
- "- Watchers\n"
254
- "- Open Issues\n"
255
- "- Pull Requests\n"
256
- "- Activity (days since last update)\n"
257
- "- Contributors\n\n"
258
- "Can you Predict a weight in the range (0-1) to each feature listed above based on its importance in determining "
259
  "the influence of a repository. Output ONLY a valid JSON object with keys as feature names and values as the predicted weights. "
260
  "Do not include any explanation or extra text. here is an output example: \n"
261
  '{\n'
 
235
 
236
 
237
 
238
+ def assign_base_weight(df, max_workers=32, llm_retries=2,llm_delay=0):
239
  """
240
  Assign base weights using a single LLM call to determine feature weights,
241
  and programmatically calculate repository weights.
 
247
 
248
  # Step 1: Call LLM once to determine weights for each feature
249
  prompt = (
250
+ "Can you Predict a weight in the range (0-1) for these github features such as stars,forks,watchers,open_issues,pulls,activity,contributors based on its importance in determining "
 
 
 
 
 
 
 
 
251
  "the influence of a repository. Output ONLY a valid JSON object with keys as feature names and values as the predicted weights. "
252
  "Do not include any explanation or extra text. here is an output example: \n"
253
  '{\n'