Posts

Showing posts from December 21, 2018

「アイソトロピック・アンテナ」を作成中

This page is only for reference, If you need detailed information, please check here

Include pycrypto python library into python egg

Image
up vote 0 down vote favorite I have written python code (using pycrypto library)to encrypt data using generate_date_key (AWS KMS API). I have created egg from that file and want to use this egg in databricks. But after importing egg i am still getting error at line. import Crypto.Cipher.AES I guess pycrypto library is not getting included in egg.PFB setup.py from setuptools import setup, find_packages setup( name = "DataKeyEncriptionLib", version = "0.1", packages = find_packages(), install_requires=[ 'pycrypto' ], zip_safe=False, ) Could anyone provide some inputs here. Thanks in Advance python pycrypto share | improve this question

Maximum a posteriori, type-II error

Image
up vote 0 down vote favorite I've been trying to derive the marginalized likelihood, which I think I have done successfully. The problem is that I've ended up with an expression that I can't really explain, my expression is like this: $$L(W) = -frac{1}{2}sum_{i=1}^{N}y_i^{T}(WW^{T} + sigma^{2}I)^{-1}y_i$$ The problem is to explain the terms, for the "normal" Maximum Likelihood as well as the MAP, it's fairly straight forward, but I have a hard time understanding what this really means, is there anyone who can provide and explanation? maximum-likelihood share | cite | improve this question asked yesterday A