Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder/Decoder - 2d function regression #3

Open
l8git opened this issue Jan 27, 2021 · 1 comment
Open

Encoder/Decoder - 2d function regression #3

l8git opened this issue Jan 27, 2021 · 1 comment
Assignees
Labels
bug 🐛 Something isn't working

Comments

@l8git
Copy link
Collaborator

l8git commented Jan 27, 2021

The 2d x_value generation works for the generation of train_data, but not for test_data (still 1d).

image

@l8git l8git added the bug 🐛 Something isn't working label Jan 27, 2021
@l8git l8git self-assigned this Jan 27, 2021
@l8git
Copy link
Collaborator Author

l8git commented Jan 27, 2021

The issue is coming from the Colab notebook, since the data generation is designed for 1d regression. In particular,
it arises from:

def generate_curves(self):

      num_context = tf.random_uniform(shape=[], minval=3, maxval=self._max_num_context, dtype=tf.int32)

      if self._testing:
        num_target = 400
        num_total_points = num_target
        x_values = tf.tile(
            tf.expand_dims(tf.range(-2., 2., 1. / 100, dtype=tf.float32), axis=0),
            [self._batch_size, 1])
        x_values = tf.expand_dims(x_values, axis=-1)

For 2d regression (MNIST) adaptions are necessary. For the encoder we have to make sure that it's accepting dynamic inputs in terms of dimensionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant