Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Added TabularRegressionData extending TabularData #574

Conversation

sumanmichael
Copy link
Contributor

What does this PR do?

Created TabularRegressionData DataModule

TabularRegressionData has a lot common with TabularData in tabular/classification/data.py.
Here's what I did.

  • moved tabular/classification/data.py -> tabular/data.py
  • created TabularClassificationData in new tabular/classification/data.py & TabularRegressionData in new tabular/regression/data.py extending the TabularData in tabular/data.py by fixing the respective is_regression bool param.
  • changed required __ init __.py files

Fixes #527

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests? [not needed for typos/docs]
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Jul 13, 2021

Codecov Report

Merging #574 (68df0ea) into master (f7a86ea) will increase coverage by 0.02%.
The diff coverage is 94.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #574      +/-   ##
==========================================
+ Coverage   91.25%   91.27%   +0.02%     
==========================================
  Files         114      117       +3     
  Lines        7224     7234      +10     
==========================================
+ Hits         6592     6603      +11     
+ Misses        632      631       -1     
Flag Coverage Δ
gpu ?
pytest ?
unittests 91.27% <94.04%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
flash/tabular/data.py 93.63% <93.63%> (ø)
flash/tabular/__init__.py 100.00% <100.00%> (ø)
flash/tabular/classification/__init__.py 100.00% <100.00%> (ø)
flash/tabular/classification/data.py 100.00% <100.00%> (+6.41%) ⬆️
flash/tabular/regression/__init__.py 100.00% <100.00%> (ø)
flash/tabular/regression/data.py 100.00% <100.00%> (ø)
flash/core/model.py 86.17% <0.00%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7a86ea...68df0ea. Read the comment docs.

flash/tabular/regression/data.py Outdated Show resolved Hide resolved
flash/tabular/data.py Show resolved Hide resolved
flash/tabular/classification/data.py Show resolved Hide resolved
flash/tabular/regression/data.py Outdated Show resolved Hide resolved
@pep8speaks
Copy link

pep8speaks commented Jul 13, 2021

Hello @sumanmichael! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-07-13 12:01:19 UTC

@sumanmichael sumanmichael marked this pull request as draft July 13, 2021 11:06
@ethanwharris ethanwharris marked this pull request as ready for review July 13, 2021 12:35
@ethanwharris ethanwharris changed the title [WIP] added TabularRegressionData extending TabularData Added TabularRegressionData extending TabularData Jul 13, 2021
Copy link
Collaborator

@ethanwharris ethanwharris left a comment

Choose a reason for hiding this comment

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

Awesome, LGTM 😃

@ethanwharris ethanwharris merged commit c318e4a into Lightning-Universe:master Jul 13, 2021
sumanmichael added a commit to sumanmichael/lightning-flash that referenced this pull request Aug 10, 2021
ananyahjha93 pushed a commit that referenced this pull request Oct 29, 2021
* Revert "Added TabularRegressionData extending TabularData (#574)"

This reverts commit c318e4a

* added DataModule, PreProcess, DataSource for TabularForecasting

* added TABULAR_FORECASTING_BACKBONES

* [WIP] added model.py in tabular forecasting

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updates

* Updates

* Try fix

* Updates

* Rename to TabularClassificationData

* Updates

* Fix embedding sizes

* Fixes and add example

* Updates

* Switch to an adapter

* Small fixes

* Add inference error

* Add inference and refactor

* Add interpertation example

* Fix broken tests

* Small fixes and add some tests

* Updates

* Update CHANGELOG.md

* Add provider

* Update flash/core/integrations/pytorch_forecasting/adapter.py

Co-authored-by: Jirka Borovec <[email protected]>

* Update flash/core/integrations/pytorch_forecasting/adapter.py

Co-authored-by: Jirka Borovec <[email protected]>

* Update on comments

Co-authored-by: Ethan Harris <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ethan Harris <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create TabularRegressionData DataModule
4 participants