DenseCountVectorizer

public final class DenseCountVectorizer<T extends Number> implements Vectorizer<T, Float>

DenseCountVectorizer uses dense data. Dense data is faster at operating, but because the data is usually so sparse a sparse structure ends up faster. Only use this if you're sure your data is very dense!

Constructors

Link copied to clipboard
public DenseCountVectorizer<T> DenseCountVectorizer(    PercentOrCount minDf,     PercentOrCount maxDf,     IntRange ngramRange)

Functions

Link copied to clipboard
public Unit fit(List<List<String>> input)

Does a fitTransform

Link copied to clipboard
public NDArray<Float, D2> fitTransform(List<List<String>> input)
Link copied to clipboard
public final PercentOrCount getMaxDf()
Link copied to clipboard
public final PercentOrCount getMinDf()
Link copied to clipboard
public final IntRange getNgramRange()
Link copied to clipboard
public NDArray<Float, D2> transform(List<List<String>> input)

Properties

Link copied to clipboard
private final PercentOrCount maxDf
Link copied to clipboard
private final PercentOrCount minDf
Link copied to clipboard
private final IntRange ngramRange