Liking cljdoc? Tell your friends :D

tech.ml.dataset.column


cacheclj

(cache col)

Return the cache map for this column. Cache maps are never duplcated or copied.

Return the cache map for this column.  Cache maps are
never duplcated or copied.
sourceraw docstring

cloneclj

(clone col)

Clone this column not changing anything.

Clone this column not changing anything.
sourceraw docstring

column-nameclj

(column-name col)
source

column-valuesclj

(column-values col)

Return a 'thing convertible to a sequence' of values for this column. May be a java array or something else. Likely to error on missing.

Return a 'thing convertible to a sequence' of values for this column.
May be a java array or something else.  Likely to error on missing.
sourceraw docstring

correlationclj

(correlation lhs rhs correlation-type)

Correlation coefficient for given 2 columns. Available correlation types are: :pearson :spearman :kendall

Returns floating point number between [-1 1]

Correlation coefficient for given 2 columns.  Available correlation types
are:
:pearson
:spearman
:kendall

Returns floating point number between [-1 1]
sourceraw docstring

empty-columnclj

(empty-column col datatype elem-count & [metadata])

Return a new column of this supertype where all values are missing.

Return a new column of this supertype where all values are missing.
sourceraw docstring

get-column-valueclj

(get-column-value col idx)

Get a value fro mthe column. Error on missing values.

Get a value fro mthe column.  Error on missing values.
sourceraw docstring

is-column?clj

(is-column? item)

Return true if this item is a column.

Return true if this item is a column.
sourceraw docstring

is-missing?clj

(is-missing? col idx)

Return true if this index is missing.

Return true if this index is missing.
sourceraw docstring

merge-cacheclj

(merge-cache col cache-map)

Merge the existing cache with new cache map. Cache maps are never duplicated or copied.

Merge the existing cache with new cache map.  Cache maps
are never duplicated or copied.
sourceraw docstring

merge-metadataclj

(merge-metadata col data-map)

Merge metadata in column with this map. Beware this could change the name of the column.

Merge metadata in column with this map.
Beware this could change the name of the column.
sourceraw docstring

metadataclj

(metadata col)

Return the metadata map for this column. Metadata must contain :name :datatype :size. Categorical columns must have :categorical? true and the inference target should have :target? true.

Return the metadata map for this column.
Metadata must contain :name :datatype :size.  Categorical columns must have
:categorical? true and the inference target should have :target? true.
sourceraw docstring

missingclj

(missing col)

Indexes of missing values

Indexes of missing values
sourceraw docstring

new-columnclj

(new-column col datatype elem-count-or-values & [metadata])

Return a new column of this supertype with these values

Return a new column of this supertype with these values
sourceraw docstring

selectclj

(select col idx-seq)

Return a new column with the subset of indexes

Return a new column with the subset of indexes
sourceraw docstring

set-cacheclj

(set-cache col cache-map)

Set the cache on the column returning a new column. Cache maps are never duplicated or copied.

Set the cache on the column returning a new column. Cache maps
are never duplicated or copied.
sourceraw docstring

set-metadataclj

(set-metadata col data-map)

Set the metadata on the column returning a new column. Beware this could change the name.

Set the metadata on the column returning a new column.
Beware this could change the name.
sourceraw docstring

set-nameclj

(set-name col name)

Return a new column.

Return a new column.
sourceraw docstring

set-valuesclj

(set-values col idx-val-seq)

Set values in the column returning a new column with same name and datatype. Values which cannot be simply coerced to the datatype are an error.

Set values in the column returning a new column with same name and datatype.  Values
which cannot be simply coerced to the datatype are an error.
sourceraw docstring

statsclj

(stats col stats-set)

Return a map of stats. Stats set is a set of the desired stats in keyword form. Guaranteed support across implementations for :mean :variance :median :skew. Implementations should check their metadata before doing calculations.

Return a map of stats.  Stats set is a set of the desired stats in keyword
form.  Guaranteed support across implementations for :mean :variance :median :skew.
Implementations should check their metadata before doing calculations.
sourceraw docstring

supported-statsclj

(supported-stats col)

List of available stats for the column

List of available stats for the column
sourceraw docstring

to-double-arrayclj

(to-double-array col & [error-on-missing?])

Convert to a java primitive array of a given datatype. For strings, an implicit string->double mapping is expected. For booleans, true=1 false=0. Finally, any missing values should be indicated by a NaN of the expected type.

Convert to a java primitive array of a given datatype.  For strings,
an implicit string->double mapping is expected.  For booleans, true=1 false=0.
Finally, any missing values should be indicated by a NaN of the expected type.
sourceraw docstring

uniqueclj

(unique col)

Set of all unique values

Set of all unique values
sourceraw docstring

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

× close