Downloads · 30 days
6
29% of all-time downloads
efbaro/HealthHistoryBERTimbau-pt-ft
HealthHistoryBERTimbau-pt-ft is a fill-mask model from efbaro. Use it when you need the model to fill a missing word. The card lists the license as mit.
The HealthHistoryBERTimbau-pt-ft was fine-tuned on the pre-trained model HealthHistoryBERTimbau-pt and with patient data from health insurances organized in the form of historical sentences. The initial objective of t…
Downloads · 30 days
6
29% of all-time downloads
All-time downloads
21
Public
Repo size
871 MB
Likes
0
Public
Click a slice to open those files.
.bin436 MB · 100%
From the Hugging Face model README
The HealthHistoryBERTimbau-pt-ft was fine-tuned on the pre-trained model HealthHistoryBERTimbau-pt and with patient data from health insurances organized in the form of historical sentences. The initial objective of the training was to predict hospitalizations, however, due to the possibility of applications in other tasks, we made these models available to the scientific community. This model was trained with Portuguese Health Insurance Data. There are also other training approaches that can be seen at:
The model was fine-tuned from 83,715 historical sentences from health insurance patients generated using the approach described in this paper Predicting Hospitalization from Health Insurance Data.
The model was fine-tuned on a GeForce NVIDIA RTX A5000 24GB GPU from laboratories of IT departament at UFPR (Federal University of Paraná).
We use a batch size of 16, a maximum sequence length of 512 tokens, accumulation steps of 4, number of epochs = 2 and a learning rate of 10−4 to fine-tune this model.
The training time was 5 hours 26 minutes per epoch.
Time to predict the first 500 sentences of dataset data_test_seed_pt_12.csv: 2.44 seconds
Time to predict the first 500 sentences + data tokenization of data_test_seed_pt_12.csv: 6.35 seconds
Predictions made with the maximum sentence length allowed by the models.
Load the model via the transformers library:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("efbaro/HealthHistoryBERTimbau-pt-ft")
model = AutoModel.from_pretrained("efbaro/HealthHistoryBERTimbau-pt-ft")
Refer to the original paper, Predicting Hospitalization with LLMs from Health Insurance Data
Refert to another article related to this research, Predicting Hospitalization from Health Insurance Data
Email: