Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
03c53111
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
03c53111
编写于
10月 12, 2019
作者:
Z
zhangxuefei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update modelbased to populationbased
上级
5e4450a7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
paddlehub/autofinetune/evaluator.py
paddlehub/autofinetune/evaluator.py
+2
-2
paddlehub/commands/autofinetune.py
paddlehub/commands/autofinetune.py
+5
-5
paddlehub/version.py
paddlehub/version.py
+1
-1
未找到文件。
paddlehub/autofinetune/evaluator.py
浏览文件 @
03c53111
...
@@ -157,9 +157,9 @@ class FullTrailEvaluator(BaseEvaluator):
...
@@ -157,9 +157,9 @@ class FullTrailEvaluator(BaseEvaluator):
return
reward
return
reward
class
Model
BasedEvaluator
(
BaseEvaluator
):
class
Population
BasedEvaluator
(
BaseEvaluator
):
def
__init__
(
self
,
params_file
,
finetunee_script
,
options_str
=
""
):
def
__init__
(
self
,
params_file
,
finetunee_script
,
options_str
=
""
):
super
(
Model
BasedEvaluator
,
self
).
__init__
(
super
(
Population
BasedEvaluator
,
self
).
__init__
(
params_file
,
finetunee_script
,
options_str
=
options_str
)
params_file
,
finetunee_script
,
options_str
=
options_str
)
self
.
half_best_model_path
=
[]
self
.
half_best_model_path
=
[]
self
.
run_count
=
0
self
.
run_count
=
0
...
...
paddlehub/commands/autofinetune.py
浏览文件 @
03c53111
...
@@ -33,7 +33,7 @@ from paddlehub.common.arg_helper import add_argument, print_arguments
...
@@ -33,7 +33,7 @@ from paddlehub.common.arg_helper import add_argument, print_arguments
from
paddlehub.autofinetune.autoft
import
PSHE2
from
paddlehub.autofinetune.autoft
import
PSHE2
from
paddlehub.autofinetune.autoft
import
HAZero
from
paddlehub.autofinetune.autoft
import
HAZero
from
paddlehub.autofinetune.evaluator
import
FullTrailEvaluator
from
paddlehub.autofinetune.evaluator
import
FullTrailEvaluator
from
paddlehub.autofinetune.evaluator
import
Model
BasedEvaluator
from
paddlehub.autofinetune.evaluator
import
Population
BasedEvaluator
from
paddlehub.common.logger
import
logger
from
paddlehub.common.logger
import
logger
import
paddlehub
as
hub
import
paddlehub
as
hub
...
@@ -84,8 +84,8 @@ class AutoFineTuneCommand(BaseCommand):
...
@@ -84,8 +84,8 @@ class AutoFineTuneCommand(BaseCommand):
self
.
arg_config_group
.
add_argument
(
self
.
arg_config_group
.
add_argument
(
"--evaluate_choice"
,
"--evaluate_choice"
,
type
=
str
,
type
=
str
,
default
=
"
model
based"
,
default
=
"
population
based"
,
help
=
"Choices: fulltrail or
model
based."
)
help
=
"Choices: fulltrail or
population
based."
)
self
.
arg_config_group
.
add_argument
(
self
.
arg_config_group
.
add_argument
(
"--tuning_strategy"
,
"--tuning_strategy"
,
type
=
str
,
type
=
str
,
...
@@ -147,8 +147,8 @@ class AutoFineTuneCommand(BaseCommand):
...
@@ -147,8 +147,8 @@ class AutoFineTuneCommand(BaseCommand):
self
.
args
.
param_file
,
self
.
args
.
param_file
,
self
.
fintunee_script
,
self
.
fintunee_script
,
options_str
=
options_str
)
options_str
=
options_str
)
elif
self
.
args
.
evaluate_choice
.
lower
()
==
"
model
based"
:
elif
self
.
args
.
evaluate_choice
.
lower
()
==
"
population
based"
:
evaluator
=
Model
BasedEvaluator
(
evaluator
=
Population
BasedEvaluator
(
self
.
args
.
param_file
,
self
.
args
.
param_file
,
self
.
fintunee_script
,
self
.
fintunee_script
,
options_str
=
options_str
)
options_str
=
options_str
)
...
...
paddlehub/version.py
浏览文件 @
03c53111
...
@@ -13,5 +13,5 @@
...
@@ -13,5 +13,5 @@
# 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.
""" PaddleHub version string """
""" PaddleHub version string """
hub_version
=
"1.2.
0
"
hub_version
=
"1.2.
1
"
module_proto_version
=
"1.0.0"
module_proto_version
=
"1.0.0"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录