Conversions between tech.ml.dataset columns/datasets and Smile data structures.
Conversions between tech.ml.dataset columns/datasets and Smile data structures.
(cast-to-float ds)Cast every column in ds to :float32. Useful before feeding into Smile SVM/SVR.
Cast every column in ds to :float32. Useful before feeding into Smile SVM/SVR.
(dataset->array ds)Convert a tech.ml.dataset to a row-major double[][]: one row per observation, one column per feature, in (ds/column-names ds) order — the layout Smile's fit/predict expect. Same result as (.toArray (dataset->dataframe ds)) but without building the intermediate DataFrame.
Throws if any column has missing values (see assert-no-missing).
Convert a tech.ml.dataset to a row-major double[][]: one row per observation, one column per feature, in (ds/column-names ds) order — the layout Smile's fit/predict expect. Same result as (.toArray (dataset->dataframe ds)) but without building the intermediate DataFrame. Throws if any column has missing values (see assert-no-missing).
(dataset->dataframe ds)Convert a tech.ml.dataset to a Smile DataFrame (one DoubleVector per column).
Convert a tech.ml.dataset to a Smile DataFrame (one DoubleVector per column).
(dscol->smilecol col)Convert a tech.ml.dataset column to a Smile DoubleVector, preserving the column name.
Convert a tech.ml.dataset column to a Smile DoubleVector, preserving the column name.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |