Questions tagged [iris-dataset]

Relates to the Iris flower dataset published by Ronald Fisher's 1936 paper "The use of multiple measurements in taxonomic problems".

Questions regarding the dataset and its application, for example in statistics and machine learning, are appropriate for this tag.

114 questions
5
votes
1 answer

How to load Tensorflow Dataset "Iris" and change the labels into one-hot encode

I'm trying to load the "iris" dataset directly from tensorflow datasets and I'm stuck. I'm use to working with CSVs. import tensorflow as tf import tensorflow_datasets as tfds data = tfds.load("iris",split='train[:80%]', as_supervised=True) data =…
4
votes
1 answer

GGally::ggpairs plot does not display correlation coefficients

I am trying to understand why the plot with the correlation coefficient is not showing while passing the command ggpairs(iris, mapping=ggplot2::aes(colour = Species)) console output Here is what it looks like: the plots displaying the correlation…
mogad0n
  • 41
  • 5
4
votes
0 answers

TypeError: pairplot() got an unexpected keyword argument 'color

sns.pairplot(df,hue='target') I can plot the pairplot using the pairplot function. but i want to plot it using the facegrid function.i tried sns.FacetGrid(df,hue='target').map(sns.pairplot,hue='target').add_legend() but this line gives me error…
keshav swami
  • 551
  • 1
  • 6
  • 11
3
votes
1 answer

Performing multiple pairwise comparisons between each species in the iris dataset

I would like to perform pairwise comparisons (using t tests) between each species in the iris dataset to see which species differ significantly in which variables. That is, each pairwise comparison would compare all measurement values of one species…
goshawk
  • 73
  • 5
3
votes
1 answer

Iris dataset not showing "Species" column

I am working with numpy and pandas on Python to learn how to work on dataframes. I'm coding on Collaboratory and I have loaded the Iris dataset but for some reason, there is no "Species" column in my dataframe. Maybe I've loaded it in an incorrect…
Chefi
  • 41
  • 4
3
votes
3 answers

load_iris() got an unexpected keyword argument 'as_frame'

I tried to import the iris dataset to daraframe but it shows following error. I checked the scikit-learn documentation there is as_frame named parameter for load_iris(). My Code: from sklearn.datasets import load_iris df =…
Harsh Kothari
  • 55
  • 1
  • 9
3
votes
0 answers

How to make a simple Bayesian neural network for multiclass classification in pymc2

I want to build a BNN model for iris dataset in pymc2. I defined my model and I tried to train but the accuracy is just 0.33 on train and test data. This is my current code iterations = 2000 iris = load_iris() X = iris.data[:, :] Y = iris.target X…
Adrian Ispas
  • 152
  • 1
  • 5
2
votes
1 answer

Identifying non-overlapping values between factors in a dataframe in R

I would like to identify all non-overlapping values between groups (factors) in a dataframe. Let's use iris to illustrate. The iris dataset has measurements of sepal length, sepal width, petal length, and petal width for three plant species (setosa,…
goshawk
  • 73
  • 5
2
votes
1 answer

Why is scaling the iris dataset making the MAE much worse?

This code is predicting sepal length from the iris dataset, and it is getting a MAE of around .94 from sklearn import metrics from sklearn.neural_network import * from sklearn.model_selection import * from sklearn.preprocessing import * from sklearn…
2
votes
1 answer

How can I condense a series of seaborn scatterplots using for loops?

does anyone know how I could use a for loop to iterate through this? sns.FacetGrid(iris, hue = "Species").map(sns.scatterplot, "Sepal Length", "Sepal Width").add_legend() sns.FacetGrid(iris, hue = "Species").map(sns.scatterplot, "Petal Length",…
2
votes
1 answer

View bar / texte d'axe / étiquettes tags with theme_void r

I made a graph on the iris database like this : here's the code that allowed me to get this graph : library(tidyverse) iris %>% gather("Type", "Value",-Species) %>% ggplot(aes(Species, Value, fill = Type)) + geom_bar(position = "dodge",…
2
votes
2 answers

SHAP Importance for Ranger in R

Having a binary Classification problem: how would be possible to get the Shap Contribution for variables for a Ranger model? Sample data: library(ranger) library(tidyverse) # Binary Dataset df <- iris df$Target <- if_else(df$Species ==…
PeCaDe
  • 277
  • 1
  • 8
  • 33
2
votes
1 answer

How can i get my output from MVN package into a table in R?

I am trying to classify if each class in the Iris dataset is multivariate normal or not. I am using the MVN package in R and have generate the following: library(MVN) attach(iris) Mar<-MVN::mvn(data=iris,subset="Species",…
daisybeats
  • 217
  • 1
  • 6
2
votes
1 answer

Applying Graph Clustering Algorithms on the (famous) Iris data set

My question deals with the application of graph clustering algorithms. Most times, I see that graphs are made by using nodes and edges within the data. For example, suppose we have social media data: each individual in the data could be represented…
stats_noob
  • 5,401
  • 4
  • 27
  • 83
2
votes
1 answer

K-means clustering error: only 0's may be mixed with negative subscripts

I am trying to do kmeans clustering on IRIS data in R. I want to use KKZ option for the seed selection (starting points of clusters). If i dont standardize the data i have no issues with the KKZ command: library(inaparc) res<- kkz(x=iris[,1:4], k=3)…
1
2 3 4 5 6 7 8