chalkpy 2.96.8__py3-none-any.whl → 2.96.9__py3-none-any.whl
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.
- chalk/_version.py +1 -1
- chalk/features/resolver.py +7 -7
- {chalkpy-2.96.8.dist-info → chalkpy-2.96.9.dist-info}/METADATA +1 -1
- {chalkpy-2.96.8.dist-info → chalkpy-2.96.9.dist-info}/RECORD +7 -7
- {chalkpy-2.96.8.dist-info → chalkpy-2.96.9.dist-info}/WHEEL +0 -0
- {chalkpy-2.96.8.dist-info → chalkpy-2.96.9.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.96.8.dist-info → chalkpy-2.96.9.dist-info}/top_level.txt +0 -0
chalk/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.96.
|
|
1
|
+
__version__ = "2.96.9"
|
chalk/features/resolver.py
CHANGED
|
@@ -4588,7 +4588,7 @@ def validate_message_attributes(
|
|
|
4588
4588
|
def make_model_resolver(
|
|
4589
4589
|
name: str,
|
|
4590
4590
|
model: "ModelVersion",
|
|
4591
|
-
|
|
4591
|
+
input: Dict[Feature, str] | List[Feature],
|
|
4592
4592
|
output: Feature | List[Feature] | Dict[Feature, str],
|
|
4593
4593
|
feature_class: Optional[type[Features]] = None,
|
|
4594
4594
|
resource_group: Optional[str] = None,
|
|
@@ -4656,7 +4656,7 @@ def make_model_resolver(
|
|
|
4656
4656
|
>>> resolver = make_model_resolver(
|
|
4657
4657
|
... name="risk_model",
|
|
4658
4658
|
... model=model,
|
|
4659
|
-
...
|
|
4659
|
+
... input=[User.age, User.income],
|
|
4660
4660
|
... output=User.risk_score,
|
|
4661
4661
|
... )
|
|
4662
4662
|
>>>
|
|
@@ -4664,7 +4664,7 @@ def make_model_resolver(
|
|
|
4664
4664
|
>>> resolver = make_model_resolver(
|
|
4665
4665
|
... name="multi_output_model",
|
|
4666
4666
|
... model=model,
|
|
4667
|
-
...
|
|
4667
|
+
... input=[User.age, User.income],
|
|
4668
4668
|
... output=[User.risk_score, User.credit_score],
|
|
4669
4669
|
... )
|
|
4670
4670
|
>>>
|
|
@@ -4672,16 +4672,16 @@ def make_model_resolver(
|
|
|
4672
4672
|
>>> resolver = make_model_resolver(
|
|
4673
4673
|
... name="named_model",
|
|
4674
4674
|
... model=model,
|
|
4675
|
-
...
|
|
4675
|
+
... input={User.age: "age_input", User.income: "income_input"},
|
|
4676
4676
|
... output={User.risk_score: "risk_output", User.credit_score: "credit_output"},
|
|
4677
4677
|
... )
|
|
4678
4678
|
"""
|
|
4679
4679
|
from chalk.features.inference import build_inference_function
|
|
4680
4680
|
|
|
4681
|
-
if isinstance(
|
|
4682
|
-
input_features_raw = list(
|
|
4681
|
+
if isinstance(input, dict):
|
|
4682
|
+
input_features_raw = list(input.keys())
|
|
4683
4683
|
else:
|
|
4684
|
-
input_features_raw =
|
|
4684
|
+
input_features_raw = input
|
|
4685
4685
|
|
|
4686
4686
|
input_features = [unwrap_feature(f) for f in input_features_raw]
|
|
4687
4687
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
chalk/__init__.py,sha256=vKsx9-cl5kImlVWGHVRYO6bweBm79NAzGs3l36u71wM,2657
|
|
2
|
-
chalk/_version.py,sha256=
|
|
2
|
+
chalk/_version.py,sha256=c3gJfSgbDhpHLsXUeqbkrz2gc7ltbdFBTXMLsf03y8U,23
|
|
3
3
|
chalk/cli.py,sha256=ckqqfOI-A2mT23-rnZzDMmblYj-2x1VBX8ebHlIEn9A,5873
|
|
4
4
|
chalk/importer.py,sha256=m4lMn1lSYj_euDq8CS7LYTBnek9JOcjGJf9-82dJHbA,64441
|
|
5
5
|
chalk/prompts.py,sha256=2H9UomLAamdfRTNUdKs9i3VTpiossuyRhntqsAXUhhg,16117
|
|
@@ -660,7 +660,7 @@ chalk/features/live_updates.py,sha256=8ZbiDjcLqfFruSL15_aycwzSqJ0TbKNhas06KfZLyL
|
|
|
660
660
|
chalk/features/namespace_context.py,sha256=fL-nPohqtNiyPDS1uQTAaHLns4aivuBL2Flf50DajU4,1813
|
|
661
661
|
chalk/features/primary.py,sha256=BZ8mrMmKfRNy_wnKGDJt2cdnejP_CZb6xBsD9Ljgajc,5209
|
|
662
662
|
chalk/features/pseudofeatures.py,sha256=50Pe_Xi8ttYWtgNNRpgkhBxP8xoCZCYwyLb0aWUQ-PI,2147
|
|
663
|
-
chalk/features/resolver.py,sha256=
|
|
663
|
+
chalk/features/resolver.py,sha256=txAhcTv60QHn5Ge0Hr1z2LSWVKNDuZZYSogTnY31YMA,193542
|
|
664
664
|
chalk/features/tag.py,sha256=LRmKRA8ANCOvmaIAk-L5j1QW2U0aah2SeASy8Uydkmk,2675
|
|
665
665
|
chalk/features/underscore.py,sha256=4xnfQV3bfvVn0PNEtkT4J-k7hW4ebtH9KBe4_BvGjY4,26763
|
|
666
666
|
chalk/features/underscore_features.py,sha256=PlVCoaDDffOgtiSMaxPSWCoj8IjscbkOzDLA471HsJ4,13005
|
|
@@ -827,8 +827,8 @@ chalk/utils/tracing.py,sha256=NiiM-9dbuJhSCv6R1npR1uYNKWlkqTR6Ygm0Voi2NrY,13078
|
|
|
827
827
|
chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
|
|
828
828
|
chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
829
829
|
chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
|
|
830
|
-
chalkpy-2.96.
|
|
831
|
-
chalkpy-2.96.
|
|
832
|
-
chalkpy-2.96.
|
|
833
|
-
chalkpy-2.96.
|
|
834
|
-
chalkpy-2.96.
|
|
830
|
+
chalkpy-2.96.9.dist-info/METADATA,sha256=wqwaFPD4aK1rP7orIR_efhtC7u1Q6Iay9TGwaisDQp0,27754
|
|
831
|
+
chalkpy-2.96.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
832
|
+
chalkpy-2.96.9.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
|
|
833
|
+
chalkpy-2.96.9.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
|
|
834
|
+
chalkpy-2.96.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|