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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

the watermark button is found on which ribbon tab ?

Answered: 1 week ago

Question

What do you believe was the cause of the turnover problem?

Answered: 1 week ago