---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:64260
- loss:CosineSimilarityLoss
base_model: yahyaabd/allstats-search-mini-v1-1-mnrl
widget:
- source_sentence: q-2216
sentences:
- Statistik Potensi Desa Provinsi Jambi 2008
- Indeks Harga Sahsm
- 17cb76daaeda2a9d92a30af3
- source_sentence: q-4069
sentences:
- 61e74412ad7c948492537b61
- Ihpb Indonesia Tahun 2014
- Indeks Harga Perdagangan Besar Indonesia 2014, 2010=100
- source_sentence: q-748
sentences:
- 20dac9022b69b62ab3479d37
- Statistik Potensi Desa Provinsi Sulawesi Utara 2014
- data potensi dpsa di Provinsi Sulawesi Utara tahun 2014
- source_sentence: q-7475
sentences:
- Harga Konsumen Beberapa Barang dan Jasa Kelompok Kesehatan, Transportasi, dan
Pendidikan 90 Kota di Indonesia 2021
- Volume ekspor CPO Indonesia
- b2dbf308898a6d1748629240
- source_sentence: q-786
sentences:
- Statistik eCommerce 2022/2023
- Angka Kematian Bayi oper P#rovinsi
- f3b02f2b6706e104ea9d5b74
datasets:
- yahyaabd/bps-pub-cosine-pairs
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- pearson_cosine
- spearman_cosine
model-index:
- name: SentenceTransformer based on yahyaabd/allstats-search-mini-v1-1-mnrl
results:
- task:
type: semantic-similarity
name: Semantic Similarity
dataset:
name: sts dev
type: sts-dev
metrics:
- type: pearson_cosine
value: 0.9040861364751858
name: Pearson Cosine
- type: spearman_cosine
value: 0.8334861589775715
name: Spearman Cosine
- task:
type: semantic-similarity
name: Semantic Similarity
dataset:
name: sts test
type: sts-test
metrics:
- type: pearson_cosine
value: 0.9069041337320248
name: Pearson Cosine
- type: spearman_cosine
value: 0.8380868510850786
name: Spearman Cosine
---
# SentenceTransformer based on yahyaabd/allstats-search-mini-v1-1-mnrl
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [yahyaabd/allstats-search-mini-v1-1-mnrl](https://huggingface.co/yahyaabd/allstats-search-mini-v1-1-mnrl) on the [bps-pub-cosine-pairs](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs) 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:** [yahyaabd/allstats-search-mini-v1-1-mnrl](https://huggingface.co/yahyaabd/allstats-search-mini-v1-1-mnrl)
- **Maximum Sequence Length:** 128 tokens
- **Output Dimensionality:** 384 dimensions
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- [bps-pub-cosine-pairs](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs)
### 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-v2")
# Run inference
sentences = [
'q-786',
'Angka Kematian Bayi oper P#rovinsi',
'f3b02f2b6706e104ea9d5b74',
]
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
#### Semantic Similarity
* Datasets: `sts-dev` and `sts-test`
* Evaluated with [EmbeddingSimilarityEvaluator](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
| Metric | sts-dev | sts-test |
|:--------------------|:-----------|:-----------|
| pearson_cosine | 0.9041 | 0.9069 |
| **spearman_cosine** | **0.8335** | **0.8381** |
## Training Details
### Training Dataset
#### bps-pub-cosine-pairs
* Dataset: [bps-pub-cosine-pairs](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs) at [038a9de](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs/tree/038a9de1c44c113be84c41cc01f75a2627dd735c)
* Size: 64,260 training samples
* Columns: query_id, query, corpus_id, title, and score
* Approximate statistics based on the first 1000 samples:
| | query_id | query | corpus_id | title | score |
|:--------|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
| type | string | string | string | string | float |
| details |
q-1599 | Nilai Tukar Nelayan | 0b0da8fc2b6af9329a6d9cfe | Statistik Hotel dan Akomodasi Lainnya di Indonesia 2013 | 0.1 |
| q-1599 | nilai tukar nelayan | 0b0da8fc2b6af9329a6d9cfe | Statistik Hotel dan Akomodasi Lainnya di Indonesia 2013 | 0.1 |
| q-1599 | NILAI TUKAR NELAYAN | 0b0da8fc2b6af9329a6d9cfe | Statistik Hotel dan Akomodasi Lainnya di Indonesia 2013 | 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"
}
```
### Evaluation Dataset
#### bps-pub-cosine-pairs
* Dataset: [bps-pub-cosine-pairs](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs) at [038a9de](https://huggingface.co/datasets/yahyaabd/bps-pub-cosine-pairs/tree/038a9de1c44c113be84c41cc01f75a2627dd735c)
* Size: 8,067 evaluation samples
* Columns: query_id, query, corpus_id, title, and score
* Approximate statistics based on the first 1000 samples:
| | query_id | query | corpus_id | title | score |
|:--------|:-------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
| type | string | string | string | string | float |
| details | q-1273 | Sosek Desember 2021 | b7890a143bc751d1d84dcf4a | Laporan Bulanan Data Sosial Ekonomi Desember 2021 | 0.9 |
| q-1273 | sosek desember 2021 | b7890a143bc751d1d84dcf4a | Laporan Bulanan Data Sosial Ekonomi Desember 2021 | 0.9 |
| q-1273 | SOSEK DESEMBER 2021 | b7890a143bc751d1d84dcf4a | Laporan Bulanan Data Sosial Ekonomi Desember 2021 | 0.9 |
* 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`: 64
- `per_device_eval_batch_size`: 64
- `learning_rate`: 1e-05
- `num_train_epochs`: 2
- `warmup_ratio`: 0.1
- `fp16`: True
- `load_best_model_at_end`: True
- `label_smoothing_factor`: 0.01
- `eval_on_start`: True
#### All Hyperparameters