Closed geoHeil closed 5 years ago
@geoHeil in the latest devel you just need to pass the sample input instead of a sample "transformed" dataset (see https://github.com/rstudio/mleap/pull/32 and https://github.com/rstudio/mleap/issues/31). So you should be able to do something like below since your only inputs are hp
, wt
, and qsec
:
input_new <- data.frame(
hp = 110,
wt = 2.620,
qsec= 16.46,
stringsAsFactors = FALSE
)
input_new <- copy_to(spark, input_new, overwrite = TRUE)
# this should be OK
ml_write_bundle(pipeline_model, input_new, path= model_path, overwrite = TRUE)
thx. This seems to work.
I currently get:
For an example of:
The problem must be the:
features=list(1.00, 2.62, 16.46),
which is unnested in RStudio and not representing: `$ features[<1.00, 2.62, 16.46>]``
How can I get it to be of the same type?