Unverified Commit 12410686 authored by chicm-ms's avatar chicm-ms Committed by GitHub
Browse files

Merge pull request #20 from microsoft/master

pull code
parents 611a45fc 61fec446
...@@ -109,7 +109,7 @@ interface FinalResult { ...@@ -109,7 +109,7 @@ interface FinalResult {
} }
export { export {
TableObj, Parameters, Experiment, TableObj, Parameters, Experiment,
AccurPoint, TrialNumber, TrialJob, AccurPoint, TrialNumber, TrialJob,
DetailAccurPoint, TooltipForAccuracy, DetailAccurPoint, TooltipForAccuracy,
ParaObj, Dimobj, FinalResult, FinalType, ParaObj, Dimobj, FinalResult, FinalType,
......
...@@ -41,7 +41,7 @@ $bgColor: #f2f2f2; ...@@ -41,7 +41,7 @@ $bgColor: #f2f2f2;
color: #212121; color: #212121;
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
border: none; border: none;
} }
.logcontent{ .logcontent{
height: 100%; height: 100%;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
} }
.overGraph{ .overGraph{
height: 362px; height: 362px;
.accuracy{ .accuracy{
width: 100%; width: 100%;
height: 324px; height: 324px;
......
...@@ -53,7 +53,7 @@ $titleBgcolor: #b3b3b3; ...@@ -53,7 +53,7 @@ $titleBgcolor: #b3b3b3;
.minTitle{ .minTitle{
border-right: 2px solid #fff; border-right: 2px solid #fff;
} }
.title:hover{ .title:hover{
cursor: pointer; cursor: pointer;
} }
......
.parameter{ .parameter{
height: 100%; height: 100%;
} }
.meline{ .meline{
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
.searcHyper{ .searcHyper{
position: relative; position: relative;
margin: 0 19px; margin: 0 19px;
.noneData{ .noneData{
position: absolute; position: absolute;
left: 49%; left: 49%;
top: 2.5%; top: 2.5%;
font-size: 13px; font-size: 13px;
color: #999; color: #999;
} }
} }
/* Intermediate Result Style */ /* Intermediate Result Style */
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
border-top-left-radius: 12px; border-top-left-radius: 12px;
border-bottom-left-radius: 12px; border-bottom-left-radius: 12px;
} }
.showProgress{ .showProgress{
height: 30px; height: 30px;
} }
......
$barHeight: 56px; $barHeight: 56px;
/* drowdown and select default bgcolor */
$drowBgColor: #f2f2f2;
/* drowdown and select hover bgcolor */
$drowHoverBgColor: #e2e2e2;
.nav{ .nav{
list-style: none; list-style: none;
width: 94%; width: 95%;
height: $barHeight; height: $barHeight;
margin: 0 auto; margin: 0 auto;
position: relative;
.tab{ .tab{
font-family: 'Segoe'; font-family: 'Segoe';
line-height: $barHeight; line-height: $barHeight;
...@@ -14,7 +19,7 @@ $barHeight: 56px; ...@@ -14,7 +19,7 @@ $barHeight: 56px;
} }
} }
.firstTab{ .firstTab{
margin: 0 32px; margin: 0 20px;
} }
.logo{ .logo{
margin-top: 2px; margin-top: 2px;
...@@ -28,17 +33,26 @@ $barHeight: 56px; ...@@ -28,17 +33,26 @@ $barHeight: 56px;
} }
.feedback{ .feedback{
text-align: right; position: fixed;
right: 19%;
line-height: $barHeight; line-height: $barHeight;
font-size: 16px; font-size: 16px;
color: #fff; color: #fff;
.fresh{
span{
margin: 0 10px 0 3px;
}
}
.fresh:hover{
cursor: pointer;
}
a{ a{
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
margin-left: 10px; margin-left: 10px;
} }
img{ img{
width: 24px; width: 20px;
margin-right: 8px; margin-right: 8px;
} }
.version{ .version{
...@@ -51,4 +65,66 @@ $barHeight: 56px; ...@@ -51,4 +65,66 @@ $barHeight: 56px;
} }
.dropdown{ .dropdown{
margin-right: 10px; margin-right: 10px;
} /* make dropdown content box position in blue bar bottom */
\ No newline at end of file padding-bottom: 14px;
}
.interval{
position: fixed;
right: 7%;
top: 12px;
.ant-select-selection{
background-color: transparent;
border: none;
color: #fff;
outline: none;
font-size: 16px;
}
.ant-select-arrow{
color: #fff;
}
}
/* set select bgcolor */
.ant-select-dropdown-menu{
background-color: $drowBgColor;
}
.ant-select-dropdown-menu-item:hover{
background-color: $drowHoverBgColor;
}
.ant-select-dropdown-menu-item-active{
background-color: transparent;
}
/* set dropdown bgcolor */
.ant-dropdown{
.ant-dropdown-menu{
padding: 0;
background-color: $drowBgColor;
border-radius: 0;
.ant-dropdown-menu-item:hover{
background-color: $drowHoverBgColor;
}
}
}
/* nav style*/
.little{
width: 100%;
.menu{
.show{
display: block;
}
.hide{
display: none;
}
.more{
color: #fff;
font-size: 24px;
margin-top: 16px;
}
.more:hover{
cursor: pointer;
}
}
.logo{
text-align: center;
}
}
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
/* add the brother selector to increase the priority */ /* add the brother selector to increase the priority */
#succeTable .commonTableStyle, #tableList .commonTableStyle { #succeTable .commonTableStyle, #tableList .commonTableStyle {
tr{ tr{
text-align: center; text-align: center;
color:#212121; color:#212121;
font-family: 'Segoe'; font-family: 'Segoe';
...@@ -43,14 +43,14 @@ ...@@ -43,14 +43,14 @@
border-bottom: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0;
text-align: center; text-align: center;
} }
.ant-table-expanded-row{ .ant-table-expanded-row{
/* background-color: #f2f2f2 */ /* background-color: #f2f2f2 */
background-color: transparent; background-color: transparent;
} }
tr:hover{ tr:hover{
/* cancel antd table default hover style */ /* cancel antd table default hover style */
td{ td{
background-color: transparent; background-color: transparent;
......
...@@ -4,7 +4,7 @@ trialConcurrency: 3 ...@@ -4,7 +4,7 @@ trialConcurrency: 3
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 10 maxTrialNum: 10
#choice: local, remote, pai #choice: local, remote, pai
trainingServicePlatform: remote trainingServicePlatform: remote
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
multiThread: true multiThread: true
......
authorName: nni
experimentName: default_test
maxExecDuration: 5m
maxTrialNum: 4
trialConcurrency: 2
tuner:
codeDir: ../../../examples/tuners/random_nas_tuner
classFileName: random_nas_tuner.py
className: RandomNASTuner
trial:
codeDir: ../../../examples/trials/mnist-nas
command: python3 mnist.py --batch_num 100
gpuNum: 0
useAnnotation: true
multiPhase: false
multiThread: false
trainingServicePlatform: local
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
{ {
"_type" : "choice", "_type" : "choice",
"_value" : [1, 100] "_value" : [1, 100]
} }
} }
\ No newline at end of file
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
{ {
"_type" : "choice", "_type" : "choice",
"_value" : [1, 100] "_value" : [1, 100]
} }
} }
\ No newline at end of file
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
"_value" : [{"optimizer": "Adam", "learning_rate": 0.00001}, "_value" : [{"optimizer": "Adam", "learning_rate": 0.00001},
{"optimizer": "Adam", "learning_rate": 0.0001}, {"optimizer": "Adam", "learning_rate": 0.0001},
{"optimizer": "Adam", "learning_rate": 0.001}, {"optimizer": "Adam", "learning_rate": 0.001},
{"optimizer": "SGD", "learning_rate": 0.01}, {"optimizer": "SGD", "learning_rate": 0.01},
{"optimizer": "SGD", "learning_rate": 0.005}, {"optimizer": "SGD", "learning_rate": 0.005},
{"optimizer": "SGD", "learning_rate": 0.0002}] {"optimizer": "SGD", "learning_rate": 0.0002}]
} }
} }
\ No newline at end of file
...@@ -69,7 +69,7 @@ def get_metric_results(metrics): ...@@ -69,7 +69,7 @@ def get_metric_results(metrics):
elif metric['type'] == 'FINAL': elif metric['type'] == 'FINAL':
final_result.append(metric['data']) final_result.append(metric['data'])
print(intermediate_result, final_result) print(intermediate_result, final_result)
return [round(float(x),6) for x in intermediate_result], [round(float(x), 6) for x in final_result] return [round(float(x),6) for x in intermediate_result], [round(float(x), 6) for x in final_result]
def get_max_values(config_file): def get_max_values(config_file):
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
{ {
"_type" : "choice", "_type" : "choice",
"_value" : [1, 100] "_value" : [1, 100]
} }
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ import nni ...@@ -4,7 +4,7 @@ import nni
if __name__ == '__main__': if __name__ == '__main__':
hyper_params = nni.get_next_parameter() hyper_params = nni.get_next_parameter()
for i in range(10): for i in range(10):
nni.report_intermediate_result(0.1*(i+1)) nni.report_intermediate_result(0.1*(i+1))
time.sleep(2) time.sleep(2)
nni.report_final_result(1.0) nni.report_final_result(1.0)
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
* When the experiment is done, meaning it is successfully done in this case, `Experiment done` can be detected in the nni_manager.log file. * When the experiment is done, meaning it is successfully done in this case, `Experiment done` can be detected in the nni_manager.log file.
## Issues ## Issues
* Private APIs are used to detect whether tuner and assessor have terminated successfully. * Private APIs are used to detect whether tuner and assessor have terminated successfully.
* The output of REST server is not tested. * The output of REST server is not tested.
* Remote machine training service is not tested. * Remote machine training service is not tested.
\ No newline at end of file
...@@ -55,6 +55,10 @@ jobs: ...@@ -55,6 +55,10 @@ jobs:
python --version python --version
powershell.exe -file install.ps1 powershell.exe -file install.ps1
displayName: 'Install nni toolkit via source code' displayName: 'Install nni toolkit via source code'
- script: |
set PATH=$(ENV_PATH)
python -m pip install scikit-learn==0.21.0 --user
displayName: 'Install dependencies for integration tests'
- script: | - script: |
cd test cd test
set PATH=$(ENV_PATH) set PATH=$(ENV_PATH)
......
...@@ -47,3 +47,9 @@ jobs: ...@@ -47,3 +47,9 @@ jobs:
runOptions: commands runOptions: commands
commands: python3 /tmp/nnitest/$(Build.BuildId)/nni-remote/test/remote_docker.py --mode stop --name $(Build.BuildId) --os windows commands: python3 /tmp/nnitest/$(Build.BuildId)/nni-remote/test/remote_docker.py --mode stop --name $(Build.BuildId) --os windows
displayName: 'Stop docker' displayName: 'Stop docker'
- task: SSH@0
inputs:
sshEndpoint: $(end_point)
runOptions: commands
commands: sudo rm -rf /tmp/nnitest/$(Build.BuildId)
displayName: 'Clean the remote files'
...@@ -62,7 +62,7 @@ def start_container(image, name, nnimanager_os): ...@@ -62,7 +62,7 @@ def start_container(image, name, nnimanager_os):
file.write(str(port)) file.write(str(port))
def stop_container(name): def stop_container(name):
'''Stop docker container''' '''Stop docker container'''
stop_cmds = ['docker', 'container', 'stop', name] stop_cmds = ['docker', 'container', 'stop', name]
check_call(stop_cmds) check_call(stop_cmds)
rm_cmds = ['docker', 'container', 'rm', name] rm_cmds = ['docker', 'container', 'rm', name]
......
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