Traceback (most recent call last):


 "F:/学习资料/计算机/大二/下/人工智能/Text_Analysis/loadModule.py", line 70, in <module>

metrics_choices=["f1"])


 "E:\software\program\Python37\lib\site-packages\paddlehub\finetune\task\classifier_task.py", line 179, in __init__

metrics_choices=metrics_choices)


 "E:\software\program\Python37\lib\site-packages\paddlehub\finetune\task\classifier_task.py", line 49, in __init__

metrics_choices=metrics_choices)


 "E:\software\program\Python37\lib\site-packages\paddlehub\finetune\task\base_task.py", line 299, in __init__

main_program, for_test=False)


 "E:\software\program\Python37\lib\site-packages\paddlehub\common\paddle_helper.py", line 274, in clone_program

dest_program.global_block())


 "E:\software\program\Python37\lib\site-packages\paddlehub\common\paddle_helper.py", line 147, in _copy_vars_and_ops_in_blocks

var_info = copy.deepcopy(get_variable_info(var))


 "E:\software\program\Python37\lib\site-packages\paddlehub\common\paddle_helper.py", line 65, in get_variable_info

var_info['gradient_clip_attr'] = var.gradient_clip_attr
AttributeError: 'Parameter' object has no attribute 'gradient_clip_attr'

Traceback (most recent call last):


 "practice.py", line 279, in <module>

action = np.argmax([0.1, 1, 0.2]*agent.get_qs(current_state))


 "practice.py", line 186, in get_qs

return self.model.predict(state)[0]


 "C:\Users\liuzhen\.conda\envs\python37\lib\site-packages\keras\engine\training.py", line 1380, in predict

x, _, _ = self._standardize_user_data(x)


 "C:\Users\liuzhen\.conda\envs\python37\lib\site-packages\keras\engine\training.py", line 757, in _standardize_user_data

exception_prefix='input')


 "C:\Users\liuzhen\.conda\envs\python37\lib\site-packages\keras\engine\training_utils.py", line 95, in standardize_input_data

data = [standardize_single_array(x) for x in data]


 "C:\Users\liuzhen\.conda\envs\python37\lib\site-packages\keras\engine\training_utils.py", line 95, in <listcomp>

data = [standardize_single_array(x) for x in data]


 "C:\Users\liuzhen\.conda\envs\python37\lib\site-packages\keras\engine\training_utils.py", line 30, in standardize_single_array

elif x.ndim == 1:
AttributeError: 'list' object has no attribute 'ndim'
