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

Orthogonal ensemble #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Orthogonal ensemble #113

wants to merge 1 commit into from

Conversation

arvoelke
Copy link
Owner

Should figure out the best way to consolidate this with the RollingWindow use-case. This is most useful as an idea for the time-being: many nonlinear functions can be computed very accurately using orthogonal encoders by the appropriate change-of-basis (the Product network is one example). It would be great to solve for the decoders more efficiently, and have tools for experimenting with changes of basis (or even theory for finding the best basis)!

@arvoelke arvoelke added this to the Wish List milestone May 22, 2017
@arvoelke arvoelke changed the title [WIP] Orthogonal ensemble Orthogonal ensemble May 22, 2017
@arvoelke
Copy link
Owner Author

arvoelke commented Jun 8, 2017

Possible relevant helpers:

class Axes(Distribution):

    def __repr__(self):
        return "%s" % (type(self).__name__)

    def sample(self, n, d=1, rng=np.random):
        I = np.eye(d)
        return Choice(np.vstack([I, -I])).sample(n, d)

class Radii(EvalPoints):

    def sample(self, num=1, d=None, rng=np.random):
        """Samples ``n`` points in ``d`` dimensions."""
        if d is not None:
            raise ValueError("d must be None (change num instead)")
        y = self._sample(num, rng)
        radii = np.max(np.abs(y), axis=0)
        assert radii.shape == (num,) == (self.sys.size_out,)
        return radii```

@arvoelke arvoelke added graveyard Will likely never be addressed or merged and removed enhancement work in progress labels Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graveyard Will likely never be addressed or merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant