Skip to content

bug: state randomness (test time) #3

Description

@zuoxingdong

('feature_jitter', FeatureWiseJitter( # tiny jitter to smooth quantile estimation
scale_factor=0.1,
distribution='uniform',
random_state=DEFAULT_SEED,
copy=True,
)),
('quantile', QuantileTransformer(
output_distribution='normal',
n_quantiles=100_000, # HACK: critical to be sufficiently large otherwise performance degrades
subsample=None, # Use all data points
random_state=DEFAULT_SEED,
)),
],
verbose=True,
)
logger.info("Setting up action scaler for policy type '%s'.", cfg.policy_type)
if cfg.policy_type == "tanh_normal":
action_scaler = Pipeline(
steps=[
("clip", ClipTransformer(min_value=0.1, max_value=None)),
("winsor", WinsorizerTransformer(quantile_range=(0.005, 0.995))),
(
"feature_jitter",
FeatureWiseJitter(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions