]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): less strict min # of extrema at train optimization
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Sep 2025 22:56:05 +0000 (00:56 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 3 Sep 2025 22:56:05 +0000 (00:56 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/Utils.py
scripts/docker-upgrade.sh

index 840b323d90b948a0570ca2565ab3912823f2bffe..29d67e89df678c69a35451973fdc22e8569d1970 100644 (file)
@@ -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)
 
index 069bcd7e2be07873675ecd39c30787d709cdffb4..a9c87490e5339e34ed471bb181ae557564cdd680 100755 (executable)
@@ -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