提交 ec2679c4 编写于 作者: Q qijun

pass pre-commit

上级 3d4eb1e1
...@@ -24,7 +24,6 @@ import gzip ...@@ -24,7 +24,6 @@ import gzip
import itertools import itertools
from common import download from common import download
__all__ = ['test, get_dict', 'get_embedding'] __all__ = ['test, get_dict', 'get_embedding']
DATA_URL = 'http://www.cs.upc.edu/~srlconll/conll05st-tests.tar.gz' DATA_URL = 'http://www.cs.upc.edu/~srlconll/conll05st-tests.tar.gz'
......
...@@ -42,6 +42,7 @@ class MovieInfo(object): ...@@ -42,6 +42,7 @@ class MovieInfo(object):
""" """
Movie id, title and categories information are stored in MovieInfo. Movie id, title and categories information are stored in MovieInfo.
""" """
def __init__(self, index, categories, title): def __init__(self, index, categories, title):
self.index = int(index) self.index = int(index)
self.categories = categories self.categories = categories
...@@ -68,6 +69,7 @@ class UserInfo(object): ...@@ -68,6 +69,7 @@ class UserInfo(object):
""" """
User id, gender, age, and job information are stored in UserInfo. User id, gender, age, and job information are stored in UserInfo.
""" """
def __init__(self, index, gender, age, job_id): def __init__(self, index, gender, age, job_id):
self.index = int(index) self.index = int(index)
self.is_male = gender == 'M' self.is_male = gender == 'M'
......
...@@ -19,6 +19,7 @@ class Inference(object): ...@@ -19,6 +19,7 @@ class Inference(object):
:param parameters: The parameters dictionary. :param parameters: The parameters dictionary.
:type parameters: paddle.v2.parameters.Parameters :type parameters: paddle.v2.parameters.Parameters
""" """
def __init__(self, output_layer, parameters): def __init__(self, output_layer, parameters):
topo = topology.Topology(output_layer) topo = topology.Topology(output_layer)
gm = api.GradientMachine.createFromConfigProto( gm = api.GradientMachine.createFromConfigProto(
......
...@@ -14,7 +14,6 @@ from . import parameters as v2_parameters ...@@ -14,7 +14,6 @@ from . import parameters as v2_parameters
__all__ = ['SGD'] __all__ = ['SGD']
def default_event_handler(event): def default_event_handler(event):
""" """
Default event handler. It will print some log and save mode. Default event handler. It will print some log and save mode.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册