Error : stopping

Hello,

I am receiving the below error and cant figure out the solution.
Please help.

Code : - fit <- train(training[,-1],
training[, 1],
method = 'knn',
tuneLength = 20,
trcontrol = trcontrol,
preProc = c("centre", "scale"))
Something is wrong; all the Accuracy metric values are missing:
Accuracy Kappa
Min. : NA Min. : NA
1st Qu.: NA 1st Qu.: NA
Median : NA Median : NA
Mean :NaN Mean :NaN
3rd Qu.: NA 3rd Qu.: NA
Max. : NA Max. : NA
NA's :20 NA's :20
Error: Stopping
In addition: There were 50 or more warnings (use warnings() to see the first 50)

Please note there are no Missing values

What did the warnings() say?

Thank you for your quick reply!!

I don't see any warnings message.
Please refer below screenshot for your perusal !!

image

Do let me know if you need any more thing!!

Regards
Pralhad

You spelled warnings() wrong

Please refer below warning message

Warning messages:
1: model fit failed for Resample01: k= 5 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

2: model fit failed for Resample01: k= 7 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

3: model fit failed for Resample01: k= 9 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

4: model fit failed for Resample01: k=11 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

5: model fit failed for Resample01: k=13 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

6: model fit failed for Resample01: k=15 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

7: model fit failed for Resample01: k=17 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

8: model fit failed for Resample01: k=19 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

9: model fit failed for Resample01: k=21 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

10: model fit failed for Resample01: k=23 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

11: model fit failed for Resample01: k=25 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

12: model fit failed for Resample01: k=27 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

13: model fit failed for Resample01: k=29 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

14: model fit failed for Resample01: k=31 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

15: model fit failed for Resample01: k=33 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

16: model fit failed for Resample01: k=35 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

17: model fit failed for Resample01: k=37 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

18: model fit failed for Resample01: k=39 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

19: model fit failed for Resample01: k=41 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

20: model fit failed for Resample01: k=43 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

21: model fit failed for Resample02: k= 5 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

22: model fit failed for Resample02: k= 7 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

23: model fit failed for Resample02: k= 9 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

24: model fit failed for Resample02: k=11 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

25: model fit failed for Resample02: k=13 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

26: model fit failed for Resample02: k=15 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

27: model fit failed for Resample02: k=17 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

28: model fit failed for Resample02: k=19 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

29: model fit failed for Resample02: k=21 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

30: model fit failed for Resample02: k=23 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

31: model fit failed for Resample02: k=25 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

32: model fit failed for Resample02: k=27 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

33: model fit failed for Resample02: k=29 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

34: model fit failed for Resample02: k=31 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

35: model fit failed for Resample02: k=33 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

36: model fit failed for Resample02: k=35 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

37: model fit failed for Resample02: k=37 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

38: model fit failed for Resample02: k=39 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

39: model fit failed for Resample02: k=41 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

40: model fit failed for Resample02: k=43 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

41: model fit failed for Resample03: k= 5 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

42: model fit failed for Resample03: k= 7 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

43: model fit failed for Resample03: k= 9 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

44: model fit failed for Resample03: k=11 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

45: model fit failed for Resample03: k=13 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

46: model fit failed for Resample03: k=15 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

47: model fit failed for Resample03: k=17 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

48: model fit failed for Resample03: k=19 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

49: model fit failed for Resample03: k=21 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

50: model fit failed for Resample03: k=23 Error in pre_process_options(method, column_types) :
These pre-processing methods are unknown: 'centre'

Sorry for late reply.
FYI - changing the word from "centre" to "center" is not workiing.

will try to use minimal reproducible example?

Thanks

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