We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_reset_index
SafeDataset._reset_index is defined as follows:
def _reset_index(self): """Resets the safe and unsafe samples indices.""" self._safe_indices = self._unsafe_indices = []
I believe this has a bug, as after calling this function _safe_indices and _unsafe_indices will both point to the same underlying list in memory.
Compare:
>> a = [] >> b = [] >> a.append(2) >> print(b) [] --> expected!
with
>> a = b = [] >> a.append(2) >> print(b) [2] --> unexpected!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SafeDataset._reset_index is defined as follows:
I believe this has a bug, as after calling this function _safe_indices and _unsafe_indices will both point to the same underlying list in memory.
Compare:
with
The text was updated successfully, but these errors were encountered: