-
Notifications
You must be signed in to change notification settings - Fork 73
Refactor code #97
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
Refactor code #97
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
3b67cc4
refactoring
LyndonFan 2907471
remove global
LyndonFan 7c6db21
refactor
LyndonFan 3cbc5a6
fix typo
LyndonFan 0b44688
refactor?
LyndonFan 786acb4
refactor
LyndonFan 6fc17ef
refactor
LyndonFan 3509b1d
refactor?
LyndonFan 4693362
refactor?
LyndonFan 0da8414
Revert "refactor?"
LyndonFan 5194413
undo unecessary change
LyndonFan 778f3c0
refactor load_data?
LyndonFan a88cac0
refactor load_data?
LyndonFan 982c0f6
undo mistake
LyndonFan 53011f3
undo pbar
LyndonFan 9b04139
rewrite urlretrieve w/o urllib
LyndonFan 3d4f945
Revert "rewrite urlretrieve w/o urllib"
LyndonFan f07e97e
Reapply "rewrite urlretrieve w/o urllib"
LyndonFan 58e93a0
fix bug
LyndonFan d258536
Revert "rewrite urlretrieve w/o urllib"
LyndonFan f10e261
fix bug
LyndonFan 95a34c1
Reapply "rewrite urlretrieve w/o urllib"
LyndonFan 52c39cf
rewrite urlretrieve w/o urllib
LyndonFan 959e053
Merge branch 'master' of https://github.com/LyndonFan/scikit-learn_bench
LyndonFan 5f8f8af
undo refactoring
LyndonFan 4f33ef7
add requests to requirements
LyndonFan 4f3db1c
add requests as requirement
LyndonFan e684643
fix line too long
LyndonFan bad15ad
attempt to fix mypy error
LyndonFan c3d70e0
add mising params
LyndonFan f081a0c
autopep8 fix
LyndonFan f0f7dac
fix wrong indentation lvl
LyndonFan 51ed719
pep8 fixes?
LyndonFan 38a5355
undo if return None change
LyndonFan 3e875d1
not use getattr for daal4py
LyndonFan 0d744d4
debugging for tsne
LyndonFan c2139cb
undo logging for tsne
LyndonFan b8a162c
ignore daal4py warning
LyndonFan f265af3
fix typo
LyndonFan 182b256
suppress FutureWarning
LyndonFan 6fb61f2
ignore daal4py warning
LyndonFan f442be8
pep8 fix
LyndonFan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
variables: | ||
- name: python.version | ||
value: '3.8' | ||
value: "3.8" | ||
|
||
jobs: | ||
- job: Linux_Sklearn | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python $(python.version)' | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
- script: | | ||
pip install -r sklearn_bench/requirements.txt | ||
python runner.py --configs configs/testing/sklearn.json | ||
displayName: Run bench | ||
- job: Linux_XGBoost | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python $(python.version)' | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
- script: | | ||
pip install -r xgboost_bench/requirements.txt | ||
python runner.py --configs configs/testing/xgboost.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Linux_daal4py | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python $(python.version)' | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
- script: | | ||
pip install -r daal4py_bench/requirements.txt | ||
python runner.py --configs configs/testing/daal4py.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Linux_XGBoost_and_daal4py | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- script: | | ||
conda update -y -q conda | ||
conda create -n bench -q -y -c conda-forge python=3.7 pandas xgboost scikit-learn daal4py tqdm | ||
displayName: Create Anaconda environment | ||
- script: | | ||
. /usr/share/miniconda/etc/profile.d/conda.sh | ||
conda activate bench | ||
python runner.py --configs configs/testing/daal4py_xgboost.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Pep8 | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
addToPath: true | ||
- script: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install flake8 | ||
flake8 --max-line-length=100 --count | ||
displayName: 'PEP 8 check' | ||
- job: Mypy | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
addToPath: true | ||
- script: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install mypy data-science-types | ||
mypy . --ignore-missing-imports | ||
displayName: 'mypy check' | ||
- job: Linux_Sklearn | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: "Use Python $(python.version)" | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
- script: | | ||
pip install -r sklearn_bench/requirements.txt | ||
python runner.py --configs configs/testing/sklearn.json | ||
displayName: Run bench | ||
- job: Linux_XGBoost | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: "Use Python $(python.version)" | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
- script: | | ||
pip install -r xgboost_bench/requirements.txt | ||
python runner.py --configs configs/testing/xgboost.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Linux_daal4py | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: "Use Python $(python.version)" | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
- script: | | ||
pip install -r daal4py_bench/requirements.txt | ||
python runner.py --configs configs/testing/daal4py.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Linux_XGBoost_and_daal4py | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- script: | | ||
conda update -y -q conda | ||
conda create -n bench -q -y -c conda-forge python=3.7 pandas xgboost scikit-learn daal4py tqdm requests | ||
displayName: Create Anaconda environment | ||
- script: | | ||
. /usr/share/miniconda/etc/profile.d/conda.sh | ||
conda activate bench | ||
python runner.py --configs configs/testing/daal4py_xgboost.json --no-intel-optimized | ||
displayName: Run bench | ||
- job: Pep8 | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
addToPath: true | ||
- script: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install flake8 requests | ||
flake8 --max-line-length=100 --count | ||
displayName: "PEP 8 check" | ||
- job: Mypy | ||
pool: | ||
vmImage: "ubuntu-20.04" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
addToPath: true | ||
- script: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install mypy data-science-types requests types-requests | ||
mypy . --ignore-missing-imports | ||
displayName: "mypy check" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pandas < 1.3.0 | |
daal4py | ||
openpyxl | ||
tqdm | ||
requests | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pandas | |
scikit-learn-intelex | ||
openpyxl | ||
tqdm | ||
requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pandas | |
xgboost | ||
openpyxl | ||
tqdm | ||
requests |
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.
Uh oh!
There was an error while loading. Please reload this page.