FelixPhilip commited on
Commit
a89ed26
·
1 Parent(s): c926705
Files changed (1) hide show
  1. Oracle/deepfundingoracle.py +4 -1
Oracle/deepfundingoracle.py CHANGED
@@ -399,7 +399,10 @@ def prepare_dataset(file):
399
  df = assign_base_weight(df)
400
  df = sanity_check_weights(df) # Add sanity-check and ensemble weights
401
  df = train_predict_weight(df)
402
- visualize_feature_distributions(df) # Add feature visualization
 
 
 
403
  df = normalize_funding(df)
404
  end_time = time.time()
405
  print(f"[INFO] Dataset preparation completed in {end_time - start_time:.2f} seconds.")
 
399
  df = assign_base_weight(df)
400
  df = sanity_check_weights(df) # Add sanity-check and ensemble weights
401
  df = train_predict_weight(df)
402
+ if df is not None and not df.empty:
403
+ visualize_feature_distributions(df)
404
+ else:
405
+ print("[WARN] DataFrame is empty after processing. Skipping visualization.")
406
  df = normalize_funding(df)
407
  end_time = time.time()
408
  print(f"[INFO] Dataset preparation completed in {end_time - start_time:.2f} seconds.")