Liking cljdoc? Tell your friends :D

scicloj.ml.smile.smile-data

Bindings to the smile DataFrame system, version 2.6

Bindings to the smile DataFrame system, version 2.6
raw docstring

dataset->smile-dataframeclj

(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

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
sourceraw docstring

smile-column->columnclj

(smile-column->column smile-vec)
(smile-column->column smile-vec
                      {:keys [unify-strings?] :or {unify-strings? true}})

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.
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.
sourceraw docstring

smile-dataframe->datasetclj

(smile-dataframe->dataset df)
(smile-dataframe->dataset df options)

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.
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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close