Skip to content

Timestamps and embeddings..? #445

@vstenby

Description

@vstenby

Hi - completely new to this, so sorry if this is a stupid question!

I want to use chronos-2 as an encoder for some time series.

from chronos import Chronos2Pipeline
import torch

# Load the model
pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")

# Give list of time series.
inputs = [
    torch.tensor([1.0, 2.0, 3.0, 4.0], dtype=torch.float32), 
] 

# Embed
emb, _ = pipeline.embed(inputs)

I notice that predict_df also takes timestamp_column as input when making predictions, but the embed function doesn't. Is there a way to parse timestamps or is that not needed?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions