Sha256: ec8597c5965f485e4fa17522cbf70e8ccfee3f8707c88e2bb499e21cec7972e8

Contents?: true

Size: 1.36 KB

Versions: 9

Compression:

Stored size: 1.36 KB

Contents

module Rumale
  module SVM
    class SVC
      include Base::BaseEstimator
      include Base::Classifier

      def initialize: (?reg_param: Float reg_param, ?kernel: String kernel, ?degree: Integer degree, ?gamma: Float gamma,
                       ?coef0: Float coef0, ?shrinking: bool shrinking, ?probability: bool probability,
                       ?cache_size: Float cache_size, ?tol: Float tol,
                       ?verbose: bool verbose, ?random_seed: untyped? random_seed) -> void
      def fit: (Numo::DFloat x, Numo::Int32 y) -> SVC
      def decision_function: (Numo::DFloat x) -> Numo::DFloat
      def predict: (Numo::DFloat x) -> Numo::Int32
      def predict_proba: (Numo::DFloat x) -> Numo::DFloat
      def marshal_dump: () -> { params: Hash[Symbol, untyped], model: untyped }
      def marshal_load: (Hash[Symbol, untyped] obj) -> nil
      def support: () -> Numo::Int32
      def support_vectors: () -> Numo::DFloat
      def n_support: () -> Numo::Int32
      def duel_coef: () -> Numo::DFloat
      def intercept: () -> Numo::DFloat
      def prob_a: () -> Numo::DFloat
      def prob_b: () -> Numo::DFloat

      private

      def add_index_col: (Numo::DFloat x) -> Numo::DFloat
      def del_index_col: (Numo::DFloat x) -> Numo::DFloat
      def precomputed_kernel?: () -> bool
      def libsvm_params: () -> untyped
      def trained?: () -> bool
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rumale-svm-0.12.0 sig/rumale/svm/svc.rbs
rumale-svm-0.11.0 sig/rumale/svm/svc.rbs
rumale-svm-0.10.0 sig/rumale/svm/svc.rbs
rumale-svm-0.9.0 sig/rumale/svm/svc.rbs
rumale-svm-0.8.0 sig/rumale/svm/svc.rbs
rumale-svm-0.7.0 sig/rumale/svm/svc.rbs
rumale-svm-0.6.0 sig/rumale/svm/svc.rbs
rumale-svm-0.5.1 sig/rumale/svm/svc.rbs
rumale-svm-0.5.0 sig/rumale/svm/svc.rbs