class MXNet::Gluon::Data::SimpleDataset(T)

Overview

Simple Dataset wrapper for arrays and other classes that implement Indexable.

Defined in:

mxnet/gluon/data/dataset.cr

Constructors

Instance Method Summary

Instance methods inherited from class MXNet::Gluon::Data::Dataset(T)

size size, transform(lazy = true, &proc : T -> U) forall U transform, unsafe_fetch(idx) unsafe_fetch

Constructor Detail

def self.new(dataset : Indexable(T)) #

Creates a new instance.

Parameters

  • dataset (Indexable) Any indexable object.

[View source]

Instance Method Detail

def size #
Description copied from module Indexable(T)

Returns the number of elements in this container.


[View source]
def unsafe_fetch(idx) #

[View source]