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

Fix encoded values map attribute #105

Merged
merged 9 commits into from
Dec 21, 2020

Conversation

lorenz-gorini
Copy link
Member

@lorenz-gorini lorenz-gorini commented Dec 10, 2020

  • Add extra padding to the first and last bin. This is to include possible future/test set sample values.
  • Fixed the self.encoded_values_map initialization
  • Replaced logger instantiations with unique root Logger instance. This avoids the creation of multiple logging instances for each module. (see issue Create a custom Logger instance instead of using root one #104 for a possible future improvement of this)
  • Replaced few print calls with logging.info

This is to include possible future/test set sample values.
Refactored docstring
The unique logger is 'root' logging instance.
This avoids the creation of multiple logging instances for each module
For future reference we could create a custom logger with the same name
and this custom logger is called with the same name by each module
Copy link
Contributor

@alessiamarcolini alessiamarcolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments

src/trousse/feature_fix.py Outdated Show resolved Hide resolved
src/trousse/feature_fix.py Outdated Show resolved Hide resolved
src/trousse/feature_fix.py Outdated Show resolved Hide resolved
src/trousse/feature_fix.py Outdated Show resolved Hide resolved
src/trousse/feature_fix.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Dec 10, 2020

This pull request introduces 1 alert when merging 94d4f43 into 82871fe - view on LGTM.com

new alerts:

  • 1 for Wrong number of arguments in a call

The changes should make the code flow more readable
@alessiamarcolini
Copy link
Contributor

-1.2% coverage is too much (we have the threshold set at -1%).. can you test something at least? 🙏🏽

@lgtm-com
Copy link

lgtm-com bot commented Dec 10, 2020

This pull request introduces 1 alert when merging 9b7c600 into 82871fe - view on LGTM.com

new alerts:

  • 1 for Wrong number of arguments in a call

@alessiamarcolini alessiamarcolini merged commit 508aeed into stable Dec 21, 2020
@alessiamarcolini alessiamarcolini deleted the fix-encoded-values-map-attribute branch December 21, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants