mediapipe_model_maker.text_classifier.AverageWordEmbeddingModelOptions
Stay organized with collections
Save and categorize content based on your preferences.
Configurable model options for an Average Word Embedding classifier.
mediapipe_model_maker.text_classifier.AverageWordEmbeddingModelOptions(
seq_len: int = 256,
wordvec_dim: int = 16,
do_lower_case: bool = True,
vocab_size: int = 10000,
dropout_rate: float = 0.2
)
Attributes |
seq_len
|
Length of the sequence to feed into the model.
|
wordvec_dim
|
Dimension of the word embedding.
|
do_lower_case
|
Whether to convert all uppercase characters to lowercase
during preprocessing.
|
vocab_size
|
Number of words to generate the vocabulary from data.
|
dropout_rate
|
The rate for dropout.
|
Methods
__eq__
__eq__(
other
)
Class Variables |
|
do_lower_case
|
True
|
|
dropout_rate
|
0.2
|
|
seq_len
|
256
|
|
vocab_size
|
10000
|
|
wordvec_dim
|
16
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-28 UTC.
[null,null,["Last updated 2026-05-28 UTC."],[],[]]