Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Correct typo #402

Merged
merged 1 commit into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/trials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if __name__ == '__main__':

**2)Get configure from Tuner**

User import ```nni``` and use ```nni.get_next_parameter()``` to recive configure. Please noted **10**, **24** and **25** line in the following code.
User import ```nni``` and use ```nni.get_next_parameter()``` to receive configure. Please noted **10**, **24** and **25** line in the following code.


```python
Expand Down Expand Up @@ -165,7 +165,7 @@ def train(args, params):
...
```

Here is the complete exampe:
Here is the complete example:


```python
Expand Down
2 changes: 1 addition & 1 deletion examples/trials/auto-gbdt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''
This project is for automaticlly tuning parameters for GBDT.
This project is for automatically tuning parameters for GBDT.
'''
import logging

Expand Down
4 changes: 2 additions & 2 deletions examples/trials/ga_squad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ Here is an example of the model configuration, which is passed from the tuner to

Every model configuration will has a "layers" section, which is a JSON list of layer definitions. The definition of each layer is also a JSON object, where:

* `type` is the type of the layer. 0, 1, 2, 3, 4 corresponde to attention, self-attention, RNN, input and output layer respectively.
* `size` is the length of the output. "x", "y" corresponde to document length / question length, respectively.
* `type` is the type of the layer. 0, 1, 2, 3, 4 correspond to attention, self-attention, RNN, input and output layer respectively.
* `size` is the length of the output. "x", "y" correspond to document length / question length, respectively.
* `input_size` is the number of inputs the layer has.
* `input` is the indices of layers taken as input of this layer.
* `output` is the indices of layers use this layer's output as their input.
Expand Down
4 changes: 2 additions & 2 deletions examples/trials/ga_squad/trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

def get_config():
'''
Get config from arument parser.
Get config from argument parser.
'''
parser = argparse.ArgumentParser(
description='This program is using genetic algorithm to search architecture for SQuAD.')
Expand Down Expand Up @@ -86,7 +86,7 @@ def get_id(word_dict, word):

def load_embedding(path):
'''
return embedding for a specif file by given file path.
return embedding for a specific file by given file path.
'''
EMBEDDING_DIM = 300
embedding_dict = {}
Expand Down
6 changes: 3 additions & 3 deletions examples/trials/mnist-annotation/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class MnistNetwork(object):
'''
MnistNetwork is for initlizing and building basic network for mnist.
MnistNetwork is for initializing and building basic network for mnist.
'''
def __init__(self,
channel_1_num,
Expand Down Expand Up @@ -211,7 +211,7 @@ def main(params):
logger.debug('Send final result done.')


def generate_defualt_params():
def generate_default_params():
'''
Generate default parameters for mnist network.
'''
Expand All @@ -232,7 +232,7 @@ def generate_defualt_params():
if __name__ == '__main__':
'''@nni.get_next_parameter()'''
try:
main(generate_defualt_params())
main(generate_default_params())
except Exception as exception:
logger.exception(exception)
raise
2 changes: 1 addition & 1 deletion examples/trials/mnist/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class MnistNetwork(object):
'''
MnistNetwork is for initlizing and building basic network for mnist.
MnistNetwork is for initializing and building basic network for mnist.
'''
def __init__(self,
channel_1_num,
Expand Down