Introducing LiteRT : Google's high-performance runtime for on-device AI, formerly known as TensorFlow Lite.
Learn more
Send feedback
mediapipe_model_maker.text_classifier.AverageWordEmbeddingHParams
The hyperparameters for an AverageWordEmbeddingClassifier.
Inherits From: BaseHParams
mediapipe_model_maker . text_classifier . AverageWordEmbeddingHParams (
learning_rate : float ,
batch_size : int ,
epochs : int ,
steps_per_epoch : Optional [ int ] = None ,
class_weights : Optional [ Mapping [ int , float ]] = None ,
shuffle : bool = False ,
repeat : bool = False ,
export_dir : str = tempfile . mkdtemp (),
distribution_strategy : str = 'off' ,
num_gpus : int = 0 ,
tpu : str = ''
)
Attributes
learning_rate
Dataclass field
batch_size
Dataclass field
epochs
Dataclass field
steps_per_epoch
Dataclass field
class_weights
Dataclass field
shuffle
Dataclass field
repeat
Dataclass field
export_dir
Dataclass field
distribution_strategy
Dataclass field
num_gpus
Dataclass field
tpu
Dataclass field
Methods
get_strategy
View source
get_strategy ()
__eq__
__eq__ (
other
)
Class Variables
class_weights
None
distribution_strategy
'off'
export_dir
'/tmpfs/tmp/tmpnt_h4p9w'
num_gpus
0
repeat
False
shuffle
False
steps_per_epoch
None
tpu
''
Send feedback
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 2024-05-07 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-07 UTC."],[],[]]