Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:148295
loss:SymmetricLoss
text-embeddings-inference
Run this model with HF Jobs
Run WeihaoLi/icd9 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/WeihaoLi/icd9. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/WeihaoLi/icd9 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use WeihaoLi/icd9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use WeihaoLi/icd9 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("WeihaoLi/icd9") sentences = [ "Complications of pregnancy; childbirth; and the puerperium → Complications during labor → Forceps delivery", "Complications of pregnancy; childbirth; and the puerperium → Complications during labor", "Complications of pregnancy; childbirth; and the puerperium → Other complications of birth; puerperium affecting management of mother", "Complications of pregnancy; childbirth; and the puerperium → Normal pregnancy and/or delivery → Other pregnancy and delivery including normal" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Upload atc_embedding.csv
Browse filesFiles changed (2)
- .gitattributes+1
- atc_embedding.csvAdded+3
34 unmodified lines35363734 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -texticd_embedding.csv filter=lfs diff=lfs merge=lfs -texticd9_nodes_emb.csv filter=lfs diff=lfs merge=lfs -text34 unmodified lines3536373834 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -texticd_embedding.csv filter=lfs diff=lfs merge=lfs -texticd9_nodes_emb.csv filter=lfs diff=lfs merge=lfs -textatc_embedding.csv filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:74ca4abc626a63b61dca3996209b349c4391d2fa1ef6f297c42d0c6363822f90size 58456888.gitattributes+1
atc_embedding.csvAdded+3