Views
No views yet
| ID | Label | Description |
|---|---|---|
| 0 | Agency | Human control, override rights, autonomy-preserving design, and delegated authority. |
| 1 | AI Governance | Regulation, accountability, audits, policy frameworks, and existential risk oversight. |
| 2 | Bias | Systematic errors, skewed training data, unfair representations, and proxy discrimination. |
| 3 | Consciousness | Machine sentience, subjective experience, philosophical debates, and moral patienthood. |
| 4 | Ethical Reasoning | Moral frameworks (utilitarian, deontological, virtue), dilemmas, and applied ethics. |
| 5 | Explainability | Interpretability, SHAP/LIME, attention visualization, and model transparency. |
| 6 | Fairness | Equitable outcomes, anti-discrimination, group/individual fairness metrics. |
| 7 | Intelligence | Cognitive capabilities, reasoning, transfer learning, AGI, and benchmarks. |
| 8 | Privacy | Data protection, consent, PII handling, differential privacy, and encryption. |
| Property | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Architecture | DistilBERT + classification head |
| Task | Multi-class text classification (9 classes) |
| Max sequence length | 128 tokens |
| Training epochs | 5 (with early stopping) |
| Optimizer | AdamW |
| Learning rate | 2e-5 |
| Weight decay | 0.01 |
| Warmup ratio | 0.1 |
pipeline API (simplest)1from transformers import pipeline
2
3classifier = pipeline(
4 "text-classification",
5 model="nexageapps/EthicsBERT",
6 top_k=3,
7)
8
9result = classifier("The hiring algorithm must produce equal outcomes across demographic groups.")
10# [{'label': 'Fairness', 'score': 0.92}, ...]
11print(result)1import torch
2import torch.nn.functional as F
3from transformers import DistilBertForSequenceClassification, DistilBertTokenizerFast
4
5model_id = "nexageapps/EthicsBERT"
6tokenizer = DistilBertTokenizerFast.from_pretrained(model_id)
7model = DistilBertForSequenceClassification.from_pretrained(model_id)
8model.eval()
9
10text = "SHAP values quantify each feature's contribution to a specific model prediction."
11inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
12
13with torch.no_grad():
14 logits = model(**inputs).logits
15 probs = F.softmax(logits, dim=-1)
16
17id2label = model.config.id2label
18predicted_label = id2label[int(probs.argmax())]
19print(f"Predicted: {predicted_label} ({probs.max().item():.2%})")1@misc{ethicsbert2024,
2 title = {EthicsBERT: A DistilBERT Model for AI Ethics Topic Classification},
3 author = {nexageapps},
4 year = {2024},
5 url = {https://huggingface.co/nexageapps/EthicsBERT}
6}