structured-data-models-client 1.0.0__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.
- sdm_client/__init__.py +70 -0
- sdm_client/_version.py +5 -0
- sdm_client/adapters/__init__.py +9 -0
- sdm_client/adapters/relational.py +870 -0
- sdm_client/adapters/tabular.py +580 -0
- sdm_client/base.py +300 -0
- sdm_client/client.py +1416 -0
- sdm_client/core/__init__.py +5 -0
- sdm_client/core/databricks_serving.py +611 -0
- sdm_client/core/databricks_user_agent.py +76 -0
- sdm_client/core/dates.py +278 -0
- sdm_client/core/transport.py +898 -0
- sdm_client/core/warnings.py +51 -0
- sdm_client/decompose.py +421 -0
- sdm_client/errors.py +177 -0
- sdm_client/materializers/__init__.py +10 -0
- sdm_client/materializers/relational.py +1786 -0
- sdm_client/materializers/sources.py +331 -0
- sdm_client/materializers/tabular.py +339 -0
- sdm_client/models.py +251 -0
- sdm_client/py.typed +0 -0
- sdm_client/query.py +647 -0
- sdm_client/request.py +1127 -0
- sdm_client/result.py +328 -0
- sdm_client/schema.py +3187 -0
- sdm_client/wire/__init__.py +46 -0
- sdm_client/wire/answers.py +80 -0
- sdm_client/wire/dtypes.py +701 -0
- sdm_client/wire/keys.py +363 -0
- sdm_client/wire/tables.py +50 -0
- structured_data_models_client-1.0.0.dist-info/METADATA +99 -0
- structured_data_models_client-1.0.0.dist-info/RECORD +36 -0
- structured_data_models_client-1.0.0.dist-info/WHEEL +5 -0
- structured_data_models_client-1.0.0.dist-info/licenses/LICENSE +204 -0
- structured_data_models_client-1.0.0.dist-info/licenses/NOTICE +10 -0
- structured_data_models_client-1.0.0.dist-info/top_level.txt +1 -0
sdm_client/__init__.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
r"""One Python client for NVIDIA's structured-data foundation models.
|
|
6
|
+
|
|
7
|
+
Structured-data foundation models predict in context: you give the model
|
|
8
|
+
labelled rows and the rows you want scored, and it answers in one pass. There
|
|
9
|
+
is no training loop and no per-dataset artifact.
|
|
10
|
+
|
|
11
|
+
>>> from sdm_client import Request, SDMClient, KumoTabular
|
|
12
|
+
>>> request = Request(context=labelled, predict=to_score,
|
|
13
|
+
... target='churn', task='classification')
|
|
14
|
+
>>> with SDMClient(url='http://localhost:8000') as client:
|
|
15
|
+
... print(client.predict(request, model=KumoTabular()).to_pandas())
|
|
16
|
+
|
|
17
|
+
The model is an argument, not a method name. A request is gathered for one
|
|
18
|
+
model and answered by that one: `materialize(model=...)` says which, and
|
|
19
|
+
defaults to what the schema's shape implies.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from sdm_client._version import __version__
|
|
23
|
+
from sdm_client.base import ModelCapabilities
|
|
24
|
+
from sdm_client.client import FittedModel, SDMClient
|
|
25
|
+
from sdm_client.core.warnings import SDMWarning
|
|
26
|
+
from sdm_client.errors import (
|
|
27
|
+
MissingExtraError,
|
|
28
|
+
NimRequestError,
|
|
29
|
+
StructuredDataError,
|
|
30
|
+
UnknownModelError,
|
|
31
|
+
UnsupportedRequestError,
|
|
32
|
+
)
|
|
33
|
+
from sdm_client.models import KumoRelational, KumoTabular, Model
|
|
34
|
+
from sdm_client.query import PredictiveQuery
|
|
35
|
+
from sdm_client.request import Request, Split, Target, Task
|
|
36
|
+
from sdm_client.result import PredictionResult
|
|
37
|
+
from sdm_client.schema import (
|
|
38
|
+
Column,
|
|
39
|
+
Relationship,
|
|
40
|
+
Schema,
|
|
41
|
+
SourceTable,
|
|
42
|
+
Table,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
__all__ = [
|
|
46
|
+
'SDMWarning',
|
|
47
|
+
'Column',
|
|
48
|
+
'FittedModel',
|
|
49
|
+
'KumoRelational',
|
|
50
|
+
'KumoTabular',
|
|
51
|
+
'MissingExtraError',
|
|
52
|
+
'Model',
|
|
53
|
+
'ModelCapabilities',
|
|
54
|
+
'NimRequestError',
|
|
55
|
+
'PredictionResult',
|
|
56
|
+
'PredictiveQuery',
|
|
57
|
+
'Relationship',
|
|
58
|
+
'Request',
|
|
59
|
+
'Schema',
|
|
60
|
+
'Split',
|
|
61
|
+
'SDMClient',
|
|
62
|
+
'SourceTable',
|
|
63
|
+
'StructuredDataError',
|
|
64
|
+
'Table',
|
|
65
|
+
'Target',
|
|
66
|
+
'Task',
|
|
67
|
+
'UnknownModelError',
|
|
68
|
+
'UnsupportedRequestError',
|
|
69
|
+
'__version__',
|
|
70
|
+
]
|
sdm_client/_version.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
"""Per-model adapters. One module per model."""
|
|
6
|
+
|
|
7
|
+
from sdm_client.adapters.tabular import TabularAdapter
|
|
8
|
+
|
|
9
|
+
__all__ = ['TabularAdapter']
|