Riservatezza dei dati e anonimizzazione in Python
Rebeca Gonzalez
Data engineer



from diffprivlib.models import KMeans# Computing the clusters with the DP model model = KMeans(epsilon=1, n_clusters=3)# Run the model and obtain clusters clusters = model.fit_predict(X)
StandardScaler e riduzione dimensionale come PCA.diffprivlib lo fai come con i modelli sklearn.from sklearn.decomposition import PCA# Initialize PCA pca = PCA()# Fit transform data with PCA X = pca.fit_transform(X)# Computing the clusters with the DP model model = dp_Kmeans(epsilon=1, n_clusters=3)# Run the model and obtain clusters clusters = model.fit_predict(X)



from diffprivlib.models import KMeans as model# Computing the clusters with the DP model model = dp_Kmeans(epsilon=0.2, n_clusters=3)# Run the model and obtain clusters clusters = model.fit_predict(X)

Riservatezza dei dati e anonimizzazione in Python