注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
For a lot of the rule-based algorithms, it is relatively straightforward to write testing files, as there is usually a clear expectation of what the functions should return in various cases.
However, for machine learning algorithms, more specifically, algorithms for fitting probabilistic models, it does not seem to be straightforward, at least to me. Even when we have the generating model with known parameters for data simulation, the model fitting solutions to different simulated datasets will be different, and very often there is no clear expectation of what one should get. For example, if one decides to use Cyclic Coordinate Descent (CCD) for the maximal likelihood estimate of a statistical model, it's hard to know what value one should expect, exactly. And for Bayesian models, the posterior draws are not even deterministic.
Could anyone share any insight/experience?
|