Caret error when modeling

I'm getting a weird caret error that isn't google-able and I've not found it here:

+ Fold10: alpha=0.00, lambda=0.1
+ Fold10: alpha=0.25, lambda=0.1
+ Fold10: alpha=0.50, lambda=0.1
+ Fold10: alpha=0.75, lambda=0.1
+ Fold10: alpha=1.00, lambda=0.1
Error in { : task 1 failed - "replacement has 21282 rows, data has 21162"

In addition: There were 50 or more warnings (use warnings() to see the first 50)
> 
warnings()
Warning messages:
1: There are new levels in a factor: NA
2: There are new levels in a factor: NA
3: There are new levels in a factor: NA
4: There are new levels in a factor: NA

I see the warning here, so haven't worried about it too much, and the same error here. I can't give a reprex b/c the data isn't shareable.

You'll need to mock up or anonymize data to get help. That error could mean anything and there's no code (or version numbers) so ¯_(ツ)_/¯

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.