Joshua Ott

Results 2 comments of Joshua Ott

Seems like this should be handled in `df_to_array()` (or higher up) since missing data seems to be pretty common when interfacing with the Alpaca API regardless of the date ranges...

I got this same error but was able to fix it by replacing [this](https://github.com/QData/spacetimeformer/blob/main/spacetimeformer/spacetimeformer_model/spacetimeformer_model.py#L219-L222) with: ``` preds = torch.softmax(logits, dim=1) targets = labels acc = torchmetrics.functional.classification.accuracy( preds, targets, task="multiclass", num_classes=preds.size(dim=1)...