Python Forum
Python clustering homework
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python clustering homework
#1
Dear all,

I really need your help with this assignment:

generate random data with dimension 5 and 4 clusters, then calculate the validity index for various values of k and show that k=4 has the highest validity

im really new to pyhton and i'm managed to do this so far

import numpy as np
import pandas as pd
from numpy.random import random
from numpy.random import randn
np.random.seed(20)
y=pd.DataFrame(randn(4,5))
print(y)
can anyone tell me how to write the full alogrithm , it would be muuuuuch appreciateeed
Reply


Messages In This Thread
Python clustering homework - by wjpython - May-11-2018, 06:45 PM
RE: Python clustering homework - by j.crater - May-11-2018, 07:24 PM
RE: Python clustering homework - by wjpython - May-11-2018, 07:33 PM
RE: Python clustering homework - by j.crater - May-11-2018, 07:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 3,955 Oct-12-2021, 10:12 AM
Last Post: buran
  CyperSecurity Using Python HomeWork ward1995 1 1,984 Jul-08-2021, 03:55 PM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,337 May-09-2021, 11:19 AM
Last Post: Yoriz
  Homework with python Johnsonmfw 1 1,708 Sep-20-2020, 04:03 AM
Last Post: ndc85430
  Python Homework Help *Urgent GS31 2 2,616 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,397 Sep-01-2019, 08:44 AM
Last Post: buran
  Python homework / functions sunhyunshine 1 2,472 May-11-2019, 05:37 PM
Last Post: MrTheOne
  python homework help ASAP gk34332 1 3,004 Mar-13-2019, 07:27 PM
Last Post: ichabod801
  Python homework assigment makisha 3 3,307 Feb-28-2019, 10:21 PM
Last Post: Yoriz
  Python Homework Help beepBoop123 2 3,080 Dec-12-2018, 06:25 PM
Last Post: beepBoop123

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020