BCE Loss unable to locate processed files #141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the error: BCE loss unable to locate the
data.ptfileContext
In #89 (comment), it was agreed to introduce a new method
load_processed_data_from_filethat accepts only a filename as input and loads the corresponding file from theprocesseddirectory.However, this change was missed in #92. As a result, the current implementation of
load_processed_data_from_filerequires the entire file path to be passed in order to load the file. While most of the codebase was updated to use this method (by passing the full path), the loss logic was not updated, leading to inconsistent behavior.As the method name suggests, users should only be required to provide the filename. The method itself should be responsible for constructing the full file path by resolving it relative to the
processeddirectory.