EncoderModel class

A simple serializable encoder model container. Can store metadata and category mappings.

Constructors

EncoderModel.new({required String type, required Map<dynamic, int> labelToIndex, DateTime? trainedAt})
EncoderModel.fromJson(Map<String, dynamic> json)
Create from a JSON-like Map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
labelToIndex Map<dynamic, int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trainedAt DateTime
final
type String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to a JSON-like Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited