Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Select the intention of the following machine learning algorithms: from sklearn.neighbors import KNeighborsClassifier classifier = KNeighborsClassifier(n_neighbors = 5, metric = 'minkowski', p = 2)

1) Select the intention of the following machine learning algorithms:

from sklearn.neighbors import KNeighborsClassifier

classifier = KNeighborsClassifier(n_neighbors = 5, metric = 'minkowski', p = 2)

classifier.fit(X_train, y_train) kmeans = KMeans(n_clusters = 5, init = 'k-means++', random_state = 42)

y_kmeans = kmeans.fit_predict(X)

Group of answer choices

a. overfit the data for classification and underfit the data for the clustering

b. Look for 5 closest neighbors and form 5 clusters

c. Only form 5 clusters

d. underfit the data for classification and overfit the data for the clustering

2) The cost function that is used in logistic regression is:

Group of answer choices

a. Mean Squared Error

b. Both of these

c. None of these

d. Maximum Likelihood

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

b. Why were these values considered important?

Answered: 1 week ago