Question: from sklearn.datasets import load _ iris import numpy as np from sklearn.model _ selection import train _ test _ split iris = load _ iris

from sklearn.datasets import load_iris
import numpy as np
from sklearn.model_selection import train_test_split
iris =load_iris()
feature =iris.data[:100]
ans =
iris.target[:100]
X_train, X_test, y_train, y_test = train_test_split(feature, ans, test_size=0.3, random_state=1)
Feature values are petal length, petal width, calyx length, and calyx width.
Ans value is the variety of flowers (0: setosa, 1:versicolor)Data for Learning: X_train, y_train
Data for testing: X_test, y_test
*my question*
: Plz complete the code to train the artificial neural network and the code that outputs accuracy when verifying its performance ,
(accuracy: the percentage of predictions correct out of 30test samples) and Other than the package written on the top, you shouldn't use any other packages

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!