Skip to content

Instantly share code, notes, and snippets.

@abhishek-Kumar009
Created February 10, 2019 15:43
Show Gist options
  • Save abhishek-Kumar009/d76f45b2a1be0f57e57d143c2d63bf5b to your computer and use it in GitHub Desktop.
Save abhishek-Kumar009/d76f45b2a1be0f57e57d143c2d63bf5b to your computer and use it in GitHub Desktop.
mutest, sigma2test = estimateGaussian(Xtest)
ptest = multivariateGaussian(Xtest, mutest, sigma2test)
pvaltest = multivariateGaussian(Xvaltest, mutest, sigma2test)
F1test, epsilontest = selectThreshHold(yvaltest, pvaltest)
print('\nBest epsilon and F1 are\n',epsilontest, F1test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment