---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:212917
- loss:CosineSimilarityLoss
base_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2
widget:
- source_sentence: statistik neraca arus dana indonesia
sentences:
- Statistik Kelapa Sawit Indonesia 2012
- Distribusi Perdagangan Komoditas Kedelai Indonesia 2023
- Data Runtun Statistik Konstruksi 1990-2010
- source_sentence: Seberapa besar kenaikan produksi IBS pada Triwulan IV Tahun 2013
dibandingkan Triwulan IV Tahun Sebelumnya?
sentences:
- Pertumbuhan PDB 2013 Mencapai 5,78 Persen
- Statistik Komuter Gerbangkertosusila Hasil Survei Komuter Gerbangkertosusila 2017
- Statistik Penduduk Lanjut Usia Provinsi Jawa Timur 2010-Hasil Sensus Penduduk
2010
- source_sentence: 'Penduduk Papua: migrasi 2015'
sentences:
- Rata-rata Upah/Gaji Bersih sebulan Buruh/Karyawan Pegawai Menurut Pendidikan Tertinggi
dan jenis pekerjaan utama, 2019
- Statistik Pemotongan Ternak 2010 dan 2011
- Statistik Harga Produsen Pertanian Sub Sektor Tanaman Pangan, Hortikultura dan
Perkebunan Rakyat 2010
- source_sentence: statistik konstruksi 2022
sentences:
- Studi Modal Sosial 2006
- BRS upah buruh agustus 2018
- Statistik Perdagangan Luar Negeri Indonesia Ekspor 2006 vol 1
- source_sentence: Statistik ekspor Indonesia Maret 2202
sentences:
- Produk Domestik Bruto Indonesia Triwulanan 2006-2010
- Indeks Perilaku Anti Korupsi (IPAK) Indonesia 2023 sebesar 3,92, menurun dibandingkan
IPAK 2022
- Buletin Statistik Perdagangan Luar Negeri Ekspor Menurut HS, Januari 2023
datasets:
- yahyaabd/allstats-semantic-search-synthetic-dataset-v1
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- pearson_cosine
- spearman_cosine
model-index:
- name: SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
results:
- task:
type: semantic-similarity
name: Semantic Similarity
dataset:
name: allstats semantic search v1 dev
type: allstats-semantic-search-v1-dev
metrics:
- type: pearson_cosine
value: 0.9894566758405579
name: Pearson Cosine
- type: spearman_cosine
value: 0.9072484378842124
name: Spearman Cosine
- task:
type: semantic-similarity
name: Semantic Similarity
dataset:
name: allstat semantic search v1 test
type: allstat-semantic-search-v1-test
metrics:
- type: pearson_cosine
value: 0.9895284407960067
name: Pearson Cosine
- type: spearman_cosine
value: 0.9074137706349162
name: Spearman Cosine
---
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) on the [allstats-semantic-search-synthetic-dataset-v1](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1) dataset. It maps sentences & paragraphs to a 768-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-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2)
- **Maximum Sequence Length:** 128 tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- [allstats-semantic-search-synthetic-dataset-v1](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1)
### 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: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, '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-semantic-search-model-v1")
# Run inference
sentences = [
'Statistik ekspor Indonesia Maret 2202',
'Produk Domestik Bruto Indonesia Triwulanan 2006-2010',
'Buletin Statistik Perdagangan Luar Negeri Ekspor Menurut HS, Januari 2023',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Semantic Similarity
* Datasets: `allstats-semantic-search-v1-dev` and `allstat-semantic-search-v1-test`
* Evaluated with [EmbeddingSimilarityEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
| Metric | allstats-semantic-search-v1-dev | allstat-semantic-search-v1-test |
|:--------------------|:--------------------------------|:--------------------------------|
| pearson_cosine | 0.9895 | 0.9895 |
| **spearman_cosine** | **0.9072** | **0.9074** |
## Training Details
### Training Dataset
#### allstats-semantic-search-synthetic-dataset-v1
* Dataset: [allstats-semantic-search-synthetic-dataset-v1](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1) at [06f849a](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1/tree/06f849af5602fea6ce00e5ecdd9a99cd0cafc2de)
* Size: 212,917 training samples
* Columns: query
, doc
, and label
* Approximate statistics based on the first 1000 samples:
| | query | doc | label |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
| type | string | string | float |
| details |
ringkasan aktivitas badan pusat statistik tahun 2018
| Statistik Harga Produsen sektor pertanian di indonesia 2008
| 0.1
|
| indikator kesejahteraan petani rejang lebong 2015
| Diagram Timbang Nilai Tukar Petani Kabupaten Rejang Lebong 2015
| 0.82
|
| Berapa persen kenaikan kunjungan wisatawan mancanegara pada April 2024?
| Indeks Perilaku Anti Korupsi (IPAK) Indonesia 2023 sebesar 3,92, menurun dibandingkan IPAK 2022
| 0.0
|
* Loss: [CosineSimilarityLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
```json
{
"loss_fct": "torch.nn.modules.loss.MSELoss"
}
```
### Evaluation Dataset
#### allstats-semantic-search-synthetic-dataset-v1
* Dataset: [allstats-semantic-search-synthetic-dataset-v1](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1) at [06f849a](https://huggingface.co/datasets/yahyaabd/allstats-semantic-search-synthetic-dataset-v1/tree/06f849af5602fea6ce00e5ecdd9a99cd0cafc2de)
* Size: 26,614 evaluation samples
* Columns: query
, doc
, and label
* Approximate statistics based on the first 1000 samples:
| | query | doc | label |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------|
| type | string | string | float |
| details | Laporan bulanan ekonomi Indonesia bulan November 201
| Laporan Bulanan Data Sosial Ekonomi November 2021
| 0.92
|
| pekerjaan layak di indonesia tahun 2022: data dan analisis
| Statistik Penduduk Lanjut Usia Provinsi Papua Barat 2010-Hasil Sensus Penduduk 2010
| 0.09
|
| Tabel pendapatan rata-rata pekerja lepas berdasarkan provinsi dan pendidikan tahun 2021
| Nilai Impor Kendaraan Bermotor Menurut Negara Asal Utama (Nilai CIF:juta US$), 2018-2023
| 0.1
|
* Loss: [CosineSimilarityLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
```json
{
"loss_fct": "torch.nn.modules.loss.MSELoss"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 32
- `per_device_eval_batch_size`: 32
- `num_train_epochs`: 4
- `warmup_ratio`: 0.1
- `fp16`: True
#### All Hyperparameters