arize-phoenix 0.0.24rc1__tar.gz → 0.0.24rc2__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.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/PKG-INFO +1 -1
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/__init__.py +1 -1
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/model_schema.py +2 -4
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/dataset.py +5 -1
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/pointcloud/projectors.py +9 -1
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/index.js +197 -186
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/.gitignore +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/IP_NOTICE +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/LICENSE +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/README.md +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/pyproject.toml +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/config.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/dimension.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/dimension_data_type.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/dimension_type.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/embedding_dimension.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/model.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/core/model_schema_adapter.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/errors.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/fixtures.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/schema.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/datasets/validation.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/README.md +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/binning.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/metrics.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/mixins.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/timeseries.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/metrics/wrappers.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/pointcloud/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/pointcloud/clustering.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/pointcloud/pointcloud.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/py.typed +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/context.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/helpers.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/ClusterInput.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/Coordinates.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/DataQualityMetricInput.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/DimensionFilter.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/DimensionInput.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/Granularity.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/PerformanceMetricInput.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/TimeRange.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/input_types/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/interceptor.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/schema.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Cluster.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DataQualityMetric.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Dataset.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DatasetRole.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DatasetValues.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Dimension.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DimensionDataType.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DimensionShape.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DimensionType.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/DimensionWithValue.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/EmbeddingDimension.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/EmbeddingMetadata.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Event.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/EventMetadata.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/ExportEventsMutation.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/ExportedFile.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Model.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/NumericRange.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/PerformanceMetric.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/PromptResponse.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/ScalarDriftMetricEnum.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/Segments.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/TimeSeries.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/UMAPPoints.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/VectorDriftMetricEnum.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/node.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/api/types/pagination.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/app.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/main.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-114x114.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-120x120.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-144x144.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-152x152.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-180x180.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-72x72.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon-76x76.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/apple-touch-icon.png +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/favicon.ico +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/index.css +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/index.html +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/static/modernizr.js +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/server/thread_server.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/services.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/session/__init__.py +0 -0
- {arize_phoenix-0.0.24rc1 → arize_phoenix-0.0.24rc2}/src/phoenix/session/session.py +0 -0
|
@@ -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__ = """
|
|
@@ -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())
|
|
@@ -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):
|
|
@@ -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))
|