Files
wehub-resource-sync 593b94c120
pytest / Unit Tests (push) Has been cancelled
pytest / Integration (integration_tests_a) (push) Has been cancelled
pytest / Integration (integration_tests_b) (push) Has been cancelled
pytest / Integration (integration_tests_c) (push) Has been cancelled
pytest / Integration (integration_tests_d) (push) Has been cancelled
pytest / Integration (integration_tests_e) (push) Has been cancelled
pytest / Integration (integration_tests_f) (push) Has been cancelled
pytest / Integration (integration_tests_g) (push) Has been cancelled
pytest / Integration (integration_tests_h) (push) Has been cancelled
pytest / Integration (integration_tests_i) (push) Has been cancelled
pytest / Integration (integration_tests_j) (push) Has been cancelled
pytest / Distributed (distributed_a) (push) Has been cancelled
pytest / Distributed (distributed_b) (push) Has been cancelled
pytest / Distributed (distributed_c) (push) Has been cancelled
pytest / Distributed (distributed_d) (push) Has been cancelled
pytest / Distributed (distributed_e) (push) Has been cancelled
pytest / Distributed (distributed_f) (push) Has been cancelled
pytest / Minimal Install (push) Has been cancelled
pytest / Event File (push) Has been cancelled
pytest (slow) / py-slow (push) Has been cancelled
Publish JSON Schema / publish-schema (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:49:20 +08:00

32 lines
937 B
YAML

# Objectosphere classifier (Dhamija et al., NeurIPS 2018).
#
# Extends the Entropic Open-Set loss with a logit-norm objective:
# - Known samples: CE + hinge pushing ||logits|| >= xi
# - Background samples: entropy maximisation + magnitude suppression (zeta * ||logits||^2)
#
# At inference time, flag unknown inputs with a norm threshold:
# is_unknown = logit_norm < threshold
# Choose the threshold from the validation set (e.g. 5th percentile of
# known-class norms).
model_type: ecd
input_features:
- name: feature_1
type: number
- name: feature_2
type: number
output_features:
- name: label
type: category
loss:
type: objectosphere
background_class: 4 # adjust to match your vocabulary index
xi: 10.0 # minimum logit norm for known-class samples
zeta: 0.1 # weight for unknown-class magnitude suppression
trainer:
epochs: 50
learning_rate: 0.001