Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instead of using K - MEANS as stated below: PLEASE SEE IF USING T - SNE WILL REDUCE THE NUMBER OF DIMENSIONS. ARE THE RESULTE

Instead of using K-MEANS as stated below: PLEASE SEE IF USING T-SNE WILL REDUCE THE NUMBER OF DIMENSIONS. ARE THE RESULTE BETTER, WORSE, OR THE SAME?
*please use numpy**
he program should print out the habitat number for each alligator in the dataset. Then it should print out the K-means centers. Then, we are assuming that a new turtle is arriving. Ask the user to input the length, height, width, color and weight for this new alligator Then have the K-mean model predict the correct habitat (1,2 or 3) for the new alligator.
Here is sample code. This is only a sample of how the program will run. The number may not be correct. Do no use these numbers for testing.
Load alligator data
Create K-means mode
Habitat number for each alligator
[0022200111]
Centers
[[4.2.2.51.256.]
[7.5.3.666666672.7.66666667]
[8.1.666666672.666666672.666666678.]]
Enter information for new alligator
Enter length 2
Enter height 3
Enter width 4
Enter color code (1-3)1
Enter weight 5
Put this alligator in habitat [0]

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Define failure. (p. 273)

Answered: 1 week ago