MNIST Type

Constructors

Constructor Description

MNIST(path, ?urls, ?train, ?transform, ?targetTransform, ?n)

Full Usage: MNIST(path, ?urls, ?train, ?transform, ?targetTransform, ?n)

Parameters:
    path : string
    ?urls : string seq
    ?train : bool
    ?transform : Tensor -> Tensor
    ?targetTransform : Tensor -> Tensor
    ?n : int

Returns: MNIST
path : string
?urls : string seq
?train : bool
?transform : Tensor -> Tensor
?targetTransform : Tensor -> Tensor
?n : int
Returns: MNIST

Instance members

Instance member Description

this.classNames

Full Usage: this.classNames

Returns: string array
Returns: string array

this.classes

Full Usage: this.classes

Returns: int
Returns: int

Inherited members

Inherited from Dataset

Instance members

Instance member Description

this.GetSlice

Full Usage: this.GetSlice

Parameters:
    imin : int option
    imax : int option

Returns: DatasetSubset
imin : int option
imax : int option
Returns: DatasetSubset

this.filter predicate

Full Usage: this.filter predicate

Parameters:
Returns: DatasetSubset
predicate : Tensor -> Tensor -> bool
Returns: DatasetSubset

this.item arg1

Full Usage: this.item arg1

Parameters:
    arg0 : int

Returns: Tensor * Tensor
Modifiers: abstract
arg0 : int
Returns: Tensor * Tensor

this.loader (batchSize, ?shuffle, ?dropLast, ?device, ?dtype, ?backend, ?targetDevice, ?targetDtype, ?targetBackend)

Full Usage: this.loader (batchSize, ?shuffle, ?dropLast, ?device, ?dtype, ?backend, ?targetDevice, ?targetDtype, ?targetBackend)

Parameters:
Returns: DataLoader
batchSize : int
?shuffle : bool
?dropLast : bool
?device : Device
?dtype : Dtype
?backend : Backend
?targetDevice : Device
?targetDtype : Dtype
?targetBackend : Backend
Returns: DataLoader

this[i]

Full Usage: this[i]

Parameters:
    i : int

Returns: Tensor * Tensor
i : int
Returns: Tensor * Tensor

this.length

Full Usage: this.length

Returns: int
Modifiers: abstract
Returns: int

© Copyright 2021, DiffSharp and dfx Contributors.