File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 33 Code
44 xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
55 Condition
6- Error in `.convert_form_to_xy_fit ()`:
6+ Error in `fit ()`:
77 ! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
88
99# sparse tibble can be passed to `fit() - unsupported
1919 Code
2020 xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
2121 Condition
22- Error in `.convert_form_to_xy_fit ()`:
22+ Error in `fit ()`:
2323 ! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
2424
2525# sparse matrix can be passed to `fit() - unsupported
6767 Code
6868 xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
6969 Condition
70- Error in `.convert_form_to_xy_fit ()`:
70+ Error in `fit ()`:
7171 ! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
7272
7373# to_sparse_data_frame() is used correctly
135135 Error in `predict.elnet()`:
136136 ! data is sparse
137137
138+ # fit() errors if sparse matrix has no colnames
139+
140+ Code
141+ fit(spec, avg_price_per_room ~ ., data = hotel_data)
142+ Condition
143+ Error in `fit()`:
144+ ! `x` must have column names.
145+
You can’t perform that action at this time.
0 commit comments