Transformer class
Minimal Transformer encoder wrapper. We provide a tiny, testable abstraction: token embeddings -> mean pooling -> MLP head (ANN).
Constructors
Properties
Methods
-
fit(
List< List< X, List<int> >List< Y, {int? batchSize, bool verbose = false}) → voiddouble> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predict(
List< List< X) → List<int> >List< double> > -
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
String s, {int? seed}) → Transformer -
fromMap(
Map< String, dynamic> m, {int? seed}) → Transformer