Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FLAML installation problems, support version >=2 #626

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frameworks/flaml/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandas<3
14 changes: 8 additions & 6 deletions frameworks/flaml/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@ PKG=${3:-"flaml"}

. ${HERE}/../shared/setup.sh ${HERE} true

OPTIONALS="[automl]"
if [[ "$VERSION" == "latest" ]]; then
VERSION="main"
OPTIONALS=""
fi

if [[ "$VERSION" == "benchmark" ]]; then
VERSION="stable"
OPTIONALS="[catboost]"
OPTIONALS="[automl, catboost]"
else
PIP uninstall -y catboost
fi


if [[ "$VERSION" == "stable" ]]; then
PIP install --no-cache-dir -U "${PKG}${OPTIONALS}<2"
elif [[ "$VERSION" =~ ^[0-9] ]]; then
PIP install --no-cache-dir -U "${PKG}${OPTIONALS}"
elif [[ "$VERSION" =~ ^[0-1] ]]; then
PIP install --no-cache-dir -U ${PKG}${OPTIONALS}==${VERSION}
# FLAML 1.2.4 does not work with newer versions of xgboost
PIP install "xgboost<2"
elif [[ "$VERSION" =~ ^[2-9] ]]; then
PIP install --no-cache-dir -U ${PKG}${OPTIONALS}==${VERSION}
else
# PIP install --no-cache-dir -e git+${REPO}@${VERSION}#egg=${PKG}
TARGET_DIR="${HERE}/lib/${PKG}"
rm -Rf ${TARGET_DIR}
git clone --depth 1 --single-branch --branch ${VERSION} --recurse-submodules ${REPO} ${TARGET_DIR}
Expand Down
3 changes: 3 additions & 0 deletions resources/frameworks_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ autosklearn2:
AutoWEKA:
version: 'latest'

flaml:
version: 'latest'

GAMA:
version: 'latest'

Expand Down
Loading