Sha256: eb01ea70d7c40cea1d55559e702f0952d6a65a5b362ae8f7449673918a105788
Contents?: true
Size: 446 Bytes
Versions: 8
Compression:
Stored size: 446 Bytes
Contents
#ifndef __binary_weight_h__ #define __binary_weight_h__ #include "preprocessing/examples/example_preprocessor.h" namespace Preprocessing { namespace Examples { class BinaryWeight : public ExamplePreprocessor { void process(DataSet::Example *example) { for(int i = 0; i < example->size; i++) { if(example->get_value(i) != 0.0) example->set_value(i, 1.0); } } }; } } #endif
Version data entries
8 entries across 8 versions & 1 rubygems