From baf8765b833c1c2f91d30122043b8d62a2a9f1ed Mon Sep 17 00:00:00 2001 From: tangwei Date: Tue, 14 Apr 2020 23:13:04 +0800 Subject: [PATCH] structure rebuild --- fleetrec/examples/built_in/__init__.py | 0 fleetrec/examples/ctr-dnn_train_cluster.yaml | 12 ------------ fleetrec/examples/ctr-dnn_train_single.yaml | 12 ------------ fleetrec/examples/ctr-dnn_train_userdefine.yaml | 13 +------------ fleetrec/examples/train.py | 12 ------------ fleetrec/examples/user_define/__init__.py | 0 fleetrec/models/ctr_dnn/hyper_parameters.yaml | 13 ------------- .../models/ctr_dnn/{data_generator.py => reader.py} | 0 8 files changed, 1 insertion(+), 61 deletions(-) create mode 100644 fleetrec/examples/built_in/__init__.py create mode 100644 fleetrec/examples/user_define/__init__.py rename fleetrec/models/ctr_dnn/{data_generator.py => reader.py} (100%) diff --git a/fleetrec/examples/built_in/__init__.py b/fleetrec/examples/built_in/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/fleetrec/examples/ctr-dnn_train_cluster.yaml b/fleetrec/examples/ctr-dnn_train_cluster.yaml index 53f03253..f4c8f2b1 100644 --- a/fleetrec/examples/ctr-dnn_train_cluster.yaml +++ b/fleetrec/examples/ctr-dnn_train_cluster.yaml @@ -10,18 +10,6 @@ # 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.# Copyright (c) 2019 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. train: diff --git a/fleetrec/examples/ctr-dnn_train_single.yaml b/fleetrec/examples/ctr-dnn_train_single.yaml index 91dca18f..50d25cad 100644 --- a/fleetrec/examples/ctr-dnn_train_single.yaml +++ b/fleetrec/examples/ctr-dnn_train_single.yaml @@ -10,18 +10,6 @@ # 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.# Copyright (c) 2019 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. train: diff --git a/fleetrec/examples/ctr-dnn_train_userdefine.yaml b/fleetrec/examples/ctr-dnn_train_userdefine.yaml index 2beec8d4..423efedc 100644 --- a/fleetrec/examples/ctr-dnn_train_userdefine.yaml +++ b/fleetrec/examples/ctr-dnn_train_userdefine.yaml @@ -10,20 +10,9 @@ # 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.# Copyright (c) 2019 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. + train: threads: 12 epochs: 10 diff --git a/fleetrec/examples/train.py b/fleetrec/examples/train.py index 835ab193..7a72fb78 100644 --- a/fleetrec/examples/train.py +++ b/fleetrec/examples/train.py @@ -10,18 +10,6 @@ # 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.# Copyright (c) 2019 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. import os diff --git a/fleetrec/examples/user_define/__init__.py b/fleetrec/examples/user_define/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/fleetrec/models/ctr_dnn/hyper_parameters.yaml b/fleetrec/models/ctr_dnn/hyper_parameters.yaml index 10c24807..85048fa3 100644 --- a/fleetrec/models/ctr_dnn/hyper_parameters.yaml +++ b/fleetrec/models/ctr_dnn/hyper_parameters.yaml @@ -10,21 +10,8 @@ # 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.# Copyright (c) 2019 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. - sparse_inputs_slots: 27, sparse_feature_number: 1000001, sparse_feature_dim: 8, diff --git a/fleetrec/models/ctr_dnn/data_generator.py b/fleetrec/models/ctr_dnn/reader.py similarity index 100% rename from fleetrec/models/ctr_dnn/data_generator.py rename to fleetrec/models/ctr_dnn/reader.py -- GitLab