加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
computeEER.sh 638 Bytes
一键复制 编辑 原始数据 按行查看 历史
Snowdar 提交于 2020-06-29 12:29 . back-end metric
#!/bin/bash
# Copyright xmuspeech (Author:Snowdar 2018-7-27 2020-06-30)
write_file=""
first=3 # <target/nontarget-field 1-based>
second=3 # <score-field 1-based>
. subtools/path.sh
. subtools/parse_options.sh
if [[ $# != 2 ]];then
echo "[exit] Num of parameters is not equal to 4"
echo "usage:$0 [--write-file \"\" | filepath] <trials> <score-file>"
exit 1
fi
trials=$1
score=$2
workout=`awk -v second=$second '{print $second}' $score | paste - <(awk -v first=$first '{print $first}' $trials ) | \
awk '{if(NF==2){print $0}}' | compute-eer - `
if [ "$write_file" != "" ];then
echo "$workout" > $write_file
fi
echo "EER% $workout"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化