d3rlpy.preprocessing.PixelScaler¶
-
class
d3rlpy.preprocessing.
PixelScaler
[source]¶ Pixel normalization preprocessing.
\[x' = x / 255\]from d3rlpy.dataset import MDPDataset from d3rlpy.algos import CQL dataset = MDPDataset(observations, actions, rewards, terminals) # initialize algorithm with PixelScaler cql = CQL(scaler='pixel') cql.fit(dataset.episodes)
Methods
-
get_params
()[source]¶ Returns scaling parameters.
PixelScaler returns empty dictiornary.
Returns: empty dictionary. Return type: dict
-