Метод k-means++ на языке Python

Бюджет: по договоренности
Мы должны решить задачу кластеризации, используя метод k-means++ (метод должен сам решить, исходя из имеющихся данных, сколько будет кластеров и к какому кластеру относится тот или иной объект). Для этого у нас есть набор данных рынка жилья Москвы test.csv. Целевой переменной будет выступать переменная price_doc – цена продажи.

Во внимание будем принимать только эти столбцы:

price_doc: sale price (this is the target variable)
id: transaction id
timestamp: date of transaction
full_sq: total area in square meters, including loggias, balconies and other non-residential areas
life_sq: living area in square meters, excluding loggias, balconies and other non-residential areas
floor: for apartments, floor of the building
max_floor: number of floors in the building
material: wall material
build_year: year built
num_room: number of living rooms
kitch_sq: kitchen area
state: apartment condition
product_type: owner-occupier purchase or investment
sub_area: name of the district
full_all: subarea population
male_f, female_f: subarea population by gender
young_*: population younger than working age
work_*: working-age population
ekder_*: retirement-age population
n_m_{all|male|female}: population between n and m years old
build_count_*: buildings in the subarea by construction type or year
x_count_500: the number of x within 500m of the property
x_part_500: the share of x within 500m of the property
_sqm_: square meters
cafe_count_d_price_p: number of cafes within d meters of the property that have an average bill under p RUB
trc_: shopping malls
prom_: industrial zones
green_: green zones
metro_: subway
_avto_: distances by car
mkad_: Moscow Circle Auto Road
ttk_: Third Transport Ring
sadovoe_: Garden Ring
bulvar_ring_: Boulevard Ring
kremlin_: City center
zd_vokzaly_: Train station
oil_chemistry_: Dirty industry
ts_: Power plant

В конечном итоге должно получится, к примеру, четыре кластера (класс жилья a, класс жилья b, класс жилья с, класс жилья d), и данные из тестового набора должны быть распределены на эти кластеры. Язык программирования Python.

PS файл с данными загрузить здесь не удалось, так как весит >5мб
Опубликован 04.03.2018 в 22:56 Последнее изменение: 04.03.2018 в 23:01

Выберите способ верификации:

Обновите страницу после прохождения верификации.