David Glavas
David Glavas
I'm trying to perform the following 3 operations: - serialize a plaintext json document (plaintext json -> msgpack) - access values in the msgpack document - deserialize a msgpack document...
In models.py: - change line ~67 to: `obs_traj_embedding = self.spatial_embedding(obs_traj.contiguous().view(-1, 2))` - change line ~221 to: `curr_hidden = h_states.contiguous().view(-1, self.h_dim)[start:end]` This resolved the issue for me.
Related issue: https://github.com/agrimgupta92/sgan/issues/60
@tgregg Thank you for the links. In the cookbook there is a "Migrating JSON data to Ion" section which sounds like what I'm looking for (convert plaintext JSON files to...
@tgregg > There is no need to convert to Ion first before using Ion readers to parse the data. If I pass the JSON text to the ion reader then...
@tgregg Thank you I will try it out. Your example would be what I call "Serialization" (turning a plaintext JSON document into the binary representation). Now for the accesses, is...
@tgregg Nice, thank you. I'll try using the tests. It would be really useful to have such an example in the cookbook where for a given JSON string it is...
Suggestion: ``` price = 1650; bedrooms = 3; example = [1, (price-mu(1))/sigma(1), (bedrooms-mu(2))/sigma(2)]; % feature scaling price = example*theta; % (You should change this) -> changed it. ```