Unverified Commit 2a8b0f6f authored by J-shang's avatar J-shang Committed by GitHub
Browse files

add it case: user installed builtin tuner (#2859)


Co-authored-by: default avatarNing Shang <nishang@microsoft.com>
parent 3bc81041
authorName: nni
experimentName: default_test
maxExecDuration: 5m
maxTrialNum: 4
trialConcurrency: 2
searchSpacePath: ../../../examples/trials/sklearn/classification/search_space.json
tuner:
builtinTunerName: demotuner
assessor:
builtinAssessorName: Medianstop
classArgs:
optimize_mode: maximize
trial:
codeDir: ../../../examples/trials/sklearn/classification
command: python3 main.py
gpuNum: 0
useAnnotation: false
multiPhase: false
multiThread: false
trainingServicePlatform: local
...@@ -242,3 +242,9 @@ testCases: ...@@ -242,3 +242,9 @@ testCases:
- name: tuner-metis - name: tuner-metis
configFile: test/config/tuners/metis.yml configFile: test/config/tuners/metis.yml
#########################################################################
# nni customized-tuners test
#########################################################################
- name: customized-tuners-demotuner
configFile: test/config/customized_tuners/demotuner-sklearn-classification.yml
...@@ -32,6 +32,13 @@ jobs: ...@@ -32,6 +32,13 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
displayName: 'Install dependencies for integration tests in frameworkcontroller mode' displayName: 'Install dependencies for integration tests in frameworkcontroller mode'
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
set -e set -e
......
...@@ -32,6 +32,13 @@ jobs: ...@@ -32,6 +32,13 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
displayName: 'Install dependencies for integration tests in Kubeflow mode' displayName: 'Install dependencies for integration tests in Kubeflow mode'
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
set -e set -e
if [ $(build_docker_img) = 'true' ] if [ $(build_docker_img) = 'true' ]
......
...@@ -13,6 +13,11 @@ jobs: ...@@ -13,6 +13,11 @@ jobs:
python -m pip install tensorflow-gpu==1.15.2 tensorflow-estimator==1.15.1 --force --user python -m pip install tensorflow-gpu==1.15.2 tensorflow-estimator==1.15.1 --force --user
nnictl package install --name=PPOTuner nnictl package install --name=PPOTuner
displayName: 'Install dependencies for integration tests' displayName: 'Install dependencies for integration tests'
- script: |
cd examples/tuners/customized_tuner
python setup.py develop --user
nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
cd test cd test
powershell.exe -file scripts/unittest.ps1 powershell.exe -file scripts/unittest.ps1
......
...@@ -21,6 +21,12 @@ jobs: ...@@ -21,6 +21,12 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
PATH=$HOME/.local/bin:$PATH nnictl package install --name=PPOTuner PATH=$HOME/.local/bin:$PATH nnictl package install --name=PPOTuner
displayName: 'Install dependencies for integration tests' displayName: 'Install dependencies for integration tests'
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
cd test cd test
source scripts/unittest.sh source scripts/unittest.sh
......
...@@ -64,6 +64,12 @@ jobs: ...@@ -64,6 +64,12 @@ jobs:
set PATH=$(ENV_PATH) set PATH=$(ENV_PATH)
python -m pip install scikit-learn==0.23.2 --user python -m pip install scikit-learn==0.23.2 --user
displayName: 'Install dependencies for integration tests' displayName: 'Install dependencies for integration tests'
- script: |
set PATH=$(ENV_PATH)
cd examples/tuners/customized_tuner
python setup.py develop --user
nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
cd test cd test
set PATH=$(ENV_PATH) set PATH=$(ENV_PATH)
......
...@@ -33,6 +33,13 @@ jobs: ...@@ -33,6 +33,13 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
displayName: 'Install dependencies for integration tests in PAI mode' displayName: 'Install dependencies for integration tests in PAI mode'
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
set -e set -e
if [ $(build_docker_img) = 'true' ] if [ $(build_docker_img) = 'true' ]
......
...@@ -21,6 +21,12 @@ jobs: ...@@ -21,6 +21,12 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
displayName: 'Install dependencies for integration tests in remote mode' displayName: 'Install dependencies for integration tests in remote mode'
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- task: CopyFilesOverSSH@0 - task: CopyFilesOverSSH@0
inputs: inputs:
sshEndpoint: $(end_point) sshEndpoint: $(end_point)
......
...@@ -32,6 +32,12 @@ jobs: ...@@ -32,6 +32,12 @@ jobs:
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
displayName: "Install dependencies for integration tests in remote mode" displayName: "Install dependencies for integration tests in remote mode"
- script: |
set -e
cd examples/tuners/customized_tuner
python3 setup.py develop --user
PATH=$HOME/.local/bin:$PATH nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- script: | - script: |
set -e set -e
cd test cd test
......
...@@ -18,6 +18,11 @@ jobs: ...@@ -18,6 +18,11 @@ jobs:
- script: | - script: |
python -m pip install scikit-learn==0.23.2 --user python -m pip install scikit-learn==0.23.2 --user
displayName: 'Install dependencies for integration tests' displayName: 'Install dependencies for integration tests'
- script: |
cd examples/tuners/customized_tuner
python setup.py develop --user
nnictl package install ./
displayName: 'Install demotuner for customized_tuner test'
- task: SSH@0 - task: SSH@0
inputs: inputs:
sshEndpoint: $(end_point) sshEndpoint: $(end_point)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment