This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilize Polars.DataFrame for performance in ModelbitComponent (#80)
* Add polars dependency * Use data frame to gather features * Add ddtrace to feature retrieval * Bump version * Set retrieved features to request context * Handle case when identifier type isn't in feature map * Remove FeatureMap and FeatureData * Bump version * Use class str method for key generation, fix crucial bug in build_requests * Check if there are RT features before merging DFs * Initialize RT feature df with empty df * Cast all f32 columns to f64 before concat * Remove feature map * Fix some bugs during testing * Update tests, fix concat vs join bugs * Update feature_store_main.py * Fix logging to use original identifiers instead of primary identifiers * Don't replace : with __ for requests * Add a null check * Keep replacing only 1 feature name separator * Change component.get_feature return type
- Loading branch information
Showing
22 changed files
with
537 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ repos: | |
- types-tqdm | ||
- nest-asyncio | ||
- aiohttp | ||
- polars | ||
exclude: "^tests/" | ||
|
||
# Check for spelling | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "wyvern-ai" | ||
version = "0.0.26" | ||
version = "0.0.27" | ||
description = "" | ||
authors = ["Wyvern AI <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -33,6 +33,7 @@ aiohttp = {extras = ["speedups"], version = "^3.8.5"} | |
requests = "^2.31.0" | ||
platformdirs = "^3.8" | ||
posthog = "^3.0.2" | ||
polars = "^0.19.6" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.