"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "0c6162e0d2be8fa5544cb7cf1b17df34de08b5a5"
Commit 194af6f0 authored by Matei13's avatar Matei13 Committed by QuanluZhang
Browse files

Correct typo (#402)

parent 154bcc55
...@@ -86,7 +86,7 @@ if __name__ == '__main__': ...@@ -86,7 +86,7 @@ if __name__ == '__main__':
**2)Get configure from Tuner** **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 ```python
...@@ -165,7 +165,7 @@ def train(args, params): ...@@ -165,7 +165,7 @@ def train(args, params):
... ...
``` ```
Here is the complete exampe: Here is the complete example:
```python ```python
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # 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. # 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 import logging
......
...@@ -244,8 +244,8 @@ Here is an example of the model configuration, which is passed from the tuner to ...@@ -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: 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. * `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" corresponde to document length / question length, 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_size` is the number of inputs the layer has.
* `input` is the indices of layers taken as input of this layer. * `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. * `output` is the indices of layers use this layer's output as their input.
......
...@@ -46,7 +46,7 @@ except: ...@@ -46,7 +46,7 @@ except:
def get_config(): def get_config():
''' '''
Get config from arument parser. Get config from argument parser.
''' '''
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='This program is using genetic algorithm to search architecture for SQuAD.') description='This program is using genetic algorithm to search architecture for SQuAD.')
...@@ -86,7 +86,7 @@ def get_id(word_dict, word): ...@@ -86,7 +86,7 @@ def get_id(word_dict, word):
def load_embedding(path): 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_DIM = 300
embedding_dict = {} embedding_dict = {}
......
...@@ -14,7 +14,7 @@ logger = logging.getLogger('mnist_AutoML') ...@@ -14,7 +14,7 @@ logger = logging.getLogger('mnist_AutoML')
class MnistNetwork(object): 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, def __init__(self,
channel_1_num, channel_1_num,
...@@ -211,7 +211,7 @@ def main(params): ...@@ -211,7 +211,7 @@ def main(params):
logger.debug('Send final result done.') logger.debug('Send final result done.')
def generate_defualt_params(): def generate_default_params():
''' '''
Generate default parameters for mnist network. Generate default parameters for mnist network.
''' '''
...@@ -232,7 +232,7 @@ def generate_defualt_params(): ...@@ -232,7 +232,7 @@ def generate_defualt_params():
if __name__ == '__main__': if __name__ == '__main__':
'''@nni.get_next_parameter()''' '''@nni.get_next_parameter()'''
try: try:
main(generate_defualt_params()) main(generate_default_params())
except Exception as exception: except Exception as exception:
logger.exception(exception) logger.exception(exception)
raise raise
...@@ -16,7 +16,7 @@ logger = logging.getLogger('mnist_AutoML') ...@@ -16,7 +16,7 @@ logger = logging.getLogger('mnist_AutoML')
class MnistNetwork(object): 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, def __init__(self,
channel_1_num, channel_1_num,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment