Skip to content

Commit

Permalink
more detailed doc (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
behrica authored Feb 18, 2025
1 parent 4afcf93 commit 611df5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tech/v3/dataset/modelling.clj
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@
(defn probability-distributions->label-column
"Given a dataset that has columns in which the column names describe labels and the
rows describe a probability distribution, create a label column by taking the max
value in each row and assign column that row value."
value in each row and assign column that row value.
Creates a categorical label column which has a catgeorical map in its meta.
"
([prob-ds dst-colname label-column-datatype]
(let [^List cnames (vec (ds-base/column-names prob-ds))
idx-col (->> (ds-readers/value-reader prob-ds)
Expand Down

0 comments on commit 611df5a

Please sign in to comment.