Downloads · 30 days
3
12% of all-time downloads
AventIQ-AI/bert-employee-behaviour-analysis
bert-employee-behaviour-analysis is a machine learning model from AventIQ-AI. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Model Name: Employee behaviour Analysis Model\ Base Model: distilbert-base-uncased\ Dataset: yelpreviewfull
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
26
Public
Parameters
67M
134 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors134 MB · 99%
From the Hugging Face model README
Model Name: Employee behaviour Analysis Model
Base Model: distilbert-base-uncased
Dataset: yelp_review_full
Training Device: CUDA (GPU)
Dataset Structure:
DatasetDict({
train: Dataset({
features: ['employee_feedback', 'behavior_category'],
num_rows: 50,000
})
validation: Dataset({
features: ['employee_feedback', 'behavior_category'],
num_rows: 20,000
})
})
Available Splits:
Feature Representation:
Training Process:
Hyperparameters:
Performance Metrics:
import torch
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
def load_model(model_path):
tokenizer = DistilBertTokenizer.from_pretrained(model_path)
model = DistilBertForSequenceClassification.from_pretrained(model_path).half()
model.eval()
return model, tokenizer
def classify_behavior(feedback, model, tokenizer, device="cuda"):
inputs = tokenizer(
feedback,
max_length=256,
padding="max_length",
truncation=True,
return_tensors="pt"
).to(device)
outputs = model(**inputs)
predicted_class = torch.argmax(outputs.logits, dim=1).item()
return predicted_class
# Example usage
if __name__ == "__main__":
model_path = "your-username/employee-behavior-analysis" # Replace with your HF repo
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model, tokenizer = load_model(model_path)
model.to(device)
feedback = "The team is highly collaborative and supportive."
category = classify_behavior(feedback, model, tokenizer, device)
print(f"Feedback: {feedback}")
print(f"Predicted Behavior Category: {category}")
Expected Output:
Feedback: The team is highly collaborative and supportive.
Predicted Behavior Category: Positive Collaboration
The Employee Behavior Analysis Model, built on DistilBERT-base-uncased, is designed to classify employee feedback into predefined behavior categories. This helps HR and management teams analyze workforce sentiment and improve workplace culture.