Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992