47
правок
Изменения
м
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import load_iris
from sklearn import svm, metrics
from sklearn.utils import shuffle
from sklearn.ensemble import RandomForestClassifier
import numpy
Нет описания правки
[[Файл:Mnist-predict.png|мини]]
import numpy
import random
import matplotlib.pyplot as plt
from sklearn import datasets, svm, metrics
from sklearn.datasets import load_iris,fetch_mldata import random
from sklearn.utils import shuffle
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier
from keras.utils import to_categorical
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.callbacks import ModelCheckpoint, CSVLogger
from numpy import arange
mnist = fetch_mldata('MNIST original')
indices = arange(len(mnist.data))
===Код===
iris=load_iris()
X = iris.data