Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleRec
提交
8d82a06a
P
PaddleRec
项目概览
PaddlePaddle
/
PaddleRec
通知
68
Star
12
Fork
5
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
27
列表
看板
标记
里程碑
合并请求
10
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
27
Issue
27
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8d82a06a
编写于
5月 19, 2020
作者:
T
tangwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused import
上级
bef91cbd
变更
41
显示空白变更内容
内联
并排
Showing
41 changed file
with
81 addition
and
76 deletion
+81
-76
core/engine/cluster/cloud/cluster.sh
core/engine/cluster/cloud/cluster.sh
+14
-0
core/engine/cluster/cluster.py
core/engine/cluster/cluster.py
+0
-1
core/model.py
core/model.py
+0
-1
core/trainers/cluster_trainer.py
core/trainers/cluster_trainer.py
+0
-1
core/trainers/tdm_cluster_trainer.py
core/trainers/tdm_cluster_trainer.py
+0
-2
core/trainers/tdm_single_trainer.py
core/trainers/tdm_single_trainer.py
+0
-1
core/utils/dataloader_instance.py
core/utils/dataloader_instance.py
+0
-1
core/utils/table.py
core/utils/table.py
+0
-3
models/contentunderstanding/classification/model.py
models/contentunderstanding/classification/model.py
+1
-6
models/contentunderstanding/classification/reader.py
models/contentunderstanding/classification/reader.py
+2
-11
models/contentunderstanding/tagspace/model.py
models/contentunderstanding/tagspace/model.py
+0
-4
models/contentunderstanding/tagspace/reader.py
models/contentunderstanding/tagspace/reader.py
+1
-9
models/match/dssm/model.py
models/match/dssm/model.py
+0
-1
models/match/dssm/synthetic_evaluate_reader.py
models/match/dssm/synthetic_evaluate_reader.py
+0
-1
models/match/dssm/synthetic_reader.py
models/match/dssm/synthetic_reader.py
+0
-1
models/match/multiview-simnet/data_process.sh
models/match/multiview-simnet/data_process.sh
+15
-0
models/match/multiview-simnet/evaluate_reader.py
models/match/multiview-simnet/evaluate_reader.py
+1
-4
models/match/multiview-simnet/model.py
models/match/multiview-simnet/model.py
+0
-3
models/match/multiview-simnet/reader.py
models/match/multiview-simnet/reader.py
+1
-4
models/multitask/share-bottom/census_infer_reader.py
models/multitask/share-bottom/census_infer_reader.py
+0
-2
models/multitask/share-bottom/census_reader.py
models/multitask/share-bottom/census_reader.py
+1
-2
models/multitask/share-bottom/model.py
models/multitask/share-bottom/model.py
+0
-1
models/rank/dcn/criteo_reader.py
models/rank/dcn/criteo_reader.py
+0
-2
models/rank/dcn/model.py
models/rank/dcn/model.py
+0
-1
models/rank/din/model.py
models/rank/din/model.py
+0
-1
models/rank/wide_deep/reader.py
models/rank/wide_deep/reader.py
+0
-1
models/rank/xdeepfm/criteo_reader.py
models/rank/xdeepfm/criteo_reader.py
+0
-1
models/rank/xdeepfm/model.py
models/rank/xdeepfm/model.py
+0
-1
models/recall/gnn/data_process.sh
models/recall/gnn/data_process.sh
+14
-0
models/recall/gnn/evaluate_reader.py
models/recall/gnn/evaluate_reader.py
+1
-1
models/recall/gnn/reader.py
models/recall/gnn/reader.py
+1
-1
models/recall/gru4rec/hdfs.log
models/recall/gru4rec/hdfs.log
+0
-0
models/recall/gru4rec/model.py
models/recall/gru4rec/model.py
+0
-1
models/recall/gru4rec/rsc15_infer_reader.py
models/recall/gru4rec/rsc15_infer_reader.py
+0
-1
models/recall/gru4rec/rsc15_reader.py
models/recall/gru4rec/rsc15_reader.py
+0
-1
models/recall/ssr/model.py
models/recall/ssr/model.py
+0
-2
models/recall/ssr/ssr_infer_reader.py
models/recall/ssr/ssr_infer_reader.py
+0
-1
models/recall/ssr/ssr_reader.py
models/recall/ssr/ssr_reader.py
+0
-1
models/recall/word2vec/prepare_data.sh
models/recall/word2vec/prepare_data.sh
+15
-0
models/recall/word2vec/w2v_evaluate_reader.py
models/recall/word2vec/w2v_evaluate_reader.py
+0
-1
setup.py
setup.py
+14
-0
未找到文件。
core/engine/cluster/cloud/cluster.sh
浏览文件 @
8d82a06a
#!/bin/bash
#!/bin/bash
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###################################################
###################################################
# Usage: submit.sh
# Usage: submit.sh
...
...
core/engine/cluster/cluster.py
浏览文件 @
8d82a06a
...
@@ -16,7 +16,6 @@ from __future__ import print_function
...
@@ -16,7 +16,6 @@ from __future__ import print_function
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
subprocess
import
subprocess
import
sys
import
os
import
os
import
copy
import
copy
...
...
core/model.py
浏览文件 @
8d82a06a
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
import
abc
import
abc
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
core/trainers/cluster_trainer.py
浏览文件 @
8d82a06a
...
@@ -25,7 +25,6 @@ import paddle.fluid as fluid
...
@@ -25,7 +25,6 @@ import paddle.fluid as fluid
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler.distributed_strategy
import
StrategyFactory
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler.distributed_strategy
import
StrategyFactory
from
paddle.fluid.incubate.fleet.base.role_maker
import
PaddleCloudRoleMaker
from
paddle.fluid.incubate.fleet.base.role_maker
import
PaddleCloudRoleMaker
from
paddle.fluid.incubate.fleet.base.role_maker
import
MPISymetricRoleMaker
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
paddlerec.core.trainers.transpiler_trainer
import
TranspileTrainer
...
...
core/trainers/tdm_cluster_trainer.py
浏览文件 @
8d82a06a
...
@@ -21,8 +21,6 @@ import logging
...
@@ -21,8 +21,6 @@ import logging
import
numpy
as
np
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler.distributed_strategy
import
StrategyFactory
from
paddle.fluid.incubate.fleet.base.role_maker
import
PaddleCloudRoleMaker
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.trainers.cluster_trainer
import
ClusterTrainer
from
paddlerec.core.trainers.cluster_trainer
import
ClusterTrainer
...
...
core/trainers/tdm_single_trainer.py
浏览文件 @
8d82a06a
...
@@ -20,7 +20,6 @@ from __future__ import print_function
...
@@ -20,7 +20,6 @@ from __future__ import print_function
import
logging
import
logging
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
paddlerec.core.trainers.single_trainer
import
SingleTrainer
from
paddlerec.core.trainers.single_trainer
import
SingleTrainer
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
import
numpy
as
np
import
numpy
as
np
...
...
core/utils/dataloader_instance.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
import
os
import
os
import
sys
from
paddlerec.core.utils.envs
import
lazy_instance_by_fliename
from
paddlerec.core.utils.envs
import
lazy_instance_by_fliename
from
paddlerec.core.utils.envs
import
get_global_env
from
paddlerec.core.utils.envs
import
get_global_env
...
...
core/utils/table.py
浏览文件 @
8d82a06a
...
@@ -12,9 +12,6 @@
...
@@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
copy
import
yaml
class
TableMeta
(
object
):
class
TableMeta
(
object
):
"""
"""
...
...
models/contentunderstanding/classification/model.py
浏览文件 @
8d82a06a
...
@@ -12,16 +12,11 @@
...
@@ -12,16 +12,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
math
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.layers.nn
as
nn
import
paddle.fluid.layers.tensor
as
tensor
import
paddle.fluid.layers.control_flow
as
cf
class
Model
(
ModelBase
):
class
Model
(
ModelBase
):
def
__init__
(
self
,
config
):
def
__init__
(
self
,
config
):
...
...
models/contentunderstanding/classification/reader.py
浏览文件 @
8d82a06a
...
@@ -12,20 +12,11 @@
...
@@ -12,20 +12,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
re
import
sys
import
sys
import
collections
import
os
import
six
import
time
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle
import
csv
import
io
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
def
init
(
self
):
def
init
(
self
):
...
...
models/contentunderstanding/tagspace/model.py
浏览文件 @
8d82a06a
...
@@ -12,10 +12,6 @@
...
@@ -12,10 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
math
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
...
...
models/contentunderstanding/tagspace/reader.py
浏览文件 @
8d82a06a
...
@@ -12,17 +12,9 @@
...
@@ -12,17 +12,9 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
re
import
sys
import
sys
import
collections
import
os
import
six
import
time
import
numpy
as
np
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle
import
csv
import
io
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/match/dssm/model.py
浏览文件 @
8d82a06a
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/match/dssm/synthetic_evaluate_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
class
EvaluateReader
(
Reader
):
class
EvaluateReader
(
Reader
):
...
...
models/match/dssm/synthetic_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
...
...
models/match/multiview-simnet/data_process.sh
浏览文件 @
8d82a06a
#! /bin/bash
#! /bin/bash
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-e
set
-e
echo
"begin to prepare data"
echo
"begin to prepare data"
...
...
models/match/multiview-simnet/evaluate_reader.py
浏览文件 @
8d82a06a
...
@@ -11,10 +11,7 @@
...
@@ -11,10 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
io
import
copy
import
random
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/match/multiview-simnet/model.py
浏览文件 @
8d82a06a
...
@@ -12,10 +12,7 @@
...
@@ -12,10 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle.fluid.layers
as
layers
import
paddle.fluid.layers.tensor
as
tensor
import
paddle.fluid.layers.tensor
as
tensor
import
paddle.fluid.layers.control_flow
as
cf
import
paddle.fluid.layers.control_flow
as
cf
...
...
models/match/multiview-simnet/reader.py
浏览文件 @
8d82a06a
...
@@ -11,10 +11,7 @@
...
@@ -11,10 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
io
import
copy
import
random
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/multitask/share-bottom/census_infer_reader.py
浏览文件 @
8d82a06a
...
@@ -14,8 +14,6 @@
...
@@ -14,8 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
import
numpy
as
np
class
EvaluateReader
(
Reader
):
class
EvaluateReader
(
Reader
):
...
...
models/multitask/share-bottom/census_reader.py
浏览文件 @
8d82a06a
...
@@ -11,11 +11,10 @@
...
@@ -11,11 +11,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
import
numpy
as
np
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
...
...
models/multitask/share-bottom/model.py
浏览文件 @
8d82a06a
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/rank/dcn/criteo_reader.py
浏览文件 @
8d82a06a
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# limitations under the License.
# limitations under the License.
from
__future__
import
print_function
from
__future__
import
print_function
import
math
import
math
import
sys
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
@@ -21,7 +20,6 @@ try:
...
@@ -21,7 +20,6 @@ try:
import
cPickle
as
pickle
import
cPickle
as
pickle
except
ImportError
:
except
ImportError
:
import
pickle
import
pickle
from
collections
import
Counter
import
os
import
os
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
...
...
models/rank/dcn/model.py
浏览文件 @
8d82a06a
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
math
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
...
...
models/rank/din/model.py
浏览文件 @
8d82a06a
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
math
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
...
...
models/rank/wide_deep/reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
try
:
try
:
import
cPickle
as
pickle
import
cPickle
as
pickle
except
ImportError
:
except
ImportError
:
...
...
models/rank/xdeepfm/criteo_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
try
:
try
:
import
cPickle
as
pickle
import
cPickle
as
pickle
except
ImportError
:
except
ImportError
:
...
...
models/rank/xdeepfm/model.py
浏览文件 @
8d82a06a
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
math
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
...
...
models/recall/gnn/data_process.sh
浏览文件 @
8d82a06a
#! /bin/bash
#! /bin/bash
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-e
set
-e
echo
"begin to download data"
echo
"begin to download data"
...
...
models/recall/gnn/evaluate_reader.py
浏览文件 @
8d82a06a
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
numpy
as
np
import
io
import
copy
import
copy
import
random
import
random
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
...
...
models/recall/gnn/reader.py
浏览文件 @
8d82a06a
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
numpy
as
np
import
io
import
copy
import
copy
import
random
import
random
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
...
...
models/recall/gru4rec/hdfs.log
已删除
100644 → 0
浏览文件 @
bef91cbd
models/recall/gru4rec/model.py
浏览文件 @
8d82a06a
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
...
...
models/recall/gru4rec/rsc15_infer_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
class
EvaluateReader
(
Reader
):
class
EvaluateReader
(
Reader
):
...
...
models/recall/gru4rec/rsc15_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
...
...
models/recall/ssr/model.py
浏览文件 @
8d82a06a
...
@@ -12,13 +12,11 @@
...
@@ -12,13 +12,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
from
paddlerec.core.model
import
Model
as
ModelBase
from
paddlerec.core.model
import
Model
as
ModelBase
import
paddle.fluid.layers.tensor
as
tensor
import
paddle.fluid.layers.tensor
as
tensor
import
paddle.fluid.layers.io
as
io
import
paddle.fluid.layers.control_flow
as
cf
import
paddle.fluid.layers.control_flow
as
cf
...
...
models/recall/ssr/ssr_infer_reader.py
浏览文件 @
8d82a06a
...
@@ -15,7 +15,6 @@ from __future__ import print_function
...
@@ -15,7 +15,6 @@ from __future__ import print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
import
random
import
numpy
as
np
import
numpy
as
np
...
...
models/recall/ssr/ssr_reader.py
浏览文件 @
8d82a06a
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
from
__future__
import
print_function
from
__future__
import
print_function
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
import
random
import
random
...
...
models/recall/word2vec/prepare_data.sh
浏览文件 @
8d82a06a
#! /bin/bash
#! /bin/bash
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# download train_data
# download train_data
mkdir
raw_data
mkdir
raw_data
wget
--no-check-certificate
https://paddlerec.bj.bcebos.com/word2vec/1-billion-word-language-modeling-benchmark-r13output.tar
wget
--no-check-certificate
https://paddlerec.bj.bcebos.com/word2vec/1-billion-word-language-modeling-benchmark-r13output.tar
...
...
models/recall/word2vec/w2v_evaluate_reader.py
浏览文件 @
8d82a06a
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
numpy
as
np
import
io
import
io
import
six
import
six
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
...
...
setup.py
浏览文件 @
8d82a06a
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
"""
setup for paddle-rec.
setup for paddle-rec.
"""
"""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录