From: Jérôme Benoit Date: Wed, 3 Sep 2025 22:56:05 +0000 (+0200) Subject: perf(qav3): less strict min # of extrema at train optimization X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bf5c508a7a8477e1159239ef9527340f2191490d;p=freqai-strategies.git perf(qav3): less strict min # of extrema at train optimization Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 840b323..29d67e8 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -148,7 +148,7 @@ def format_number(value: int | float, significant_digits: int = 5) -> str: @lru_cache(maxsize=128) def calculate_min_extrema( - length: int, fit_live_predictions_candles: int, min_extrema: int = 4 + length: int, fit_live_predictions_candles: int, min_extrema: int = 2 ) -> int: return int(round(length / fit_live_predictions_candles) * min_extrema) diff --git a/scripts/docker-upgrade.sh b/scripts/docker-upgrade.sh index 069bcd7..a9c8749 100755 --- a/scripts/docker-upgrade.sh +++ b/scripts/docker-upgrade.sh @@ -145,7 +145,7 @@ fi echo_timestamped "Info: docker image pull for ${REMOTE_DOCKER_IMAGE}" local_digest=$(command docker image inspect --format='{{.Id}}' "$REMOTE_DOCKER_IMAGE" 2>/dev/null || command echo "none") -if ! command docker image pull --quiet "$REMOTE_DOCKER_IMAGE"; then +if ! command docker image pull --quiet "$REMOTE_DOCKER_IMAGE" >/dev/null 2>&1; then echo_timestamped "Error: docker image pull failed for ${REMOTE_DOCKER_IMAGE}" exit 1 fi @@ -170,7 +170,7 @@ if [ "$rebuild_local_image" = true ]; then echo_timestamped "Error: docker compose down failed" exit 1 fi - if ! command docker image rm "$LOCAL_DOCKER_IMAGE"; then + if ! command docker image rm "$LOCAL_DOCKER_IMAGE" >/dev/null 2>&1; then echo_timestamped "Warning: docker image rm failed for ${LOCAL_DOCKER_IMAGE}" fi if ! command docker compose --progress quiet up -d; then