arize-phoenix 0.0.24rc1__py3-none-any.whl → 0.0.24rc2__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.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-0.0.24rc1.dist-info → arize_phoenix-0.0.24rc2.dist-info}/METADATA +1 -1
- {arize_phoenix-0.0.24rc1.dist-info → arize_phoenix-0.0.24rc2.dist-info}/RECORD +10 -10
- phoenix/__init__.py +1 -1
- phoenix/core/model_schema.py +2 -4
- phoenix/datasets/dataset.py +5 -1
- phoenix/pointcloud/projectors.py +9 -1
- phoenix/server/static/index.js +197 -186
- {arize_phoenix-0.0.24rc1.dist-info → arize_phoenix-0.0.24rc2.dist-info}/WHEEL +0 -0
- {arize_phoenix-0.0.24rc1.dist-info → arize_phoenix-0.0.24rc2.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-0.0.24rc1.dist-info → arize_phoenix-0.0.24rc2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
phoenix/__init__.py,sha256=
|
|
1
|
+
phoenix/__init__.py,sha256=MDPqkLU2t2D4gPOm1SNfCt1YaQnGF57LQcyGPQRokRk,1049
|
|
2
2
|
phoenix/config.py,sha256=tjNn9oqDxQmeO85sCchLlTsDiRJ6AoK0CTt_Uc_hrKM,1442
|
|
3
3
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
4
|
phoenix/services.py,sha256=pamdcZ9hp9BqgRV0ZIcMsjBYp8HCpIQPdxaXQfQLxYU,3711
|
|
@@ -8,10 +8,10 @@ phoenix/core/dimension_data_type.py,sha256=FEBp4p06LlFpAXq-ftxDAFymBtU_pYTFmJjFc
|
|
|
8
8
|
phoenix/core/dimension_type.py,sha256=EKFmPzuGr1cn7t4vD-XDk9s836j6U3iRbSu3Z2sO8sM,171
|
|
9
9
|
phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
|
|
10
10
|
phoenix/core/model.py,sha256=JLAw1kc8Ctrm99E7Nb7eOWghjC9O_V1AFu-e5byD5UY,4638
|
|
11
|
-
phoenix/core/model_schema.py,sha256=
|
|
11
|
+
phoenix/core/model_schema.py,sha256=nHmNbmfFnJL4a2o40YxE7BL-S5FLGeS4waO_8Jn2W1w,47340
|
|
12
12
|
phoenix/core/model_schema_adapter.py,sha256=Kqr1doD12xtujTtWX-zgPu1HfRcdM1756ZCa3uW0f_Y,7165
|
|
13
13
|
phoenix/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
phoenix/datasets/dataset.py,sha256=
|
|
14
|
+
phoenix/datasets/dataset.py,sha256=J92RSwlbrh-Nj6BwQkO0GsIdSe81MuHr1xz8hwf69GY,21824
|
|
15
15
|
phoenix/datasets/errors.py,sha256=-Iyk8rsvP_KX-P4gOqjm26slkDq1-9CohK07_LkrYCI,8117
|
|
16
16
|
phoenix/datasets/fixtures.py,sha256=9rmJgsF50vmuwR7PavNf7kdFsLQiasta6iJEzh7GvkM,15954
|
|
17
17
|
phoenix/datasets/schema.py,sha256=1sSdtKkN7L61rsb8FNeTxJZG-ysGR7JGgT08WKGuDFs,3658
|
|
@@ -26,7 +26,7 @@ phoenix/metrics/wrappers.py,sha256=fCWIcIp30-YZmlzL4hpv2u07QRfCNn4WtI0mcQN0db8,8
|
|
|
26
26
|
phoenix/pointcloud/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
27
27
|
phoenix/pointcloud/clustering.py,sha256=IzcG67kJ2hPP7pcqVmKPSL_6gKRonKdOT3bCtbTOqnk,820
|
|
28
28
|
phoenix/pointcloud/pointcloud.py,sha256=Ntj5juwMfwjPqyacPNGyH0lsItqpMTqtKiDdIEufnTY,2196
|
|
29
|
-
phoenix/pointcloud/projectors.py,sha256
|
|
29
|
+
phoenix/pointcloud/projectors.py,sha256=zO_RrtDYSv2rqVOfIP2_9Cv11Dc8EmcZR94xhFcBYPU,1057
|
|
30
30
|
phoenix/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
phoenix/server/app.py,sha256=kWG5YWSnzZ668aA9TNoIeoc6Gxf6fYCgab6ZDAdDsig,4013
|
|
32
32
|
phoenix/server/main.py,sha256=PUK042dTYCgh18eELtPhldBujUxQLAmrMDJD2Oz8Exk,3035
|
|
@@ -84,12 +84,12 @@ phoenix/server/static/apple-touch-icon.png,sha256=fOfpjqGpWYbJ0eAurKsyoZP1EAs6ZV
|
|
|
84
84
|
phoenix/server/static/favicon.ico,sha256=bY0vvCKRftemZfPShwZtE93DiiQdaYaozkPGwNFr6H8,34494
|
|
85
85
|
phoenix/server/static/index.css,sha256=jeV8eWPiHUcUmb_0yp_rI1odc-RnxlXVgMT-x9HGWbo,1817
|
|
86
86
|
phoenix/server/static/index.html,sha256=xPZZH-y4dWlbDutPEV1k0rhmWJtIV-Db9aYP-dEc7wM,703
|
|
87
|
-
phoenix/server/static/index.js,sha256=
|
|
87
|
+
phoenix/server/static/index.js,sha256=YtwDNwj3GObOQYv8GllsZZ3Q_0Is3aZRQKRp8SWFtJU,2358860
|
|
88
88
|
phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
|
|
89
89
|
phoenix/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
90
90
|
phoenix/session/session.py,sha256=sHm0qoPexNBF49a6VlGw0Oi81Zkj_EjrJCY_b3VK-Yo,8658
|
|
91
|
-
arize_phoenix-0.0.
|
|
92
|
-
arize_phoenix-0.0.
|
|
93
|
-
arize_phoenix-0.0.
|
|
94
|
-
arize_phoenix-0.0.
|
|
95
|
-
arize_phoenix-0.0.
|
|
91
|
+
arize_phoenix-0.0.24rc2.dist-info/METADATA,sha256=aNkZu5EL2zd-5k11SJnUF1JnoMTYdn9T4V_A0oxa6SM,10813
|
|
92
|
+
arize_phoenix-0.0.24rc2.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
93
|
+
arize_phoenix-0.0.24rc2.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
94
|
+
arize_phoenix-0.0.24rc2.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
95
|
+
arize_phoenix-0.0.24rc2.dist-info/RECORD,,
|
phoenix/__init__.py
CHANGED
|
@@ -3,7 +3,7 @@ from .datasets.fixtures import ExampleDatasets, load_example
|
|
|
3
3
|
from .datasets.schema import EmbeddingColumnNames, Schema
|
|
4
4
|
from .session.session import Session, active_session, close_app, launch_app
|
|
5
5
|
|
|
6
|
-
__version__ = "0.0.
|
|
6
|
+
__version__ = "0.0.24rc2"
|
|
7
7
|
|
|
8
8
|
# module level doc-string
|
|
9
9
|
__doc__ = """
|
phoenix/core/model_schema.py
CHANGED
|
@@ -599,10 +599,8 @@ class Events(ModelData):
|
|
|
599
599
|
@cached_property
|
|
600
600
|
def time_range(self) -> TimeRange:
|
|
601
601
|
if self._self_model is None or self.empty:
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
# True
|
|
605
|
-
return TimeRange(pd.NaT, pd.NaT) # type: ignore
|
|
602
|
+
now = datetime.now(timezone.utc)
|
|
603
|
+
return TimeRange(now, now)
|
|
606
604
|
model = cast(Model, self._self_model)
|
|
607
605
|
min_max = _agg_min_max(model[TIMESTAMP](self))
|
|
608
606
|
start_time = cast(datetime, min_max.min())
|
phoenix/datasets/dataset.py
CHANGED
|
@@ -443,7 +443,11 @@ def _normalize_timestamps(
|
|
|
443
443
|
if (timestamp_column_name := schema.timestamp_column_name) is None:
|
|
444
444
|
timestamp_column_name = "timestamp"
|
|
445
445
|
schema = replace(schema, timestamp_column_name=timestamp_column_name)
|
|
446
|
-
timestamp_column =
|
|
446
|
+
timestamp_column = (
|
|
447
|
+
Series([default_timestamp] * len(dataframe), index=dataframe.index)
|
|
448
|
+
if len(dataframe)
|
|
449
|
+
else Series([default_timestamp]).iloc[:0].set_axis(dataframe.index, axis=0)
|
|
450
|
+
)
|
|
447
451
|
elif is_numeric_dtype(timestamp_column_dtype := dataframe[timestamp_column_name].dtype):
|
|
448
452
|
timestamp_column = to_datetime(dataframe[timestamp_column_name], unit="s", utc=True)
|
|
449
453
|
elif is_datetime64tz_dtype(timestamp_column_dtype):
|
phoenix/pointcloud/projectors.py
CHANGED
|
@@ -11,6 +11,7 @@ with warnings.catch_warnings():
|
|
|
11
11
|
|
|
12
12
|
warnings.simplefilter("ignore", category=NumbaWarning)
|
|
13
13
|
from umap import UMAP
|
|
14
|
+
|
|
14
15
|
Matrix: TypeAlias = npt.NDArray[np.float64]
|
|
15
16
|
|
|
16
17
|
|
|
@@ -24,4 +25,11 @@ class Umap:
|
|
|
24
25
|
min_dist: float = 0.1
|
|
25
26
|
|
|
26
27
|
def project(self, mat: Matrix, n_components: int) -> Matrix:
|
|
27
|
-
|
|
28
|
+
config = asdict(self)
|
|
29
|
+
config["n_components"] = n_components
|
|
30
|
+
if len(mat) <= n_components:
|
|
31
|
+
# init='spectral', the default, cannot be used when n_components
|
|
32
|
+
# is greater or equal to the number of samples.
|
|
33
|
+
# see https://github.com/lmcinnes/umap/issues/201#issuecomment-462097103
|
|
34
|
+
config["init"] = "random"
|
|
35
|
+
return _center(UMAP(**config).fit_transform(mat))
|