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

(Additional) Better reference data #5

Open
constantinpape opened this issue Feb 20, 2019 · 3 comments
Open

(Additional) Better reference data #5

constantinpape opened this issue Feb 20, 2019 · 3 comments

Comments

@constantinpape
Copy link
Collaborator

We are currently using this image as test data.
It might be a good idea to add some more complex data with maybe more dimensions and irregular shapes.

@jakirkham
Copy link
Member

Maybe this would work. The height and width are different. It also contains an RGB channel, which may make it a bit more interesting. Plus it's pretty easy to check if it is orientated correctly.

@constantinpape
Copy link
Collaborator Author

I like the suggestion.
I will change it in the next few days.

@joshmoore
Copy link
Member

An additional option would be to fairly small synethic arrays with some algorithm to decide whether or not each cell is correct:

import itertools
primes = [2, 3, 5, 7, 11]
shape = [5, 5, 5, 5, 5]

assert len(shape) <= len(primes)

for idx in itertools.product(*[range(s) for s in shape]):
    total = 1
    for prime, power in enumerate(idx):
        total *= (primes[prime]) ** (power+1)
    print(total)

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

3 participants