Skip to content

Instantly share code, notes, and snippets.

Mohamad Amin Mohamadi mohamad-amin

Block or report user

Report or block mohamad-amin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mohamad-amin
mohamad-amin / madelon_pca_classification.ipynb
Created May 2, 2019
Classification on Madelon dataset, using PCA feature selection
View madelon_pca_classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View slow_computation_gaussian_mixture.py
# Compute the probability of each component in the mixture
def _computeProbabilities(self, limits):
probabilities = np.zeros(numComponents) # numComponents refers to the number of components in this mixture
for component in range(numComponents):
# gmm is a GaussianMixture from sklearn.mixture
mean = gmm.means_[component]
cov = gmm.covariances_[component]
weight = gmm.weights_[component]
probabilities[component] = constrainedGaussianDensity(mean, cov, limits) * weight
return probabilities
@mohamad-amin
mohamad-amin / Main.java
Last active Mar 15, 2017
A java sample about this issue in EasyMVP repository: https://github.com/6thsolution/EasyMVP/issues/28
View Main.java
public class Main {
public static void main(String[] args) {
for (int i=0; i<10; i++) {
SimplePresenter presenter = new SimplePresenter();
}
}
}
You can’t perform that action at this time.