hyperband.py 文件源码

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

项目:hyperband 作者: zygmuntz 项目源码 文件源码
def __init__( self, get_params_function, try_params_function ):
        self.get_params = get_params_function
        self.try_params = try_params_function

        self.max_iter = 81      # maximum iterations per configuration
        self.eta = 3            # defines configuration downsampling rate (default = 3)

        self.logeta = lambda x: log( x ) / log( self.eta )
        self.s_max = int( self.logeta( self.max_iter ))
        self.B = ( self.s_max + 1 ) * self.max_iter

        self.results = []   # list of dicts
        self.counter = 0
        self.best_loss = np.inf
        self.best_counter = -1


    # can be called multiple times
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号