{"version":"1.0","author_url":"https://blog.hatena.ne.jp/kidnohr/","published":"2019-09-07 18:59:37","categories":["\u6a5f\u68b0\u5b66\u7fd2","Python3"],"author_name":"kidnohr","url":"https://kidnohr.hatenadiary.com/entry/2019/09/07/185937","width":"100%","image_url":null,"title":"\u5206\u985e\u6a5f\u3092 loss=BCE \u3067\u4e88\u6e2c\u3059\u308b\u3068\u304d","provider_url":"https://hatena.blog","type":"rich","blog_title":"\u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026","description":"0, 1 \u306e\u5206\u985e\u5668\u306b\u3064\u3044\u3066\u3001BCE \u3067 loss \u3092\u8a08\u7b97\u3059\u308b\u3068\u3001\u672a\u6765\u306e\u78ba\u7387\u306e\u6700\u5c24\u306f\u4e88\u6e2c\u5024\u3068\u306a\u308b\u3002 def likelifood(x, n, n_1): return (x**(n_1)) * ((1- x) ** (n - n_1)) N = 100 N_1 = 80 x_list = [] for i in np.arange(0, 1.01, 0.01): xx = likelifood(i, N, N_1) x_list.append(xx) print(np.round(i, 2), '\\t', xx) plt.plot(np.arange(0, 1.01, 0.01), x_list\u2026","blog_url":"https://kidnohr.hatenadiary.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkidnohr.hatenadiary.com%2Fentry%2F2019%2F09%2F07%2F185937\" title=\"\u5206\u985e\u6a5f\u3092 loss=BCE \u3067\u4e88\u6e2c\u3059\u308b\u3068\u304d - \u65e5\u306b\u65e5\u306b\u5206\u304b\u3089\u3093\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u2026\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_name":"Hatena Blog"}