New! Use Simple ML for Sheets to apply machine learning to the data in your Google Sheets
Read More
tfdf.builder.AdvancedArguments
Stay organized with collections
Save and categorize content based on your preferences.
Advanced control of the model building.
tfdf.builder.AdvancedArguments(
disable_categorical_integer_offset_correction: bool = False,
allow_slow_inference: bool = True
)
Attributes |
disable_categorical_integer_offset_correction
|
Set to true when building
manually a model with categorical integer features. Use false (default) in
other cases, for example, when editing a TF-DF model or for models not
using integer categorical features. Details: Yggdrasil Decision Forests
reserves the value 0 of categorical integer features to the OOV item, so
the value 0 cannot be used directly. If the
disable_categorical_integer_offset_correction is true, a +1 offset might
be applied before calling the inference code. This attribute should be
disabled when creating manually a model with categorical integer features.
Ultimately, Yggdrasil Decision Forests will support the value 0 as a
normal value and this parameter will be removed. If
disable_categorical_integer_offset_correction is false, this +1 offset
is never applied.
|
allow_slow_inference
|
If false, slow inference engines are not allowed. If
the model is only available with the slow engine, an error is raised. If
true, the fastest compatible inference engine (possibly the slow one) will
be used.
|
Methods
__eq__
__eq__(
other
)
Class Variables |
allow_slow_inference
|
True
|
disable_categorical_integer_offset_correction
|
False
|
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-04-26 UTC.
[[["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-04-26 UTC."],[],[]]