Skip to content

Commit

Permalink
[Fit API] improve event handlers (apache#14685)
Browse files Browse the repository at this point in the history
* improve event handlers

* update tests

* passing weakref of estimator

* fix unit test

* fix test

* fix pylint

* fix test

* fix pylint

* move default metric logic

* combine nightly tests
  • Loading branch information
roywei committed May 15, 2019
1 parent 1260288 commit fdd9aa7
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 338 deletions.
18 changes: 3 additions & 15 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1350,31 +1350,19 @@ nightly_scala_demo_test_cpu() {
bash bin/run_im.sh
}

nightly_estimator_cnn_gpu() {
nightly_estimator_gpu() {
set -ex
cd /work/mxnet/tests/nightly/estimator
export PYTHONPATH=/work/mxnet/python/
python test_estimator_cnn.py --type gpu
}

nightly_estimator_cnn_cpu() {
set -ex
cd /work/mxnet/tests/nightly/estimator
export PYTHONPATH=/work/mxnet/python/
python test_estimator_cnn.py --type cpu
}

nightly_estimator_rnn_gpu() {
set -ex
cd /work/mxnet/tests/nightly/estimator
export PYTHONPATH=/work/mxnet/python/
python test_sentiment_rnn.py --type gpu
}

nightly_estimator_rnn_cpu() {
nightly_estimator_cpu() {
set -ex
cd /work/mxnet/tests/nightly/estimator
export PYTHONPATH=/work/mxnet/python/
python test_estimator_cnn.py --type cpu
python test_sentiment_rnn.py --type cpu
}

Expand Down
271 changes: 118 additions & 153 deletions python/mxnet/gluon/contrib/estimator/estimator.py

Large diffs are not rendered by default.

Loading

0 comments on commit fdd9aa7

Please sign in to comment.