Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-531] MNIST Examples for Scala new API #11250

Merged
merged 9 commits into from
Jul 1, 2018

Conversation

lanking520
Copy link
Member

@lanking520 lanking520 commented Jun 13, 2018

Description

This PR contains examples written from the new API.
@nswamy @yzhliu @andrewfayres
All examples pushed here are tested locally on my Mac. It lives in the new package called org.apache.mxnet.examples

Checklist

Essentials

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@lanking520 lanking520 requested a review from yzhliu as a code owner June 13, 2018 00:41
@lanking520 lanking520 changed the title [MXNET-531][Work In Progress] MNIST Examples for Scala new API [MXNET-531] MNIST Examples for Scala new API Jun 14, 2018
@lanking520 lanking520 force-pushed the example-mnist branch 2 times, most recently from bfd1634 to 9e8e988 Compare June 26, 2018 19:48
* See the License for the specific language governing permissions and
* limitations under the License.
*/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have liked author tag with original author's name as well as yours here since you are just copying existing files and modifying a few lines, but ASF does not with allow author tags with Apache 2.0 License :(. Lets discuss offline.

Copy link
Member

@nswamy nswamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lanking520, small comment to remove commented code in any other PR

@@ -31,6 +31,7 @@ object TrainMnist {
def getMlp: Symbol = {
val data = Symbol.Variable("data")

// val fc1 = Symbol.FullyConnected(name = "relu")()(Map("data" -> data, "act_type" -> "relu"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to keep it commented, you can remove it completely. change it any of your next PRs. I am going to merge it as is instead of removing this line, I don't want the entire CI suite to run for hour.

@nswamy nswamy merged commit 5627bc3 into apache:master Jul 1, 2018
@lanking520 lanking520 deleted the example-mnist branch July 2, 2018 20:27
XinYao1994 pushed a commit to XinYao1994/incubator-mxnet that referenced this pull request Aug 29, 2018
* Modify MNIST training example to use new Symbol APIs. 
* Add Tests to the MNIST Train example
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants