A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/signals-dev/Orion/issues/132 below:

Definition of error/critic smooth window in score anomalies primitive · Issue #132 · sintel-dev/Orion · GitHub

The current primitive suggests that the two parameters (error_smooth_window and critic_smooth_window) should be selected by the user, but in the code we override this value and assign it to be the minimum between 1% of the data length and 100.

def score_anomalies(.., critic_smooth_window=200, error_smooth_window=200):
    critic_smooth_window = min(math.trunc(y.shape[0] * 0.01), 100)
    error_smooth_window = min(math.trunc(y.shape[0] * 0.01), 100)

also in the original tests, we ignore the usage of taking the minimum, so it should be omitted.
update to

def score_anomalies(.., critic_smooth_window=None, error_smooth_window=None):
    critic_smooth_window = critic_smooth_window or math.trunc(y.shape[0] * 0.01)
    error_smooth_window = error_smooth_window or math.trunc(y.shape[0] * 0.01)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4