class CrystalML::Classification::NaiveBayesClassifier

Included Modules

Defined in:

classification/naive_bayes.cr

Constructors

Instance Method Summary

Instance methods inherited from module CrystalML::Classifier

predict(data : Tensor(Float64, CPU(Float64))) : Tensor(Float64, CPU(Float64))
predict(data : Array(Array(Float64)) | Crysda::DataFrame) : Tensor(Float64, CPU(Float64))
predict

Instance methods inherited from class CrystalML::SupervisedEstimator

fit(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)))
fit(data : Tensor(Float64, CPU(Float64)) | Array(Array(Float64)) | Crysda::DataFrame, target : Tensor(Float64, CPU(Float64)) | Array(Array(Float64)) | Array(Float64) | Crysda::DataFrame)
fit

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def fit(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64))) #

[View source]
def means : Hash(Float64, Tensor(Float64, CPU(Float64))) #

[View source]
def means=(means : Hash(Float64, Tensor(Float64, CPU(Float64)))) #

[View source]
def predict(data : Tensor(Float64, CPU(Float64))) : Tensor(Float64, CPU(Float64)) #

[View source]
def variances : Hash(Float64, Tensor(Float64, CPU(Float64))) #

[View source]
def variances=(variances : Hash(Float64, Tensor(Float64, CPU(Float64)))) #

[View source]