I’d like to create a scalar encoder with a custom value for w and n.
The doc and scalar.py seem to indicate that this should be trivial to do, but the approach I’m taking isn’t working.
I have created a swarm_description.py file along the lines of the one used in the hot gym example.
Within it, one of the blocks looks like:
Hi Phil. The reason this isn’t working as you expect is because you’re trying to run a swarm, which does not allow you to input your own encoder configuration. The whole point of a swarm is to automatically identify the best set of encoder params for the sample input data you give it. It will return you model parameters that include a configuration for a scalar encoder. If, at that point, you want to change the w and n values, you can simply change the model parameters it returns to you before creating a model with it.
For a complete example of this (albeit a bit old), see this tutorial: