Class: ML::Data::Datasource

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_ml/data/datasource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#polars_argsObject (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_dirObject (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

#dataObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/easy_ml/data/datasource.rb', line 22

def data
  raise NotImplementedError, "Subclasses must implement #data"
end

#filesObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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_atObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/easy_ml/data/datasource.rb', line 18

def refresh!
  raise NotImplementedError, "Subclasses must implement #refresh!"
end