Method: Libsvmffi::Model#marshal_dump
- Defined in:
- lib/libsvmffi/model.rb
#marshal_dump ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/libsvmffi/model.rb', line 109 def marshal_dump d = Marshal.dump @labels d += "::::" d += Marshal.dump @features if !@svm_model.nil? # TODO surely there is a better way to do this. save_raw raw_str = File.open(TMP_MODEL_FILE, "r").read d += "::::" d += raw_str end return d end |