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

SequenceLearner does not fulfill API for data #223

Open
jbweston opened this issue Oct 16, 2019 · 4 comments
Open

SequenceLearner does not fulfill API for data #223

jbweston opened this issue Oct 16, 2019 · 4 comments
Labels

Comments

@jbweston
Copy link
Contributor

The keys in data for the SequenceLearner are not just the points in the domain: they are tuples that also contain some index into the sequence of values.

This does not conform to the API for data which is:

    data : dict: X → Y
        `function` evaluated at certain points.

where X was previously defined to be the domain of the function being learned.

@jbweston jbweston added the bug label Oct 16, 2019
@jbweston
Copy link
Contributor Author

I would recommend holding the indices in a different datastructure if it is really necessary.

@basnijholt
Copy link
Member

What about these changes?

@jbweston
Copy link
Contributor Author

I don't think that that really addresses the issue. If data is a public attribute then it should be something that the user can understand and use, especially because right now it is the only way to access the results of an adaptive run. If every learner decides on its own convention for what to keep in data then this makes adaptive harder to use IMO.

@basnijholt
Copy link
Member

data is just index -> value in the SequenceLearner.

Like we discussed yesterday, it is not possible to make a point -> value dictionary.

Also, learner.result() will return the list of values in the same order as the sequence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants