This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b4d528
commit 62bf495
Showing
5 changed files
with
114 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
scala-package/examples/src/main/scala/org/apache/mxnetexamples/rnn/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# RNN Example for MXNet Scala | ||
This folder contains the following examples writing in new Scala type-safe API: | ||
- [x] LSTM Bucketing | ||
- [ ] CharRNN Inference (still fixing issues) | ||
- [x] CharRNN Training | ||
|
||
These example is only for Illustration and not modeled to achieve the best accuracy. | ||
|
||
## Setup | ||
### Download the source File | ||
`obama.zip` contains the required files for CharCNN examples and `sherlockholmes` contains the data for LSTM Bucketing | ||
```bash | ||
https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/RNN/obama.zip | ||
https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/RNN/sherlockholmes.train.txt | ||
https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/RNN/sherlockholmes.valid.txt | ||
``` | ||
### Unzip the file | ||
```bash | ||
unzip obama.zip | ||
``` | ||
### Arguement Configuration | ||
Then you need to define the arguments that you would like to pass in the model: | ||
|
||
#### LSTM Bucketing | ||
```bash | ||
--data-train | ||
<path>/sherlockholmes.train.txt | ||
--data-val | ||
<path>/sherlockholmes.valid.txt | ||
--cpus | ||
<num_cpus> | ||
--gpus | ||
<num_gpu> | ||
``` | ||
#### TrainCharRnn | ||
```bash | ||
--data-path | ||
<path>/obama.txt | ||
--save-model-path | ||
<path>/ | ||
``` | ||
#### TestCharRnn | ||
This model currently does not working, still fixing the issues | ||
```bash | ||
--data-path | ||
<path>/obama.txt | ||
--model-prefix | ||
<path>/obama | ||
``` |