Skip to content

comet_ml.Embedding ¶

Embedding(
    vector_url: str,
    vector_shape: List[int],
    metadata_url: str,
    sprite_url: Optional[str] = None,
    image_size: Optional[List[int]] = None,
    title: str = DEFAULT_TITLE,
    vector_asset_id: Optional[str] = None,
    metadata_asset_id: Optional[str] = None,
    sprite_asset_id: Optional[str] = None,
    experiment_key: Optional[str] = None,
)

Data structure for holding embedding template info.

The URL's and sizes for all Embedding's resources.

Attributes¶

DEFAULT_TITLE class-attribute instance-attribute ¶

DEFAULT_TITLE = 'Comet Embedding'

experiment_key instance-attribute ¶

experiment_key = experiment_key

image_size instance-attribute ¶

image_size = image_size

metadata_asset_id instance-attribute ¶

metadata_asset_id = metadata_asset_id

metadata_url instance-attribute ¶

metadata_url = metadata_url

sprite_asset_id instance-attribute ¶

sprite_asset_id = sprite_asset_id

sprite_url instance-attribute ¶

sprite_url = sprite_url

title instance-attribute ¶

title = title

vector_asset_id instance-attribute ¶

vector_asset_id = vector_asset_id

vector_shape instance-attribute ¶

vector_shape = vector_shape

vector_url instance-attribute ¶

vector_url = vector_url

Functions¶

to_json ¶

to_json()

Return a JSON representation of the embedding

Dec. 17, 2024