Skip to content

Correct modin samples #768

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

Merged
merged 12 commits into from
Mar 4, 2022
Merged

Conversation

amyskov
Copy link
Contributor

@amyskov amyskov commented Nov 24, 2021

Existing Sample Changes

Description

This PR corrects Modin related samples. Changes are next:

  1. Change config setting technique for more appropriate for python file.
  2. Specify config settings for newer Modin versions (since 0.12.0 version config for OmniSci enabling was changed).
  3. Remove compression parameter from read_csv function (csv file compression is inferred automatically and explicit notion of compression parameter causes "default-to-pandas" behavior and performance degradation).
  4. Remove nrows parameter from read_csv function to avoid "default-to-pandas" behavior (nrows parameter is not supported yet in Modin with OmniSci backend).
  5. DataFrame.query function calls replaced with equivalents to avoid "default-to-pandas" behavior and avoid performance degradation (DataFrame.query is not supported yet in Modin with OmniSci backend).
  6. Alternative installation guidance was fixed, sample.json file was set similarly to MODIN: fix getting started samples testing in CI #863 change.
  7. Warnings were disabled to avoid unneeded output cluttering.
  8. Fixed minor typos.

External Dependencies

List any external dependencies created as a result of this change.

Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Implement fixes for ONSAM Jiras

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Command Line
  • oneapi-cli
  • Visual Studio
  • Eclipse IDE
  • VSCode
  • When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

@amyskov
Copy link
Contributor Author

amyskov commented Nov 24, 2021

Hi @JoeOster ! Could you take a look on this and on the #769 PRs?

@praveenkk123
Copy link
Contributor

Please submit to development branch but not the master branch

@amyskov amyskov changed the base branch from master to development November 25, 2021 09:52
@amyskov
Copy link
Contributor Author

amyskov commented Nov 25, 2021

Please submit to development branch but not the master branch

@praveenkk123 target branch was changed.

praveenkk123
praveenkk123 previously approved these changes Nov 29, 2021
Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

Copy link
Contributor

@raoberman raoberman left a comment

Choose a reason for hiding this comment

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

@amyskov can you also ensure that the conda install commands are correct for the README of the sample? conda install modin should be good i believe .

https://github.com/oneapi-src/oneAPI-samples/blob/master/AI-and-Analytics/Getting-Started-Samples/IntelModin_GettingStarted/README.md

@raoberman
Copy link
Contributor

@louie-tsai @praveenkk123 please approve for 2022.1 since the change for census is important (after README edit i requested as conda install command currently listed is not latest)

@amyskov
Copy link
Contributor Author

amyskov commented Dec 1, 2021

@amyskov can you also ensure that the conda install commands are correct for the README of the sample? conda install modin should be good i believe .

https://github.com/oneapi-src/oneAPI-samples/blob/master/AI-and-Analytics/Getting-Started-Samples/IntelModin_GettingStarted/README.md

@raoberman verified conda install command was added.

@amyskov
Copy link
Contributor Author

amyskov commented Dec 6, 2021

Additional changes:

  • nrows parameter was removed from read_csv function to avoid "default-to-pandas" behavior (nrows parameter is not supported yet in Modin with OmniSci backend).
  • Warnings were disabled to avoid unneeded output cluttering.

@mdbtucker mdbtucker force-pushed the development branch 2 times, most recently from f414747 to bf3bcbc Compare December 10, 2021 11:12
@raoberman
Copy link
Contributor

@amyskov please re-submit this PR to the master branch. See Praveen and I's email for info

@amyskov amyskov changed the base branch from development to master January 19, 2022 11:16
@amyskov amyskov dismissed praveenkk123’s stale review January 19, 2022 11:16

The base branch was changed.

Signed-off-by: Alexander Myskov <[email protected]>
Signed-off-by: Alexander Myskov <[email protected]>
Signed-off-by: Alexander Myskov <[email protected]>
Signed-off-by: Alexander Myskov <[email protected]>
Signed-off-by: Alexander Myskov <[email protected]>
@amyskov amyskov force-pushed the correct_modin_samples branch 3 times, most recently from 068b416 to 8833db6 Compare January 19, 2022 12:28
@amyskov amyskov force-pushed the correct_modin_samples branch from 8833db6 to 68ff984 Compare January 19, 2022 12:45
@amyskov
Copy link
Contributor Author

amyskov commented Jan 19, 2022

@amyskov please re-submit this PR to the master branch. See Praveen and I's email for info

@raoberman PR was re-summited and rebased.

@amyskov
Copy link
Contributor Author

amyskov commented Jan 19, 2022

Additionally Modin configuration (engine setting) now depends on it's version (since 0.12.0 version config for OmniSci enabling was changed).

praveenkk123
praveenkk123 previously approved these changes Jan 20, 2022
Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

Signed-off-by: Alexander Myskov <[email protected]>
Signed-off-by: Alexander Myskov <[email protected]>
@amyskov
Copy link
Contributor Author

amyskov commented Jan 21, 2022

Modin configurations were changed to avoid triggering modin-project/modin#4017 issue. Also installation instructions were slightly modified to speed-up packages installation.

@praveenkk123 praveenkk123 self-requested a review January 21, 2022 18:42
praveenkk123
praveenkk123 previously approved these changes Jan 21, 2022
@amyskov
Copy link
Contributor Author

amyskov commented Jan 24, 2022

Hi @praveenkk123!
For some reason Samples validation (Linux) test failed with strange output, while if i run steps commands from sample.json file tests passes (as i understood this file contains CI settings). Can you please provide me with instructions to reproduce CI fail? Or maybe you can give me some suggestions how i can tune CI to pass tests?

@dchigarev
Copy link
Contributor

@amyskov please rebase on the current master, we recently merged #863 that should fix CI testing

praveenkk123
praveenkk123 previously approved these changes Feb 17, 2022
Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

Signed-off-by: Alexander Myskov <[email protected]>
@amyskov
Copy link
Contributor Author

amyskov commented Feb 18, 2022

@praveenkk123 Census sample CI config was changed as well, but jupyter nbconvert was used instead of runipy because of hardcoded timeout value in runipy (see jupyter/jupyter_client#197 for details), that raised error during long IO step execution. Can you, please, restart the CI?

Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

praveenkk123
praveenkk123 previously approved these changes Mar 2, 2022
Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

Signed-off-by: Alexander Myskov <[email protected]>
@amyskov
Copy link
Contributor Author

amyskov commented Mar 3, 2022

@praveenkk123 merge conflict was fixed, could you please restart the CI?

Copy link
Contributor

@praveenkk123 praveenkk123 left a comment

Choose a reason for hiding this comment

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

Approve for CI

@praveenkk123
Copy link
Contributor

All tests passed. Can I merge this?

@amyskov
Copy link
Contributor Author

amyskov commented Mar 4, 2022

All tests passed. Can I merge this?

Yes, sure.

@praveenkk123 praveenkk123 merged commit 8844f27 into oneapi-src:master Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants