---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:967831
- loss:MultipleNegativesRankingLoss
base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
widget:
- source_sentence: Gaji pekerja berdasarkan jenis pekerjaan dan umur, 2016
sentences:
- Rata-rata Upah/Gaji Bersih Sebulan Buruh/Karyawan/Pegawai Menurut Kelompok Umur
dan Jenis Pekerjaan (Rupiah), 2016
- '[Seri 2010] PDRB Triwulanan Atas Dasar Harga Berlaku Menurut Lapangan Usaha di
Provinsi Seluruh Indonesia (Miliar Rupiah), 2010-2024'
- Rata-rata Pendapatan Bersih Pekerja Bebas Menurut Provinsi dan Pendidikan Tertinggi
yang Ditamatkan, 2019
- source_sentence: Ke negara mana saja ekspor tanaman obat Indonesia tahun 2018?
sentences:
- Jumlah Rumah Tangga Perikanan Tangkap Menurut Provinsi dan Jenis Penangkapan,
2000-2016
- Perolehan Suara dan Kursi Dewan Perwakilan Rakyat (DPR) Menurut Partai Politik
Hasil Pemilu Tahun 2009 dan 2014
- Ekspor Tanaman Obat, Aromatik, dan Rempah-Rempah menurut Negara Tujuan Utama,
2012-2023
- source_sentence: Negara asal impor soybean 2023
sentences:
- Ringkasan Neraca Arus Dana, Triwulan III, 2010, (Miliar Rupiah)
- Rata-rata Pendapatan Bersih Berusaha Sendiri Menurut Provinsi dan Kelompok Umur
(ribu rupiah), 2018
- Impor Kedelai menurut Negara Asal Utama, 2017-2023
- source_sentence: Cek penghasilan bersih rata-rata yang didapat wiraswasta di Indonesia
tahun 2021, bedakan per provinsi dan ijazah terakhir
sentences:
- Rata-rata Pendapatan bersih Berusaha Sendiri menurut Provinsi dan Pendidikan yang
Ditamatkan, 2021
- Rata-rata Konsumsi dan Pengeluaran Perkapita Seminggu Menurut Komoditi Makanan
dan Golongan Pengeluaran per Kapita Seminggu di Provinsi Sumatera Selatan, 2018-2023
- Impor Daging Sejenis Lembu menurut Negara Asal Utama, 2018-2023
- source_sentence: Status pernikahan penduduk (10+) tiap provinsi, data 2012
sentences:
- Ringkasan Neraca Arus Dana, Triwulan I, 2013*), (Miliar Rupiah)
- Ekspor Batu Bara Menurut Negara Tujuan Utama, 2012-2023
- Persentase Penduduk Berumur 10 Tahun ke Atas menurut Provinsi, Jenis Kelamin,
dan Status Perkawinan, 2009-2018
datasets:
- yahyaabd/statictable-triplets-all
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- cosine_accuracy@1
- cosine_accuracy@3
- cosine_accuracy@5
- cosine_accuracy@10
- cosine_precision@1
- cosine_precision@3
- cosine_precision@5
- cosine_precision@10
- cosine_recall@1
- cosine_recall@3
- cosine_recall@5
- cosine_recall@10
- cosine_ndcg@10
- cosine_mrr@10
- cosine_map@100
model-index:
- name: SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
results:
- task:
type: information-retrieval
name: Information Retrieval
dataset:
name: bps statictable ir
type: bps-statictable-ir
metrics:
- type: cosine_accuracy@1
value: 0.8990228013029316
name: Cosine Accuracy@1
- type: cosine_accuracy@3
value: 0.9739413680781759
name: Cosine Accuracy@3
- type: cosine_accuracy@5
value: 0.9804560260586319
name: Cosine Accuracy@5
- type: cosine_accuracy@10
value: 0.9869706840390879
name: Cosine Accuracy@10
- type: cosine_precision@1
value: 0.8990228013029316
name: Cosine Precision@1
- type: cosine_precision@3
value: 0.3517915309446254
name: Cosine Precision@3
- type: cosine_precision@5
value: 0.2299674267100977
name: Cosine Precision@5
- type: cosine_precision@10
value: 0.13420195439739416
name: Cosine Precision@10
- type: cosine_recall@1
value: 0.7037534704802675
name: Cosine Recall@1
- type: cosine_recall@3
value: 0.777408879373005
name: Cosine Recall@3
- type: cosine_recall@5
value: 0.7896378239472596
name: Cosine Recall@5
- type: cosine_recall@10
value: 0.8147874661605627
name: Cosine Recall@10
- type: cosine_ndcg@10
value: 0.8242104501990923
name: Cosine Ndcg@10
- type: cosine_mrr@10
value: 0.9361834961997827
name: Cosine Mrr@10
- type: cosine_map@100
value: 0.7641191235697605
name: Cosine Map@100
---
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) on the [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) dataset. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2)
- **Maximum Sequence Length:** 128 tokens
- **Output Dimensionality:** 384 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all)
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("yahyaabd/allstats-search-mini-v1-2")
# Run inference
sentences = [
'Status pernikahan penduduk (10+) tiap provinsi, data 2012',
'Persentase Penduduk Berumur 10 Tahun ke Atas menurut Provinsi, Jenis Kelamin, dan Status Perkawinan, 2009-2018',
'Ekspor Batu Bara Menurut Negara Tujuan Utama, 2012-2023',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Information Retrieval
* Dataset: `bps-statictable-ir`
* Evaluated with [InformationRetrievalEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
| Metric | Value |
|:--------------------|:-----------|
| cosine_accuracy@1 | 0.899 |
| cosine_accuracy@3 | 0.9739 |
| cosine_accuracy@5 | 0.9805 |
| cosine_accuracy@10 | 0.987 |
| cosine_precision@1 | 0.899 |
| cosine_precision@3 | 0.3518 |
| cosine_precision@5 | 0.23 |
| cosine_precision@10 | 0.1342 |
| cosine_recall@1 | 0.7038 |
| cosine_recall@3 | 0.7774 |
| cosine_recall@5 | 0.7896 |
| cosine_recall@10 | 0.8148 |
| **cosine_ndcg@10** | **0.8242** |
| cosine_mrr@10 | 0.9362 |
| cosine_map@100 | 0.7641 |
## Training Details
### Training Dataset
#### statictable-triplets-all
* Dataset: [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) at [24979b4](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all/tree/24979b4f0d8269377aca975e20d52e69c3b5a030)
* Size: 967,831 training samples
* Columns: query, pos, and neg
* Approximate statistics based on the first 1000 samples:
| | query | pos | neg |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string | string |
| details |
Jumlah bank dan kantor bank di Indonesia, 2010-2017 | Bank dan Kantor Bank, 2010-2017 | Rata-Rata Pengeluaran per Kapita Sebulan Menurut Kelompok Barang (rupiah), 1998-2012 |
| Konsumsi makanan mingguan per orang di Sulteng: beda tingkat pengeluaran (2021) | Rata-rata Konsumsi dan Pengeluaran Perkapita Seminggu Menurut Komoditi Makanan dan Golongan Pengeluaran per Kapita Seminggu di Provinsi Sulawesi Selatan, 2018-2023 | IHK, Upah Nominal, Indeks Upah Nominal dan Riil Buruh Industri Berstatus di bawah Mandor Menurut Wilayah, 2008-2014 (2007=100) |
| Impor semen Indonesia, negara asal utama, 2021 | Impor Semen Menurut Negara Asal Utama, 2017-2023 | Penerimaan dari Wisatawan Mancanegara Menurut Negara Tempat Tinggal (juta US$), 2000-2014 |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Evaluation Dataset
#### statictable-triplets-all
* Dataset: [statictable-triplets-all](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all) at [24979b4](https://huggingface.co/datasets/yahyaabd/statictable-triplets-all/tree/24979b4f0d8269377aca975e20d52e69c3b5a030)
* Size: 967,831 evaluation samples
* Columns: query, pos, and neg
* Approximate statistics based on the first 1000 samples:
| | query | pos | neg |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string | string |
| details | Bagaimana hubungan antara bidang pekerjaan utama dan pendidikan pekerja 15+ di minggu lalu (tahun 2016)? | Penduduk Berumur 15 Tahun Ke Atas yang Bekerja Selama Seminggu yang Lalu Menurut Lapangan Pekerjaan Utama dan Pendidikan Tertinggi yang Ditamatkan, 2008 - 2024 | Bank dan Kantor Bank, 2010-2017 |
| Tren indikator kondisi perumahan, 2001 | Indikator Perumahan 1993-2023 | Banyaknya Desa/Kelurahan Menurut Keberadaan Kelompok Pertokoan, Pasar, dan Kios Sarana Produksi Pertanian (Saprotan), 2014 & 2018 |
| Gaji bersih rata-rata: Per pendidikan & lapangan kerja utama, Indonesia, 2021 | Rata-rata Upah/Gaji Bersih sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi dan Lapangan Pekerjaan Utama, 2021 | [Seri 2000] Laju Pertumbuhan Kumulatif PDB Menurut Lapangan Usaha (Persen), 2001-2014 |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 16
- `per_device_eval_batch_size`: 16
- `num_train_epochs`: 1
- `warmup_ratio`: 0.1
- `fp16`: True
- `load_best_model_at_end`: True
- `eval_on_start`: True
- `batch_sampler`: no_duplicates
#### All Hyperparameters