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

add seed number to seed point. #38

Open
SamTov opened this issue Jun 30, 2022 · 0 comments
Open

add seed number to seed point. #38

SamTov opened this issue Jun 30, 2022 · 0 comments

Comments

@SamTov
Copy link
Member

SamTov commented Jun 30, 2022

If a seed point is given, no seed number is computed leading to an error.

def _seed_process(self, visualize: bool):
        """
        Seed an RND process.

        Parameters
        ----------
        visualize : bool
                if true, visualization is performed on the data. This parameter is
                populated by the build_dataset method.

        Returns
        -------
        Initializes an RND process.
        """
        if self.seed_point:
            seed_point = self.seed_point
        else:
            # seed_point = self.fetch_data(1)
            seed_number = onp.random.randint(0, len(self.generator))
            seed_point = self.generator.take_index(seed_number)

        self._update_target_set(np.array(seed_point))
        self._retrain_network()
        self.target_indices.append(seed_number)
        if visualize:
            self.update_visualization(reference=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant