{"provider_name":"Hatena Blog","width":"100%","title":"Python\u306enimfa\u3067NMF\u3092\u8a66\u3059","type":"rich","provider_url":"https://hatena.blog","version":"1.0","description":"Python\u3067NMF\u3084\u308b\u306b\u306f\uff0cnimfa\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3048\u3070\u3088\u3044\u3089\u3057\u3044\u3067\u3059\uff0e\u3068\u308a\u3042\u3048\u305a\u4f7f\u3046\u3060\u3051\u306a\u3089\uff0c\u9069\u5f53\u306anumpy\u884c\u5217vec\u3092\u7528\u610f\u3057\u3066\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u95a2\u6570\u306b\u6295\u3052\u3066\u3042\u3052\u307e\u3059\uff0e factor = nimfa.mf(vec, seed='random_vcol', method='nmf', rank='5', max_iter=10) res = nimfa.mf_run(factor).basis() \u3068\u308a\u3042\u3048\u305a\u30b7\u30fc\u30c9\u306f\u30e9\u30f3\u30c0\u30e0\u3067\uff0c\u624b\u6cd5\u306f\u30d9\u30fc\u30b7\u30c3\u30af\u306anmf\uff0e\u4f55\u6b21\u5143\u306b\u524a\u6e1b\u3059\u308b\u304b\u3092rank\u3067\u6307\u5b9a\u3057\u3066\uff0c\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u56de\u6570\u3092\u6c7a\u3081\u308c\u3070OK\u3067\u3059\uff0enmf\u306f\u95a2\u9023\u624b\u6cd5\u304c\u5c71\u307b\u3069\u3042\u3063\u3066\uff0c\u3056\u3063\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u2026","categories":[],"height":"190","blog_url":"https://smrmkt.hatenablog.jp/","url":"https://smrmkt.hatenablog.jp/entry/2014/12/27/150813","author_url":"https://blog.hatena.ne.jp/SAM/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmrmkt.hatenablog.jp%2Fentry%2F2014%2F12%2F27%2F150813\" title=\"Python\u306enimfa\u3067NMF\u3092\u8a66\u3059 - About connecting the dots.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-12-27 15:08:13","author_name":"SAM","image_url":null,"blog_title":"About connecting the dots."}