Create a Dataset from LibSVM files.
make_libsvm_dataset(file_names, num_features, dtype = NULL, label_dtype = NULL, batch_size = 1, compression_type = "", buffer_size = NULL, num_parallel_parser_calls = NULL, drop_final_batch = FALSE, prefetch_buffer_size = 0)
file_names | A |
---|---|
num_features | The number of features. |
dtype | The type of the output feature tensor. Default to |
label_dtype | The type of the output label tensor. Default to
|
batch_size | An integer representing the number of records to combine in a single batch, default 1. |
compression_type | A |
buffer_size | A |
num_parallel_parser_calls | Number of parallel records to parse in parallel. Defaults to an automatic selection. |
drop_final_batch | Whether the last batch should be dropped in case its
size is smaller than |
prefetch_buffer_size | An integer specifying the number of feature batches to prefetch for performance improvement. Defaults to auto-tune. Set to 0 to disable prefetching. |