filmov
tv
Python Bytes - Machine Learning Birch Part 2 Subcluster Predictions Code in Description
Показать описание
#Coded by Andrew C
import pandas as pd
from sklearn import datasets
import numpy as numpy
X = wine[['alcohol', 'total_phenols']]
scale = StandardScaler()
BRC = Birch(branching_factor=50, n_clusters=None, threshold=.5)
BRC.fit(X_scaled)
y_pred = BRC.predict(X_scaled)
print("Subcluster Predictions:")
print(y_pred)
#coding #datascience #python
import pandas as pd
from sklearn import datasets
import numpy as numpy
X = wine[['alcohol', 'total_phenols']]
scale = StandardScaler()
BRC = Birch(branching_factor=50, n_clusters=None, threshold=.5)
BRC.fit(X_scaled)
y_pred = BRC.predict(X_scaled)
print("Subcluster Predictions:")
print(y_pred)
#coding #datascience #python