Downloads · 30 days
0
EdissonMora96/clientes_credito_vehiculos
clientes_credito_vehiculos is a machine learning model from EdissonMora96. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a KMeans clustering model trained to segment potential vehicle credit customers into different groups based on their responses to a survey. The survey captures various aspects of customer preferences and…
Downloads · 30 days
0
Access
Public
Updated Apr 12, 2024
Repo size
1.3 KB
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 38%
From the Hugging Face model README
This model is a KMeans clustering model trained to segment potential vehicle credit customers into different groups based on their responses to a survey. The survey captures various aspects of customer preferences and behaviors regarding vehicle acquisition and financing.
To use this model, load it with Python's pickle module and input the normalized feature data corresponding to the customer survey responses. The model will assign each new customer to one of the four clusters.
import pickle
import numpy as np
# Load the model
with open('kmeans_cluster_model.pkl', 'rb') as file:
model = pickle.load(file)
# Example data (normalized)
data = np.array([[0.1, 0.2, 0.1, -0.1, 0.0, 0.1, -0.2]])
cluster_label = model.predict(data)
print(f'Assigned Cluster: {cluster_label[0]}')
kmeans_cluster_model.pkl: The trained KMeans model.README.md: This file.requirements.txt: List of libraries required to run the model.