feat: Adapt load_dataset() to 3W Dataset 2.0.0 #125
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.
Adapt
load_dataset()
to 3W Dataset 2.0.0This pull request adapts the
load_dataset()
function intoolkit/base.py
to be compatible with the 3W Dataset 2.0.0. The new function, now namedload_3w_dataset()
, correctly handles the folder structure and different data types (real, simulated, and imputed) of the 3W Dataset 2.0.0Changes made:
load_dataset()
withload_3w_dataset()
: The oldload_dataset()
function was replaced with the newload_3w_dataset()
function, which is designed to handle the 3W Dataset 2.0.0data_type
parameter.README.md
file was updated to include information about the new function and how to use it.problems/01_binary_classifier_of_spurious_closure_of_dhsv/_baseline/main.ipynb
was updated to use the new function.Example usage in
problems/01_binary_classifier_of_spurious_closure_of_dhsv/_baseline/main.ipynb
:Benefits:
This contribution enhances the 3W Toolkit by enabling the use of the 3W Dataset 2.0.0, which provides more data and new types of events for analysis and experimentation.
By creating this pull request, I confirm that I have read and fully accept and agree with one of the Petrobras' Contributor License Agreements (CLAs):
Our CLAs are based on the Apache Software Foundation's CLAs: