huggingface / blog

Public repo for HF blog posts
https://hf.co/blog
2.26k stars 705 forks source link

PatchTSMixer tutorial missing inference example #2124

Open emanuelshalev opened 3 months ago

emanuelshalev commented 3 months ago

The tutorial shows how to run evaluation but is missing a bare bone example of how to use the model to run inference .

vijaye12 commented 3 months ago

for inference, you can directly use model.forward() to get the predictions dict, if your input is tensor

otherwise - if input is test dataset, then you can do model.predict(). All our APIs are huggingface based and used the standard predict and forward calls..