Sha256: 6452439f36edc85058f2d9e760d9c3a795d34d9c13b1af45510e07706a3d10b5
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
require_relative 'gaussian/fit' require_relative 'gaussian/predict' require_relative 'gaussian/score' module LearnKit module NaiveBayes # Gaussian NB class Gaussian include LearnKit::NaiveBayes::Gaussian::Fit include LearnKit::NaiveBayes::Gaussian::Predict include LearnKit::NaiveBayes::Gaussian::Score attr_reader :data_set, :labels, :feature_size, :fit_results # input data # { label1: [[f1, f2, f3], [f1, f2, f3]], label2: [[f4, f5, f6], [f4, f5, f6]] } def initialize(args = {}) @data_set = args[:data_set] @labels = data_set.keys @feature_size = data_set.values.first[0].size @fit_results = {} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
learn_kit-0.0.1 | lib/learn_kit/naive_bayes/gaussian.rb |