INNER CODE UNIT · Ruby

idx

yoshoku/rumale · rumale-core/lib/rumale/dataset.rb:218

          idx = n + (zero_based == false ? 1 : 0)
          line += format(" %d:#{value_type}", idx, val) if val != 0
        end
        line
      end

      def dump_label(label, label_type_str)
        if label.is_a?(Array)
          label.map { |lbl| format(label_type_str, lbl) }.join(',')
        else
          format(label_type_str, label)
        end
      end
    end
  end
end

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…