Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

ICA over mnist

parent a602d513
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
#from imports import *
import numpy as np
from numpy import genfromtxt
import csv
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from sklearn.decomposition import FastICA
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn import random_projection
from sklearn.cluster import KMeans
from sklearn.mixture import GaussianMixture
from imports import *
print("Step 1:\n Load data:")
......@@ -40,10 +23,10 @@ datasets = [("MNIST",MNISTtestData,MNISTtrainData,MNISTtestLabel,MNISTtrainLabel
transformedDatasets = []
name,testData, trainData,testLabel,trainLabel = datasets[1]
name,testData, trainData,testLabel,trainLabel = datasets[0]
print("Step 2: \nFeature reduction:")
N = 13
N = 100
te_scores = []
tr_scores = []
for n in range(1,N):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment