haystack-ml-stack 0.2.1__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/PKG-INFO +1 -1
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/pyproject.toml +1 -1
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/__init__.py +1 -1
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/app.py +3 -4
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/utils.py +3 -7
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/PKG-INFO +1 -1
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/README.md +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/setup.cfg +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/cache.py +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/dynamo.py +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/model_store.py +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack/settings.py +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/SOURCES.txt +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/dependency_links.txt +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/requires.txt +0 -0
- {haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/top_level.txt +0 -0
|
@@ -143,16 +143,15 @@ def create_app(
|
|
|
143
143
|
# Synchronous model execution (user code)
|
|
144
144
|
try:
|
|
145
145
|
preprocess_start = time.perf_counter_ns()
|
|
146
|
+
model["params"]["query_params"] = query_params
|
|
146
147
|
model_input = model["preprocess"](
|
|
147
148
|
user,
|
|
148
149
|
streams,
|
|
149
150
|
playlist,
|
|
150
|
-
|
|
151
|
+
model["params"],
|
|
151
152
|
)
|
|
152
153
|
predict_start = time.perf_counter_ns()
|
|
153
|
-
model_output = model["predict"](
|
|
154
|
-
model_input, {**model.get("params"), "query_params": query_params}
|
|
155
|
-
)
|
|
154
|
+
model_output = model["predict"](model_input, model["params"])
|
|
156
155
|
predict_end = time.perf_counter_ns()
|
|
157
156
|
except Exception as e:
|
|
158
157
|
logger.error("Model prediction failed: %s", e)
|
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
|
3
3
|
import typing as _t
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
def
|
|
6
|
+
def stream_favorites_cleanup(
|
|
7
7
|
stream, user_favorite_tags: list[str], user_favorite_authors: list[str]
|
|
8
8
|
) -> dict:
|
|
9
9
|
stream_tags = stream.get("haystackTags", [])
|
|
@@ -146,12 +146,8 @@ def device_watched_count_cleanups(
|
|
|
146
146
|
watched = counts_obj.get(entry_context, {}).get("watched", 0)
|
|
147
147
|
context_key = entry_context if "launch" not in entry_context else "launch"
|
|
148
148
|
context_key = context_key.upper().replace(" ", "_")
|
|
149
|
-
feats[
|
|
150
|
-
|
|
151
|
-
)
|
|
152
|
-
feats["features"][f"STREAM_{context_key}_{device_type}_24H_TOTAL_ATTEMPTS"] = (
|
|
153
|
-
attempts
|
|
154
|
-
)
|
|
149
|
+
feats[f"STREAM_{context_key}_{device_type}_24H_TOTAL_WATCHED"] = watched
|
|
150
|
+
feats[f"STREAM_{context_key}_{device_type}_24H_TOTAL_ATTEMPTS"] = attempts
|
|
155
151
|
return feats
|
|
156
152
|
|
|
157
153
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/requires.txt
RENAMED
|
File without changes
|
{haystack_ml_stack-0.2.1 → haystack_ml_stack-0.2.3}/src/haystack_ml_stack.egg-info/top_level.txt
RENAMED
|
File without changes
|