iris-dataset

ValueError: shapes (120,6) and (7,) not aligned: 6 (dim 1) != 7 (dim 0)

ValueError: shapes (120,6) and (7,) not aligned: 6 (dim 1) != 7 (dim 0) Question: I’m trying to implement multiclass classification with logistic regression on an Iris.csv dataset from Kaggle. This is my code. import numpy as np import pandas as pd from sklearn.model_selection import train_test_split def standardize(X_tr): # (x-Mean(x))/std(X) Normalizes data for i in …

Total answers: 1

I use pytorch to train a model to classify iris, but my acc was about 0.4

I use pytorch to train a model to classify iris, but my acc was about 0.4 Question: I have tried many improvements like increasing epochs, using better loss functions and optimizers, deepening the network and shuffling the dataset, etc, but still to no avail. This problem has been bothering me for a long time, thanks …

Total answers: 1