strategy_evaluation.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:CryptoCurrencyTrader 作者: llens 项目源码 文件源码
def normalise_and_centre_score(strategy_score, up_threshold, low_threshold):

    """normalise and centre score when fitting thresholds"""

    temp_score = minmax_scale(strategy_score)

    temp_score = temp_score - 0.5
    temp_score[temp_score > up_threshold] = up_threshold
    temp_score[temp_score < -up_threshold] = -up_threshold
    temp_score[abs(temp_score) < low_threshold] = 0
    temp_score = temp_score + 0.5

    return temp_score
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号