https://github.com/sponsors/robcaulk
"""
- version = "3.7.105"
+ version = "3.7.106"
@cached_property
def _optuna_config(self) -> dict[str, Any]:
)
if thresholds_smoothing == "soft_extremum":
thresholds_alpha = float(
- self.freqai_info.get("prediction_thresholds_alpha", 0.5)
+ self.freqai_info.get("prediction_thresholds_alpha", 10.0)
)
return QuickAdapterRegressorV3.soft_extremum_min_max(
pred_extrema, thresholds_ratio, thresholds_alpha
shifted_exponentials = np.exp(scaled_data - max_scaled_data)
numerator = np.sum(np_array * shifted_exponentials)
denominator = np.sum(shifted_exponentials)
- if np.isclose(denominator, 0):
+ if denominator == 0:
return np.max(np_array)
return numerator / denominator
INTERFACE_VERSION = 3
def version(self) -> str:
- return "3.3.113"
+ return "3.3.114"
timeframe = "5m"
# {stage: (natr_ratio_percent, stake_percent)}
partial_exit_stages: dict[int, tuple[float, float]] = {
- 0: (0.4167, 0.4167),
- 1: (0.6667, 0.25),
- 2: (0.8333, 0.1667),
- 3: (0.9167, 0.0833),
+ 0: (0.4167, 0.3333),
+ 1: (0.6667, 0.2667),
+ 2: (0.8333, 0.2000),
+ 3: (0.9167, 0.1333),
}
timeframe_minutes = timeframe_to_minutes(timeframe)