Skip to content
Ben Alex Keen
  • Home
  • About
  • Blog
Menu Close
  • Home
  • About
  • Blog

Uncategorised

  1. Home>
  2. Uncategorised

K-means Clustering in Python

  • Post author:Ben Keen
  • Post published:9th May 2017
  • Post category:Uncategorised

K-means Clustering in PythonK-means clustering is a clustering algorithm that aims to partition $n$ observations into $k$ clusters. There are 3 steps: Initialisation - K initial "means" (centroids) are generated…

Continue ReadingK-means Clustering in Python

Mapping Categorical Data in pandas

  • Post author:Ben Keen
  • Post published:6th May 2017
  • Post category:Uncategorised

Mapping Categorical Data in pandasIn python, unlike R, there is no option to represent categorical data as factors. Factors in R are stored as vectors of integer values and can…

Continue ReadingMapping Categorical Data in pandas
© Ben Alex Keen