Class: ML::Data::Datasource
- Inherits:
-
Object
- Object
- ML::Data::Datasource
- Defined in:
- lib/easy_ml/data/datasource.rb
Instance Attribute Summary collapse
-
#polars_args ⇒ Object
readonly
Returns the value of attribute polars_args.
-
#root_dir ⇒ Object
readonly
Returns the value of attribute root_dir.
Instance Method Summary collapse
- #data ⇒ Object
- #files ⇒ Object
- #in_batches(of: 10_000) ⇒ Object
- #last_updated_at ⇒ Object
- #refresh! ⇒ Object
Instance Attribute Details
#polars_args ⇒ Object (readonly)
Returns the value of attribute polars_args.
4 5 6 |
# File 'lib/easy_ml/data/datasource.rb', line 4 def polars_args @polars_args end |
#root_dir ⇒ Object (readonly)
Returns the value of attribute root_dir.
4 5 6 |
# File 'lib/easy_ml/data/datasource.rb', line 4 def root_dir @root_dir end |
Instance Method Details
#data ⇒ Object
22 23 24 |
# File 'lib/easy_ml/data/datasource.rb', line 22 def data raise NotImplementedError, "Subclasses must implement #data" end |
#files ⇒ Object
10 11 12 |
# File 'lib/easy_ml/data/datasource.rb', line 10 def files raise NotImplementedError, "Subclasses must implement #files" end |
#in_batches(of: 10_000) ⇒ Object
6 7 8 |
# File 'lib/easy_ml/data/datasource.rb', line 6 def in_batches(of: 10_000) raise NotImplementedError, "Subclasses must implement #in_batches" end |
#last_updated_at ⇒ Object
14 15 16 |
# File 'lib/easy_ml/data/datasource.rb', line 14 def last_updated_at raise NotImplementedError, "Subclasses must implement #last_updated_at" end |
#refresh! ⇒ Object
18 19 20 |
# File 'lib/easy_ml/data/datasource.rb', line 18 def refresh! raise NotImplementedError, "Subclasses must implement #refresh!" end |