DeciderSpaceMismatchException class final
A decider was fitted in another embedding space than the embedder asked to load it, or than the one core now serves in place of the decider's own: another model file, dimension, backend or task prefix.
Vectors from two spaces are not comparable (EmbeddingGemma 2's NPU vectors against its CPU file's, measured: cosine 0.83 on average for short texts, rising to 0.995 at 400 words, 0.86–0.88 for images), so the decider is refused instead of silently giving wrong answers. Fit it again on this embedder.
- Inheritance
-
- Object
- DeciderException
- DeciderSpaceMismatchException
- Annotations
-
- @experimental
Constructors
- DeciderSpaceMismatchException(String message, {required String expected, required String actual})
-
const
Properties
- actual → String
-
The space of the embedder that was asked to load it.
final
- expected → String
-
The space the artifact was fitted in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What happened, in words meant for a developer.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited