tech.v3.libs.smile.data
Bindings to the smile DataFrame system.
column->smile-column
(column->smile-column col)
Convert a dataset column to a smile vector.
dataset->smile-dataframe
(dataset->smile-dataframe ds)
Convert a dataset to a smile dataframe.
This operation may clone columns if they aren't backed by java heap arrays.
See tech.v3.dataset/ensure-array-backed
.
It is important to note that smile supports a subset of the functionality in tech.v3.dataset. One difference is smile columns have string column names and have no missing set.
Returns a smile.data.DataFrame
smile-column->column
(smile-column->column smile-vec {:keys [unify-strings?], :or {unify-strings? true}})
(smile-column->column smile-vec)
Convert a smile column into a tmd column. Note that missing sets are not supported by smile.
Options:
:unify-strings
- defaults to true - Use per-column string tables to reduce the memory overead of the Smile dataframe.
smile-dataframe->dataset
(smile-dataframe->dataset df options)
(smile-dataframe->dataset df)
Convert a smile datarame into a dataset.
Options:
:unify-strings
- defaults to true - Use per-column string tables to reduce the memory overead of the Smile dataframe.:key-fn
- Use a key-fn to convert the smile column names.