setup_lightgbm.sh 567 B

123456789101112131415
  1. #!/bin/bash
  2. pip install pytest
  3. # Uninstall any existing lightgbm_ray repositories
  4. pip uninstall -y lightgbm_ray || true
  5. # Install lightgbm package
  6. pip install -U "${LIGHTGBM_RAY_PACKAGE:-lightgbm_ray}"
  7. # Create test dataset
  8. sudo mkdir -p /data || true
  9. sudo chown ray:1000 /data || true
  10. rm -rf /data/classification.parquet || true
  11. cp -R /tmp/ray_tmp_mount/lightgbm_tests ~/lightgbm_tests || echo "Copy failed"
  12. python ~/lightgbm_tests/create_test_data.py /data/classification.parquet --seed 1234 --num-rows 1000000 --num-cols 40 --num-partitions 100 --num-classes 2