Class: FeatureSet::FeatureBuilders::Base
- Inherits:
-
Object
- Object
- FeatureSet::FeatureBuilders::Base
- Defined in:
- lib/feature_set/feature_builders/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #before_build_features(dataset) ⇒ Object
- #build_features(datum, key, row) ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/feature_set/feature_builders/base.rb', line 6 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/feature_set/feature_builders/base.rb', line 4 def @options end |
Instance Method Details
#before_build_features(dataset) ⇒ Object
14 15 |
# File 'lib/feature_set/feature_builders/base.rb', line 14 def before_build_features(dataset) end |
#build_features(datum, key, row) ⇒ Object
10 11 12 |
# File 'lib/feature_set/feature_builders/base.rb', line 10 def build_features(datum, key, row) raise "Please implement 'build_features' in your subclass of FeatureBuilders::Base." end |