tf_agents.specs.distribution_spec.DistributionSpec
Stay organized with collections
Save and categorize content based on your preferences.
Describes a tfp.distribution.Distribution.
tf_agents.specs.distribution_spec.DistributionSpec(
builder, input_params_spec, sample_spec, **distribution_parameters
)
Args |
builder
|
Callable function(params) which returns a Distribution
following the spec.
|
input_params_spec
|
Nest of tensor_specs describing the tensor parameters
required for building the described distribution.
|
sample_spec
|
Data type of the output samples of the described
distribution.
|
**distribution_parameters <a id="distribution_parameters">
|
Extra parameters for building the distribution.
|
Attributes |
builder
|
Returns the distribution_builder of the spec.
|
distribution_parameters
|
Returns the distribution_parameters of the spec.
|
input_params_spec
|
Returns the input_params_spec of the spec.
|
sample_spec
|
Returns the sample_spec of the spec.
|
Methods
build_distribution
View source
build_distribution(
**distribution_parameters
)
Creates an instance of the described distribution.
The spec's paramers are updated with the given ones.
Args:
**distribution_parameters: Kwargs update the spec's distribution
parameters.
Returns |
Distribution instance.
|
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."],[],[]]