Skip to content

Commit

Permalink
Merge pull request #9 from ThomasDelteil/jenkins_docs_pipeline_updated
Browse files Browse the repository at this point in the history
Jenkins docs pipeline updated
  • Loading branch information
ThomasDelteil committed Aug 9, 2019
2 parents ff288a0 + e801b8d commit b7cbe2c
Show file tree
Hide file tree
Showing 22 changed files with 2,551 additions and 43 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ rpkgtest:
Rscript -e 'require(testthat);res<-test_dir("R-package/tests/testthat");if(!testthat:::all_passed(res)){stop("Test failures", call. = FALSE)}'
Rscript -e 'res<-covr:::package_coverage("R-package");fileConn<-file(paste("r-package_coverage_",toString(runif(1)),".json"));writeLines(covr:::to_codecov(res), fileConn);close(fileConn)'


sample_lib:
$(CXX) -shared -fPIC example/lib_api/mylib.cc -o libsample_lib.so -I include/mxnet

scalaclean:
(cd $(ROOTDIR)/scala-package && mvn clean)

Expand Down
4 changes: 1 addition & 3 deletions docs/python_docs/python/api/symbol/mxnet.symbol.linalg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ In the rest of this document, we list routines provided by the `symbol.linalg` p
makediag
extracttrian
maketrian
inverse
det
slogdet
inverse
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
<!--- Licensed to the Apache Software Foundation (ASF) under one -->
<!--- or more contributor license agreements. See the NOTICE file -->
<!--- distributed with this work for additional information -->
<!--- regarding copyright ownership. The ASF licenses this file -->
<!--- to you under the Apache License, Version 2.0 (the -->
<!--- "License"); you may not use this file except in compliance -->
<!--- with the License. You may obtain a copy of the License at -->

<!--- http://www.apache.org/licenses/LICENSE-2.0 -->

<!--- Unless required by applicable law or agreed to in writing, -->
<!--- software distributed under the License is distributed on an -->
<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
<!--- KIND, either express or implied. See the License for the -->
<!--- specific language governing permissions and limitations -->
<!--- under the License. -->


# MXNet Gluon Fit API

In this tutorial, you will learn how to use the [Gluon Fit API](https://cwiki.apache.org/confluence/display/MXNET/Gluon+Fit+API+-+Tech+Design) which is the easiest way to train deep learning models using the [Gluon API](http://mxnet.incubator.apache.org/versions/master/gluon/index.html) in Apache MXNet.
Expand All @@ -32,8 +14,6 @@ To complete this tutorial, you will need:
- [Jupyter Notebook](https://jupyter.org/index.html) (For interactively running the provided .ipynb file)




```python
import mxnet as mx
from mxnet import gluon
Expand Down Expand Up @@ -146,14 +126,15 @@ with warnings.catch_warnings():
epochs=num_epochs)
```

```text
Training begin: using optimizer SGD with current learning rate 0.0400 <!--notebook-skip-line-->
Train for 2 epochs. <!--notebook-skip-line-->
[Epoch 0] finished in 25.110s: train_accuracy : 0.7877 train_softmaxcrossentropyloss0 : 0.5905 <!--notebook-skip-line-->
[Epoch 1] finished in 23.595s: train_accuracy : 0.8823 train_softmaxcrossentropyloss0 : 0.3197 <!--notebook-skip-line-->
Train finished using total 48s at epoch 1. train_accuracy : 0.8823 train_softmaxcrossentropyloss0 : 0.3197 <!--notebook-skip-line-->

```

### Advanced Usage

Expand Down Expand Up @@ -239,6 +220,7 @@ with warnings.catch_warnings():
event_handlers=[checkpoint_handler, loss_record_handler]) # Add the event handlers
```

```text
Training begin: using optimizer SGD with current learning rate 0.0400 <!--notebook-skip-line-->
Train for 2 epochs. <!--notebook-skip-line-->
Expand All @@ -251,6 +233,7 @@ with warnings.catch_warnings():
Training begin <!--notebook-skip-line-->
Epoch 1, loss 0.5741 <!--notebook-skip-line-->
Epoch 2, loss 0.3229 <!--notebook-skip-line-->
```

You can load the saved model, by using the `load_parameters` API in Gluon. For more details refer to the [Loading model parameters from file tutorial](save_load_params.html#saving-model-parameters-to-file)

Expand All @@ -266,6 +249,4 @@ resnet_18_v1.load_parameters('./my_model-best.params', ctx=ctx)

## Next Steps

- For more hands on learning about deep learning, check out [Dive into Deep Learning](https://d2l.ai)

<!-- INSERT SOURCE DOWNLOAD BUTTONS -->
- For more hands on learning about deep learning, check out [Dive into Deep Learning](https://d2l.ai)

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import ScrollSpy from "./scrollspy";
import AdjustHeight from "./adjust-height";

$(function() {
$('body').fadeIn(0);
$('.page-content > blockquote:first-child').remove();
$('table').removeAttr('border');

const styleColorTextPrimary = () => {
$('h1, h2, h3, h4, h5, h6, .toc-backref, .contents, .toctree-wrapper, .contents a, .toctree-wrapper a, .globaltoc a.current').addClass('mdl-color-text--primary');
}

function reconstructionDrawerGlobalToc() {
const $globaltoc = $('.mdl-layout__drawer nav');
Expand Down Expand Up @@ -100,10 +93,12 @@ $(function() {
}

// styleMdlCodeBlock();
styleColorTextPrimary();

reconstructionDrawerGlobalToc();
collapse();
quickSearchClickEvent();
$('.mdl-layout__drawer').css('visibility', 'visible');
quickSearchClickEvent();


const spy = new ScrollSpy({
contentSelector: '.page-content .section',
Expand All @@ -112,8 +107,6 @@ $(function() {
className: 'current',
offsetTop: 64});

const adjust = new AdjustHeight();

$('.mdl-layout__content').focus();

$('.mx-card').each(function(){
Expand Down
6 changes: 5 additions & 1 deletion docs/python_docs/themes/mx-theme/src/scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ html {
}

body {
display: none;
display: block !important;
background-color: $background_color;
font-size: 1rem;
line-height: 1.5rem;
Expand All @@ -19,6 +19,10 @@ a.download > code.download {
font-family: $body_font_family;
}

h1, h2, h3, h4, h5, h6, .toc-backref, .contents, .toctree-wrapper, .contents a, .toctree-wrapper a, .globaltoc a.current {
color: $color-mxnet !important;
}

a {
text-decoration: none;
}
Expand Down
3 changes: 3 additions & 0 deletions docs/python_docs/themes/mx-theme/src/scss/drawer/_drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/
.mdl-layout {
&__drawer {

visiblity: hidden;

background-color: #fff;

&::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.globaltoc {

.caption, .toc {
display: none;
}
Expand Down
Loading

0 comments on commit b7cbe2c

Please sign in to comment.