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
Feature elements/vectors should only be accessed via iteratiors #3785
Comments
@lisitsyn @karlnapf is this fixed? |
@bhavukkalra it's not fixed in the whole codebase. you can |
Yup, I found them. |
i'm not so sure what you are looking for. there's an api description of DotIterator as well as if you have found where it is being used you'll see how that api is actually being used in a working code |
shogun/src/shogun/features/iterators/DotIterator.h |
Algorithm code should never explicitly touch feature vectors/strings etc. Instead it should use an API for doing operation on iterators (that support various ways of accessing data)
The main idea is that rather than doing
we do
See https://gist.github.com/lisitsyn/a6d8ff6e8690431f967c5318c3750919 for more details.
This task is to
get_feature_vector(index_t)
or otherwiseMake sure to extensively talk to @lisitsyn when doing this
The text was updated successfully, but these errors were encountered: