MNISTBase

torchvision.datasets.MNISTBase
trait MNISTBase(val mirrors: Seq[String], val resources: Seq[(String, String)], val classes: Seq[String], val root: Path, val train: Boolean, val download: Boolean) extends TensorDataset[Float32, Int64]

Attributes

Source
MNIST.scala
Graph
Supertypes
Known subtypes
class FashionMNIST
class MNIST

Members list

Value members

Concrete methods

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Seq -> Function1 -> Iterable -> Any
Source
MNIST.scala

Inherited methods

final def ++[B >: (Tensor[Float32], Tensor[Int64])](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
final override def ++:[B >: (Tensor[Float32], Tensor[Int64])](prefix: IterableOnce[B]): CC[B]

Attributes

Definition Classes
Inherited from:
SeqOps
final def +:[B >: (Tensor[Float32], Tensor[Int64])](elem: B): CC[B]

Attributes

Inherited from:
SeqOps
final def :+[B >: (Tensor[Float32], Tensor[Int64])](elem: B): CC[B]

Attributes

Inherited from:
SeqOps
final def :++[B >: (Tensor[Float32], Tensor[Int64])](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: ((Tensor[Float32], Tensor[Int64])) => C): PartialFunction[A, C]

Attributes

Definition Classes
Inherited from:
PartialFunction
def appended[B >: (Tensor[Float32], Tensor[Int64])](elem: B): CC[B]

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def applyOrElse[A1 <: Int, B1 >: (Tensor[Float32], Tensor[Int64])](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
override def canEqual(that: Any): Boolean

Attributes

Definition Classes
Inherited from:
IndexedSeq

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => Int): A => R

Attributes

Inherited from:
Function1
final override def concat[B >: (Tensor[Float32], Tensor[Int64])](suffix: IterableOnce[B]): CC[B]

Attributes

Definition Classes
Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
IterableOnceOps
def diff[B >: (Tensor[Float32], Tensor[Int64])](that: Seq[B]): C

Attributes

Inherited from:
SeqOps
def distinct: C

Attributes

Inherited from:
SeqOps
def distinctBy[B](f: ((Tensor[Float32], Tensor[Int64])) => B): C

Attributes

Inherited from:
SeqOps
override def drop(n: Int): C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def dropRight(n: Int): C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
PartialFunction
override def empty: CC[A]

Attributes

Definition Classes
Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
SeqOps
override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Seq -> Equals -> Any
Inherited from:
Seq

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def find(p: ((Tensor[Float32], Tensor[Int64])) => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
SeqOps
def flatMap[B](f: ((Tensor[Float32], Tensor[Int64])) => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: ((Tensor[Float32], Tensor[Int64])) => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: (Tensor[Float32], Tensor[Int64])](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (Tensor[Float32], Tensor[Int64])) => B): B

Attributes

Inherited from:
IterableOnceOps
override def foldRight[B](z: B)(op: ((Tensor[Float32], Tensor[Int64]), B) => B): B

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: ((Tensor[Float32], Tensor[Int64])) => U): Unit

Attributes

Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[(Tensor[Float32], Tensor[Int64])]): CC[A]

Attributes

Inherited from:
IterableFactoryDefaults
def groupBy[K](f: ((Tensor[Float32], Tensor[Int64])) => K): Map[K, C]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: ((Tensor[Float32], Tensor[Int64])) => K)(f: ((Tensor[Float32], Tensor[Int64])) => B): Map[K, CC[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: ((Tensor[Float32], Tensor[Int64])) => K)(f: ((Tensor[Float32], Tensor[Int64])) => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
override def hashCode(): Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Seq -> Any
Inherited from:
Seq
override def head: A

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def headOption: Option[A]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def indexOf[B >: (Tensor[Float32], Tensor[Int64])](elem: B): Int

Attributes

Inherited from:
SeqOps
def indexOf[B >: (Tensor[Float32], Tensor[Int64])](elem: B, from: Int): Int

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def indices: Range

Attributes

Inherited from:
SeqOps
def init: C

Attributes

Inherited from:
IterableOps
def inits: Iterator[C]

Attributes

Inherited from:
IterableOps
def intersect[B >: (Tensor[Float32], Tensor[Int64])](that: Seq[B]): C

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
override def isEmpty: Boolean

Attributes

Definition Classes
Inherited from:
SeqOps
override def isTraversableAgain: Boolean

Attributes

Definition Classes
Inherited from:
IterableOps

Attributes

Definition Classes
Inherited from:
IndexedSeq
def iterator: Iterator[A]

Attributes

Inherited from:
IndexedSeqOps
override def knownSize: Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def last: A

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def lastOption: Option[A]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
Iterable
final override def lengthCompare(that: Iterable[_]): Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
final override def lengthCompare(len: Int): Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps
def lift: A => Option[B]

Attributes

Inherited from:
PartialFunction
override def map[B](f: ((Tensor[Float32], Tensor[Int64])) => B): CC[B]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def max[B >: (Tensor[Float32], Tensor[Int64])](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: ((Tensor[Float32], Tensor[Int64])) => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: ((Tensor[Float32], Tensor[Int64])) => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: (Tensor[Float32], Tensor[Int64])](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: (Tensor[Float32], Tensor[Int64])](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: ((Tensor[Float32], Tensor[Int64])) => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: ((Tensor[Float32], Tensor[Int64])) => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: (Tensor[Float32], Tensor[Int64])](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[A, CC[A]]

Attributes

Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
PartialFunction
def padTo[B >: (Tensor[Float32], Tensor[Int64])](len: Int, elem: B): CC[B]

Attributes

Inherited from:
SeqOps
def partition(p: ((Tensor[Float32], Tensor[Int64])) => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: ((Tensor[Float32], Tensor[Int64])) => Either[A1, A2]): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
override def prepended[B >: (Tensor[Float32], Tensor[Int64])](elem: B): CC[B]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps
def product[B >: (Tensor[Float32], Tensor[Int64])](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: (Tensor[Float32], Tensor[Int64])](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: (Tensor[Float32], Tensor[Int64])](op: (B, (Tensor[Float32], Tensor[Int64])) => B): B

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: (Tensor[Float32], Tensor[Int64])](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: (Tensor[Float32], Tensor[Int64])](op: ((Tensor[Float32], Tensor[Int64]), B) => B): B

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
override def reverse: C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def reverseIterator: Iterator[A]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override protected def reversed: Iterable[A]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def runWith[U](action: ((Tensor[Float32], Tensor[Int64])) => U): A => Boolean

Attributes

Inherited from:
PartialFunction
override def sameElements[B >: (Tensor[Float32], Tensor[Int64])](o: IterableOnce[B]): Boolean

Attributes

Definition Classes
Inherited from:
IndexedSeq

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def scan[B >: (Tensor[Float32], Tensor[Int64])](z: B)(op: (B, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, (Tensor[Float32], Tensor[Int64])) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: ((Tensor[Float32], Tensor[Int64]), B) => B): CC[B]

Attributes

Inherited from:
IterableOps
override def search[B >: (Tensor[Float32], Tensor[Int64])](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def search[B >: (Tensor[Float32], Tensor[Int64])](elem: B)(implicit ord: Ordering[B]): SearchResult

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps
final def segmentLength(p: ((Tensor[Float32], Tensor[Int64])) => Boolean): Int

Attributes

Inherited from:
SeqOps
final override def size: Int

Attributes

Definition Classes
Inherited from:
SeqOps
final override def sizeCompare(that: Iterable[_]): Int

Attributes

Definition Classes
Inherited from:
SeqOps
final override def sizeCompare(otherSize: Int): Int

Attributes

Definition Classes
Inherited from:
SeqOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
override def slice(from: Int, until: Int): C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
def sortBy[B](f: ((Tensor[Float32], Tensor[Int64])) => B)(implicit ord: Ordering[B]): C

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def sorted[B >: (Tensor[Float32], Tensor[Int64])](implicit ord: Ordering[B]): C

Attributes

Inherited from:
SeqOps
def span(p: ((Tensor[Float32], Tensor[Int64])) => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (C, C)

Attributes

Definition Classes
Inherited from:
IterableOps

Attributes

Inherited from:
SeqOps
override def stepper[S <: Stepper[_]](implicit shape: StepperShape[(Tensor[Float32], Tensor[Int64]), S]): S & EfficientSplit

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def sum[B >: (Tensor[Float32], Tensor[Int64])](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: C

Attributes

Inherited from:
IterableOps
def tails: Iterator[C]

Attributes

Inherited from:
IterableOps
override def take(n: Int): C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def takeRight(n: Int): C

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: ((Tensor[Float32], Tensor[Int64])) => U): C

Attributes

Definition Classes
Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: (Tensor[Float32], Tensor[Int64])]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
final override def toIndexedSeq: IndexedSeq[A]

Attributes

Definition Classes
Inherited from:
IndexedSeq
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: (Tensor[Float32], Tensor[Int64]) <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
final override def toSeq: Seq.this.type

Attributes

Definition Classes
Inherited from:
Seq
def toSet[B >: (Tensor[Float32], Tensor[Int64])]: Set[B]

Attributes

Inherited from:
IterableOnceOps
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: ((Tensor[Float32], Tensor[Int64])) => Iterable[B]): CC[CC[B]]

Attributes

Inherited from:
IterableOps
def unapply(a: Int): Option[B]

Attributes

Inherited from:
PartialFunction
def unzip[A1, A2](implicit asPair: ((Tensor[Float32], Tensor[Int64])) => (A1, A2)): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: ((Tensor[Float32], Tensor[Int64])) => (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])

Attributes

Inherited from:
IterableOps
def updated[B >: (Tensor[Float32], Tensor[Int64])](index: Int, elem: B): CC[B]

Attributes

Inherited from:
SeqOps
override def view: IndexedSeqView[A]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): CC[(A, B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: (Tensor[Float32], Tensor[Int64]), B](that: Iterable[B], thisElem: A1, thatElem: B): CC[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: CC[(A, Int)]

Attributes

Inherited from:
IterableOps

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, (Tensor[Float32], Tensor[Int64])) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: ((Tensor[Float32], Tensor[Int64]), B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, (Tensor[Float32], Tensor[Int64])) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: (Tensor[Float32], Tensor[Int64])](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def prefixLength(p: ((Tensor[Float32], Tensor[Int64])) => Boolean): Int

Attributes

Deprecated
[Since version 2.13.0] Use segmentLength instead of prefixLength
Inherited from:
SeqOps
final def repr: C

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def reverseMap[B](f: ((Tensor[Float32], Tensor[Int64])) => B): CC[B]

Attributes

Deprecated
[Since version 2.13.0] Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
Inherited from:
SeqOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
final def union[B >: (Tensor[Float32], Tensor[Int64])](that: Seq[B]): CC[B]

Attributes

Deprecated
[Since version 2.13.0] Use `concat` instead
Inherited from:
SeqOps
override def view(from: Int, until: Int): IndexedSeqView[A]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Definition Classes
Inherited from:
IndexedSeqOps

Concrete fields

Attributes

Source
MNIST.scala

Attributes

Source
MNIST.scala

Attributes

Source
MNIST.scala

Attributes

Source
MNIST.scala
val root: Path

Attributes

Source
MNIST.scala
val train: Boolean

Attributes

Source
MNIST.scala

Exports

Defined exports

def features: Tensor[Input]
Exported from TensorDataset

Attributes

Source
TensorDataset.scala
def length: Int
Exported from SeqOps
def targets: Tensor[Target]
Exported from TensorDataset

Attributes

Source
TensorDataset.scala