Class: OpenCV::Cv::Ml::TrainData
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ml::TrainData
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .create(samples, layout, responses, var_idx = Cv::Mat.new(), sample_idx = Cv::Mat.new(), sample_weights = Cv::Mat.new(), var_type = Cv::Mat.new()) ⇒ Cv::Ptr::Cv_Ml_TrainData
- .get_sub_matrix(matrix, idx, layout) ⇒ Cv::Mat (also: getSubMatrix)
- .get_sub_vector(vec, idx) ⇒ Cv::Mat (also: getSubVector)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #get_cat_count(vi) ⇒ Fixnum (also: #getCatCount)
- #get_cat_map ⇒ Cv::Mat (also: #getCatMap)
- #get_cat_ofs ⇒ Cv::Mat (also: #getCatOfs)
- #get_class_labels ⇒ Cv::Mat (also: #getClassLabels)
- #get_default_subst_values ⇒ Cv::Mat (also: #getDefaultSubstValues)
-
#get_layout ⇒ Fixnum
(also: #getLayout)
methods.
- #get_missing ⇒ Cv::Mat (also: #getMissing)
- #get_names(names) ⇒ Void (also: #getNames)
- #get_norm_cat_responses ⇒ Cv::Mat (also: #getNormCatResponses)
- #get_response_type ⇒ Fixnum (also: #getResponseType)
- #get_responses ⇒ Cv::Mat (also: #getResponses)
- #get_sample(var_idx, sidx, buf) ⇒ Void (also: #getSample)
- #get_sample_weights ⇒ Cv::Mat (also: #getSampleWeights)
- #get_samples ⇒ Cv::Mat (also: #getSamples)
- #get_test_norm_cat_responses ⇒ Cv::Mat (also: #getTestNormCatResponses)
- #get_test_responses ⇒ Cv::Mat (also: #getTestResponses)
- #get_test_sample_idx ⇒ Cv::Mat (also: #getTestSampleIdx)
- #get_test_sample_weights ⇒ Cv::Mat (also: #getTestSampleWeights)
- #get_test_samples ⇒ Cv::Mat (also: #getTestSamples)
- #get_train_norm_cat_responses ⇒ Cv::Mat (also: #getTrainNormCatResponses)
- #get_train_responses ⇒ Cv::Mat (also: #getTrainResponses)
- #get_train_sample_idx ⇒ Cv::Mat (also: #getTrainSampleIdx)
- #get_train_sample_weights ⇒ Cv::Mat (also: #getTrainSampleWeights)
- #get_train_samples(layout = ROW_SAMPLE, compress_samples = true, compress_vars = true) ⇒ Cv::Mat (also: #getTrainSamples)
- #get_values(vi, sidx, values) ⇒ Void (also: #getValues)
- #get_var_idx ⇒ Cv::Mat (also: #getVarIdx)
- #get_var_symbol_flags ⇒ Cv::Mat (also: #getVarSymbolFlags)
- #get_var_type ⇒ Cv::Mat (also: #getVarType)
- #getn_all_vars ⇒ Fixnum (also: #getNAllVars)
- #getn_samples ⇒ Fixnum (also: #getNSamples)
- #getn_test_samples ⇒ Fixnum (also: #getNTestSamples)
- #getn_train_samples ⇒ Fixnum (also: #getNTrainSamples)
- #getn_vars ⇒ Fixnum (also: #getNVars)
- #set_train_test_split(count, shuffle = true) ⇒ Void (also: #setTrainTestSplit)
- #set_train_test_split_ratio(ratio, shuffle = true) ⇒ Void (also: #setTrainTestSplitRatio)
- #shuffle_train_test ⇒ Void (also: #shuffleTrainTest)
-
#to_s ⇒ Object
converts TrainData into a string by crawling through all its attributes.
Class Method Details
.create(samples, layout, responses, var_idx = Cv::Mat.new(), sample_idx = Cv::Mat.new(), sample_weights = Cv::Mat.new(), var_type = Cv::Mat.new()) ⇒ Cv::Ptr::Cv_Ml_TrainData
wrapper for static method const cv::Ptrcv::ml::TrainData cv::ml::TrainData::create(const cv::Mat samples, int layout, const cv::Mat responses, const cv::Mat varIdx = Mat(), const cv::Mat sampleIdx = Mat(), const cv::Mat sampleWeights = Mat(), const cv::Mat varType = Mat())
47278 47279 47280 |
# File 'lib/ropencv/ropencv_types.rb', line 47278 def self.create(samples, layout, responses, var_idx = Cv::Mat.new(), sample_idx = Cv::Mat.new(), sample_weights = Cv::Mat.new(), var_type = Cv::Mat.new()) Rbind::cv_ml_train_data_create(samples, layout, responses, var_idx, sample_idx, sample_weights, var_type) end |
.get_sub_matrix(matrix, idx, layout) ⇒ Cv::Mat Also known as: getSubMatrix
wrapper for static method const cv::Mat cv::ml::TrainData::getSubMatrix(const cv::Mat matrix, const cv::Mat idx, int layout)
47264 47265 47266 |
# File 'lib/ropencv/ropencv_types.rb', line 47264 def self.get_sub_matrix(matrix, idx, layout) Rbind::cv_ml_train_data_get_sub_matrix(matrix, idx, layout) end |
.get_sub_vector(vec, idx) ⇒ Cv::Mat Also known as: getSubVector
wrapper for static method const cv::Mat cv::ml::TrainData::getSubVector(const cv::Mat vec, const cv::Mat idx)
47254 47255 47256 |
# File 'lib/ropencv/ropencv_types.rb', line 47254 def self.get_sub_vector(vec, idx) Rbind::cv_ml_train_data_get_sub_vector(vec, idx) end |
.new(*args) ⇒ Object
46755 46756 46757 46758 46759 46760 46761 46762 |
# File 'lib/ropencv/ropencv_types.rb', line 46755 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TrainDataStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
46751 46752 46753 |
# File 'lib/ropencv/ropencv_types.rb', line 46751 def self.null new(TrainDataStruct.new) end |
Instance Method Details
#get_cat_count(vi) ⇒ Fixnum Also known as: getCatCount
method wrapper for int cv::ml::TrainData::getCatCount(int vi)
47155 47156 47157 47158 |
# File 'lib/ropencv/ropencv_types.rb', line 47155 def get_cat_count(vi) __validate_pointer__ Rbind::cv_ml_train_data_get_cat_count( self, vi) end |
#get_cat_map ⇒ Cv::Mat Also known as: getCatMap
method wrapper for const cv::Mat cv::ml::TrainData::getCatMap()
47189 47190 47191 47192 47193 47194 47195 47196 47197 |
# File 'lib/ropencv/ropencv_types.rb', line 47189 def get_cat_map() __validate_pointer__ result = Rbind::cv_ml_train_data_get_cat_map( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_cat_ofs ⇒ Cv::Mat Also known as: getCatOfs
method wrapper for const cv::Mat cv::ml::TrainData::getCatOfs()
47176 47177 47178 47179 47180 47181 47182 47183 47184 |
# File 'lib/ropencv/ropencv_types.rb', line 47176 def get_cat_ofs() __validate_pointer__ result = Rbind::cv_ml_train_data_get_cat_ofs( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_class_labels ⇒ Cv::Mat Also known as: getClassLabels
method wrapper for const cv::Mat cv::ml::TrainData::getClassLabels()
47163 47164 47165 47166 47167 47168 47169 47170 47171 |
# File 'lib/ropencv/ropencv_types.rb', line 47163 def get_class_labels() __validate_pointer__ result = Rbind::cv_ml_train_data_get_class_labels( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_default_subst_values ⇒ Cv::Mat Also known as: getDefaultSubstValues
method wrapper for const cv::Mat cv::ml::TrainData::getDefaultSubstValues()
47141 47142 47143 47144 47145 47146 47147 47148 47149 |
# File 'lib/ropencv/ropencv_types.rb', line 47141 def get_default_subst_values() __validate_pointer__ result = Rbind::cv_ml_train_data_get_default_subst_values( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_layout ⇒ Fixnum Also known as: getLayout
method wrapper for int cv::ml::TrainData::getLayout()
methods
46839 46840 46841 46842 |
# File 'lib/ropencv/ropencv_types.rb', line 46839 def get_layout() __validate_pointer__ Rbind::cv_ml_train_data_get_layout( self) end |
#get_missing ⇒ Cv::Mat Also known as: getMissing
method wrapper for const cv::Mat cv::ml::TrainData::getMissing()
46911 46912 46913 46914 46915 46916 46917 46918 46919 |
# File 'lib/ropencv/ropencv_types.rb', line 46911 def get_missing() __validate_pointer__ result = Rbind::cv_ml_train_data_get_missing( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_names(names) ⇒ Void Also known as: getNames
method wrapper for void cv::ml::TrainData::getNames(const std::vectorstd::string names)
47244 47245 47246 47247 |
# File 'lib/ropencv/ropencv_types.rb', line 47244 def get_names(names) __validate_pointer__ Rbind::cv_ml_train_data_get_names( self, names) end |
#get_norm_cat_responses ⇒ Cv::Mat Also known as: getNormCatResponses
method wrapper for const cv::Mat cv::ml::TrainData::getNormCatResponses()
47005 47006 47007 47008 47009 47010 47011 47012 47013 |
# File 'lib/ropencv/ropencv_types.rb', line 47005 def get_norm_cat_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_norm_cat_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_response_type ⇒ Fixnum Also known as: getResponseType
method wrapper for int cv::ml::TrainData::getResponseType()
47096 47097 47098 47099 |
# File 'lib/ropencv/ropencv_types.rb', line 47096 def get_response_type() __validate_pointer__ Rbind::cv_ml_train_data_get_response_type( self) end |
#get_responses ⇒ Cv::Mat Also known as: getResponses
method wrapper for const cv::Mat cv::ml::TrainData::getResponses()
46992 46993 46994 46995 46996 46997 46998 46999 47000 |
# File 'lib/ropencv/ropencv_types.rb', line 46992 def get_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_sample(var_idx, sidx, buf) ⇒ Void Also known as: getSample
method wrapper for void cv::ml::TrainData::getSample(const cv::Mat varIdx, int sidx, float* buf)
46890 46891 46892 46893 |
# File 'lib/ropencv/ropencv_types.rb', line 46890 def get_sample(var_idx, sidx, buf) __validate_pointer__ Rbind::cv_ml_train_data_get_sample( self, var_idx, sidx, buf) end |
#get_sample_weights ⇒ Cv::Mat Also known as: getSampleWeights
method wrapper for const cv::Mat cv::ml::TrainData::getSampleWeights()
47018 47019 47020 47021 47022 47023 47024 47025 47026 |
# File 'lib/ropencv/ropencv_types.rb', line 47018 def get_sample_weights() __validate_pointer__ result = Rbind::cv_ml_train_data_get_sample_weights( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_samples ⇒ Cv::Mat Also known as: getSamples
method wrapper for const cv::Mat cv::ml::TrainData::getSamples()
46898 46899 46900 46901 46902 46903 46904 46905 46906 |
# File 'lib/ropencv/ropencv_types.rb', line 46898 def get_samples() __validate_pointer__ result = Rbind::cv_ml_train_data_get_samples( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_test_norm_cat_responses ⇒ Cv::Mat Also known as: getTestNormCatResponses
method wrapper for const cv::Mat cv::ml::TrainData::getTestNormCatResponses()
46979 46980 46981 46982 46983 46984 46985 46986 46987 |
# File 'lib/ropencv/ropencv_types.rb', line 46979 def get_test_norm_cat_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_test_norm_cat_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_test_responses ⇒ Cv::Mat Also known as: getTestResponses
method wrapper for const cv::Mat cv::ml::TrainData::getTestResponses()
46966 46967 46968 46969 46970 46971 46972 46973 46974 |
# File 'lib/ropencv/ropencv_types.rb', line 46966 def get_test_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_test_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_test_sample_idx ⇒ Cv::Mat Also known as: getTestSampleIdx
method wrapper for const cv::Mat cv::ml::TrainData::getTestSampleIdx()
47117 47118 47119 47120 47121 47122 47123 47124 47125 |
# File 'lib/ropencv/ropencv_types.rb', line 47117 def get_test_sample_idx() __validate_pointer__ result = Rbind::cv_ml_train_data_get_test_sample_idx( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_test_sample_weights ⇒ Cv::Mat Also known as: getTestSampleWeights
method wrapper for const cv::Mat cv::ml::TrainData::getTestSampleWeights()
47044 47045 47046 47047 47048 47049 47050 47051 47052 |
# File 'lib/ropencv/ropencv_types.rb', line 47044 def get_test_sample_weights() __validate_pointer__ result = Rbind::cv_ml_train_data_get_test_sample_weights( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_test_samples ⇒ Cv::Mat Also known as: getTestSamples
method wrapper for const cv::Mat cv::ml::TrainData::getTestSamples()
47230 47231 47232 47233 47234 47235 47236 47237 47238 |
# File 'lib/ropencv/ropencv_types.rb', line 47230 def get_test_samples() __validate_pointer__ result = Rbind::cv_ml_train_data_get_test_samples( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_train_norm_cat_responses ⇒ Cv::Mat Also known as: getTrainNormCatResponses
method wrapper for const cv::Mat cv::ml::TrainData::getTrainNormCatResponses()
46953 46954 46955 46956 46957 46958 46959 46960 46961 |
# File 'lib/ropencv/ropencv_types.rb', line 46953 def get_train_norm_cat_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_train_norm_cat_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_train_responses ⇒ Cv::Mat Also known as: getTrainResponses
method wrapper for const cv::Mat cv::ml::TrainData::getTrainResponses()
46940 46941 46942 46943 46944 46945 46946 46947 46948 |
# File 'lib/ropencv/ropencv_types.rb', line 46940 def get_train_responses() __validate_pointer__ result = Rbind::cv_ml_train_data_get_train_responses( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_train_sample_idx ⇒ Cv::Mat Also known as: getTrainSampleIdx
method wrapper for const cv::Mat cv::ml::TrainData::getTrainSampleIdx()
47104 47105 47106 47107 47108 47109 47110 47111 47112 |
# File 'lib/ropencv/ropencv_types.rb', line 47104 def get_train_sample_idx() __validate_pointer__ result = Rbind::cv_ml_train_data_get_train_sample_idx( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_train_sample_weights ⇒ Cv::Mat Also known as: getTrainSampleWeights
method wrapper for const cv::Mat cv::ml::TrainData::getTrainSampleWeights()
47031 47032 47033 47034 47035 47036 47037 47038 47039 |
# File 'lib/ropencv/ropencv_types.rb', line 47031 def get_train_sample_weights() __validate_pointer__ result = Rbind::cv_ml_train_data_get_train_sample_weights( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_train_samples(layout = ROW_SAMPLE, compress_samples = true, compress_vars = true) ⇒ Cv::Mat Also known as: getTrainSamples
method wrapper for const cv::Mat cv::ml::TrainData::getTrainSamples(int layout = ROW_SAMPLE, bool compressSamples = true, bool compressVars = true)
46927 46928 46929 46930 46931 46932 46933 46934 46935 |
# File 'lib/ropencv/ropencv_types.rb', line 46927 def get_train_samples(layout = ROW_SAMPLE, compress_samples = true, compress_vars = true) __validate_pointer__ result = Rbind::cv_ml_train_data_get_train_samples( self, layout, compress_samples, compress_vars) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_values(vi, sidx, values) ⇒ Void Also known as: getValues
method wrapper for void cv::ml::TrainData::getValues(int vi, const cv::Mat sidx, float* values)
47133 47134 47135 47136 |
# File 'lib/ropencv/ropencv_types.rb', line 47133 def get_values(vi, sidx, values) __validate_pointer__ Rbind::cv_ml_train_data_get_values( self, vi, sidx, values) end |
#get_var_idx ⇒ Cv::Mat Also known as: getVarIdx
method wrapper for const cv::Mat cv::ml::TrainData::getVarIdx()
47057 47058 47059 47060 47061 47062 47063 47064 47065 |
# File 'lib/ropencv/ropencv_types.rb', line 47057 def get_var_idx() __validate_pointer__ result = Rbind::cv_ml_train_data_get_var_idx( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_var_symbol_flags ⇒ Cv::Mat Also known as: getVarSymbolFlags
method wrapper for const cv::Mat cv::ml::TrainData::getVarSymbolFlags()
47083 47084 47085 47086 47087 47088 47089 47090 47091 |
# File 'lib/ropencv/ropencv_types.rb', line 47083 def get_var_symbol_flags() __validate_pointer__ result = Rbind::cv_ml_train_data_get_var_symbol_flags( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_var_type ⇒ Cv::Mat Also known as: getVarType
method wrapper for const cv::Mat cv::ml::TrainData::getVarType()
47070 47071 47072 47073 47074 47075 47076 47077 47078 |
# File 'lib/ropencv/ropencv_types.rb', line 47070 def get_var_type() __validate_pointer__ result = Rbind::cv_ml_train_data_get_var_type( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#getn_all_vars ⇒ Fixnum Also known as: getNAllVars
method wrapper for int cv::ml::TrainData::getNAllVars()
46879 46880 46881 46882 |
# File 'lib/ropencv/ropencv_types.rb', line 46879 def getn_all_vars() __validate_pointer__ Rbind::cv_ml_train_data_getn_all_vars( self) end |
#getn_samples ⇒ Fixnum Also known as: getNSamples
method wrapper for int cv::ml::TrainData::getNSamples()
46863 46864 46865 46866 |
# File 'lib/ropencv/ropencv_types.rb', line 46863 def getn_samples() __validate_pointer__ Rbind::cv_ml_train_data_getn_samples( self) end |
#getn_test_samples ⇒ Fixnum Also known as: getNTestSamples
method wrapper for int cv::ml::TrainData::getNTestSamples()
46855 46856 46857 46858 |
# File 'lib/ropencv/ropencv_types.rb', line 46855 def getn_test_samples() __validate_pointer__ Rbind::cv_ml_train_data_getn_test_samples( self) end |
#getn_train_samples ⇒ Fixnum Also known as: getNTrainSamples
method wrapper for int cv::ml::TrainData::getNTrainSamples()
46847 46848 46849 46850 |
# File 'lib/ropencv/ropencv_types.rb', line 46847 def getn_train_samples() __validate_pointer__ Rbind::cv_ml_train_data_getn_train_samples( self) end |
#getn_vars ⇒ Fixnum Also known as: getNVars
method wrapper for int cv::ml::TrainData::getNVars()
46871 46872 46873 46874 |
# File 'lib/ropencv/ropencv_types.rb', line 46871 def getn_vars() __validate_pointer__ Rbind::cv_ml_train_data_getn_vars( self) end |
#set_train_test_split(count, shuffle = true) ⇒ Void Also known as: setTrainTestSplit
method wrapper for void cv::ml::TrainData::setTrainTestSplit(int count, bool shuffle = true)
47204 47205 47206 47207 |
# File 'lib/ropencv/ropencv_types.rb', line 47204 def set_train_test_split(count, shuffle = true) __validate_pointer__ Rbind::cv_ml_train_data_set_train_test_split( self, count, shuffle) end |
#set_train_test_split_ratio(ratio, shuffle = true) ⇒ Void Also known as: setTrainTestSplitRatio
method wrapper for void cv::ml::TrainData::setTrainTestSplitRatio(double ratio, bool shuffle = true)
47214 47215 47216 47217 |
# File 'lib/ropencv/ropencv_types.rb', line 47214 def set_train_test_split_ratio(ratio, shuffle = true) __validate_pointer__ Rbind::cv_ml_train_data_set_train_test_split_ratio( self, ratio, shuffle) end |
#shuffle_train_test ⇒ Void Also known as: shuffleTrainTest
method wrapper for void cv::ml::TrainData::shuffleTrainTest()
47222 47223 47224 47225 |
# File 'lib/ropencv/ropencv_types.rb', line 47222 def shuffle_train_test() __validate_pointer__ Rbind::cv_ml_train_data_shuffle_train_test( self) end |
#to_s ⇒ Object
converts TrainData into a string by crawling through all its attributes
46828 46829 46830 |
# File 'lib/ropencv/ropencv_types.rb', line 46828 def to_s "#<cv::ml::TrainData >" end |