---
language: []
library_name: sentence-transformers
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:15525
- loss:MultipleNegativesRankingLoss
base_model: BAAI/bge-small-en-v1.5
datasets:
- baconnier/finance_dataset_small_private
metrics:
- cosine_accuracy
- dot_accuracy
- manhattan_accuracy
- euclidean_accuracy
- max_accuracy
widget:
- source_sentence: What is the loan to value ratio (LTV) for Samantha's mortgage,
and how does it relate to the definition of LTV?
sentences:
- 'Loan amount = Home value - Down payment
Loan amount = $300,000 - $60,000 = $240,000
LTV = Loan amount ÷ Home value
LTV = $240,000 ÷ $300,000 = 0.8 or 80%
The LTV is the proportion of the property''s value financed by the loan.
The LTV for Samantha''s mortgage is 80%, which aligns with the definition of LTV
as the proportion of the property''s value financed by the loan.'
- 'LTV = Down payment ÷ Home value
LTV = $60,000 ÷ $300,000 = 0.2 or 20%
The LTV for Samantha''s mortgage is 20%.'
- What is a sale in the context of securities trading?
- source_sentence: What is greenmail, and how does it differ from a typical stock
acquisition?
sentences:
- 'Greenmail is when a company buys a small amount of stock in another company.
This is different from a normal stock purchase because the amount is small.
Greenmail is a small stock purchase, unlike a typical acquisition.'
- 'Greenmail is a corporate finance tactic where an unfriendly entity acquires a
large block of a target company''s stock, intending to force the target company
to buy back the shares at a significant premium to prevent a hostile takeover.
This differs from a typical stock acquisition, which is usually done for investment
purposes or to gain a smaller ownership stake, without the explicit intention
of forcing a buyback or threatening a takeover.
Greenmail is a tactic used by an unfriendly entity to force a target company to
buy back its shares at a premium to prevent a hostile takeover, while a typical
stock acquisition is done for investment or to gain a smaller ownership stake
without the intention of forcing a buyback or threatening a takeover.'
- What is the process of 'circling' in the context of underwriting a new share issue?
- source_sentence: 'ISOs are not taxed at grant or exercise. If shares are held for
2 years from grant and 1 year from exercise, the profit is taxed as long-term
capital gain. If holding periods are not met, it''s a disqualifying disposition,
and the profit is taxed as ordinary income.
ISOs are tax-free at grant and exercise. Profit is taxed as capital gain or ordinary
income based on holding periods.'
sentences:
- 'Incentive Stock Options have no tax benefits and are taxed as ordinary income
when exercised.
ISOs are taxed as ordinary income when exercised.'
- What are the key characteristics of Incentive Stock Options (ISOs) in terms of
taxation?
- What is a short squeeze, and how does it affect stock prices?
- source_sentence: What is a sell order, and how does it relate to Maggie's decision
to sell her XYZ Corporation shares?
sentences:
- 'A performance fund is a growth-oriented mutual fund that invests primarily in
stocks of companies with high growth potential and low dividend payouts. These
funds are typically associated with higher risk compared to other types of mutual
funds. For example, balanced funds invest in a mix of stocks and bonds and have
a more moderate risk profile, while money market funds invest in low-risk, short-term
securities and offer lower returns. Performance funds aim for higher capital appreciation
but come with increased volatility.
A performance fund is a high-risk, growth-oriented mutual fund that invests in
stocks with high growth potential and low dividends, aiming for capital appreciation.
It differs from balanced funds (moderate risk, mix of stocks and bonds) and money
market funds (low risk, short-term securities, lower returns).'
- 'A sell order is when you want to buy shares of a stock. Maggie wanted to sell
her XYZ shares because the price was going up.
Maggie placed a sell order to buy XYZ shares since the price was increasing.'
- 'A sell order is an instruction given by an investor to a broker to sell a specific
financial asset at a certain price or market condition. Maggie placed a sell order
for 1,000 shares of XYZ Corporation at a limit price of $50 per share because
she believed the company''s recent acquisition announcement would negatively impact
the stock price in the short term.
Maggie placed a sell order to sell 1,000 XYZ shares at $50 or higher due to her
expectation of a short-term price decline following the company''s acquisition
announcement.'
- source_sentence: What is industrial production, and how is it measured by the Federal
Reserve Board?
sentences:
- What is triangular arbitrage, and how does it allow traders to profit from price
discrepancies across three different markets?
- 'Industrial production is a statistic that measures the output of factories and
mines in the US. It is released by the Federal Reserve Board every quarter.
Industrial production measures factory and mine output, released quarterly by
the Fed.'
- 'Industrial production is a statistic determined by the Federal Reserve Board
that measures the total output of all US factories and mines on a monthly basis.
The Fed collects data from various government agencies and trade associations
to calculate the industrial production index, which serves as an important economic
indicator, providing insight into the health of the manufacturing and mining sectors.
Industrial production is a monthly statistic calculated by the Federal Reserve
Board, measuring the total output of US factories and mines using data from government
agencies and trade associations, serving as a key economic indicator for the manufacturing
and mining sectors.'
pipeline_tag: sentence-similarity
model-index:
- name: SentenceTransformer based on BAAI/bge-small-en-v1.5
results:
- task:
type: triplet
name: Triplet
dataset:
name: Finance Embedding Metric
type: Finance_Embedding_Metric
metrics:
- type: cosine_accuracy
value: 0.9791425260718424
name: Cosine Accuracy
- type: dot_accuracy
value: 0.02085747392815759
name: Dot Accuracy
- type: manhattan_accuracy
value: 0.9779837775202781
name: Manhattan Accuracy
- type: euclidean_accuracy
value: 0.9791425260718424
name: Euclidean Accuracy
- type: max_accuracy
value: 0.9791425260718424
name: Max Accuracy
---
# SentenceTransformer based on BAAI/bge-small-en-v1.5
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) on the [baconnier/finance_dataset_small_private](https://huggingface.co/datasets/baconnier/finance_dataset_small_private) 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:** [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5)
- **Maximum Sequence Length:** 512 tokens
- **Output Dimensionality:** 384 tokens
- **Similarity Function:** Cosine Similarity
- **Training Dataset:**
- [baconnier/finance_dataset_small_private](https://huggingface.co/datasets/baconnier/finance_dataset_small_private)
### 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': 512, 'do_lower_case': True}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
```
## 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("baconnier/Finance2_embedding_small_en-V1.5")
# Run inference
sentences = [
'What is industrial production, and how is it measured by the Federal Reserve Board?',
'Industrial production is a statistic determined by the Federal Reserve Board that measures the total output of all US factories and mines on a monthly basis. The Fed collects data from various government agencies and trade associations to calculate the industrial production index, which serves as an important economic indicator, providing insight into the health of the manufacturing and mining sectors.\nIndustrial production is a monthly statistic calculated by the Federal Reserve Board, measuring the total output of US factories and mines using data from government agencies and trade associations, serving as a key economic indicator for the manufacturing and mining sectors.',
'Industrial production is a statistic that measures the output of factories and mines in the US. It is released by the Federal Reserve Board every quarter.\nIndustrial production measures factory and mine output, released quarterly by the Fed.',
]
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
#### Triplet
* Dataset: `Finance_Embedding_Metric`
* Evaluated with [TripletEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
| Metric | Value |
|:-------------------|:-----------|
| cosine_accuracy | 0.9791 |
| dot_accuracy | 0.0209 |
| manhattan_accuracy | 0.978 |
| euclidean_accuracy | 0.9791 |
| **max_accuracy** | **0.9791** |
## Training Details
### Training Dataset
#### baconnier/finance_dataset_small_private
* Dataset: [baconnier/finance_dataset_small_private](https://huggingface.co/datasets/baconnier/finance_dataset_small_private) at [d7e6492](https://huggingface.co/datasets/baconnier/finance_dataset_small_private/tree/d7e6492d2b42d28b49bbe5f2c91bf93f04b570cb)
* Size: 15,525 training samples
* Columns: anchor
, positive
, and negative
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
| type | string | string | string |
| details |
What is the key difference between a whole loan and a participation loan in terms of investment ownership?
| The context clearly states that a whole loan is a type of investment where an investor purchases the entire mortgage loan from the original lender, becoming the sole owner. This is in contrast to a participation loan, where multiple investors share ownership of a single loan. Therefore, the key difference between a whole loan and a participation loan is that a whole loan is owned entirely by a single investor, while a participation loan involves shared ownership among multiple investors.
In a whole loan, a single investor owns the entire mortgage loan, while in a participation loan, multiple investors share ownership of the loan.
| A whole loan is where multiple investors share ownership of a loan, while a participation loan is where an investor purchases the entire loan. Since the context states that a whole loan is where an investor purchases the entire mortgage loan and becomes the sole owner, this answer is incorrect.
A whole loan involves multiple investors, while a participation loan is owned by a single investor.
|
| The role of an executor is to manage and distribute the assets of a deceased person's estate in accordance with their will. This includes tasks such as settling debts, filing tax returns, and ensuring that the assets are distributed to the beneficiaries as specified in the will. The executor is appointed by the court to carry out these duties. In the given context, Michael Johnson was nominated by John Smith in his will and appointed by the court as the executor of John's estate, which was valued at $5 million. Michael's responsibilities include dividing the estate equally among John's three children, donating $500,000 to the local animal shelter as per John's instructions, settling the $200,000 mortgage and $50,000 credit card debt, and filing John's final income tax return and paying any outstanding taxes.
An executor, appointed by the court, manages and distributes a deceased person's assets according to their will, settling debts, filing taxes, and ensuring the will is followed.
| What is the role of an executor in managing a deceased person's estate?
| An executor is someone who manages a deceased person's estate. They are responsible for distributing the assets according to the will. In this case, John Smith passed away and nominated Michael Johnson as the executor.
The executor is responsible for distributing the assets of a deceased person's estate according to their will.
|
| What is a ticker tape, and how does it help investors?
| A ticker tape is a computerized device that relays stock symbols, latest prices, and trading volumes to investors worldwide in real-time. It helps investors by providing up-to-the-second information about the stocks they are monitoring or interested in, enabling them to make quick and informed trading decisions based on the most current market data available.
A ticker tape is a real-time digital stock data display that empowers investors to make timely, data-driven trading decisions by providing the latest stock symbols, prices, and volumes.
| A ticker tape is a device that shows stock information. It helps investors by providing some data about stocks.
A ticker tape provides stock data to investors.
|
* 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
#### baconnier/finance_dataset_small_private
* Dataset: [baconnier/finance_dataset_small_private](https://huggingface.co/datasets/baconnier/finance_dataset_small_private) at [d7e6492](https://huggingface.co/datasets/baconnier/finance_dataset_small_private/tree/d7e6492d2b42d28b49bbe5f2c91bf93f04b570cb)
* Size: 862 evaluation samples
* Columns: anchor
, positive
, and negative
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string | string |
| details | What is the underwriter's discount in the given IPO scenario, and how does it relate to the gross spread?
| The underwriter's discount is the difference between the price the underwriter pays for the shares and the price at which they sell them to the public. In this case, the underwriter buys the shares at a 7% discount from the IPO price of $20 per share. The underwriter's discount is also known as the gross spread, as it represents the gross profit earned by the underwriter.
The underwriter's discount is 7%, which is equivalent to $1.40 per share. This is also known as the gross spread, representing the underwriter's gross profit.
| The underwriter's discount is the difference between the price the underwriter pays for the shares and the price at which they sell them to the public. In this case, the underwriter buys the shares at a 7% discount, but the gross spread is not mentioned.
The underwriter's discount is 7%, but the gross spread is unknown.
|
| What is the primary function of the equity market, and how does it relate to the stock market?
| The equity market, synonymous with the stock market, serves as a platform for companies to issue ownership shares to raise capital for growth and expansion. Simultaneously, it allows investors to buy these shares, becoming part-owners of the companies and potentially earning returns through stock price appreciation and dividends. The equity market plays a vital role in the financial system by efficiently allocating capital to businesses and providing investment opportunities to individuals and institutions.
The equity market, or stock market, primarily functions as a mechanism for companies to raise capital by issuing ownership shares, while providing investors with opportunities to invest in these companies and earn returns, thus facilitating efficient capital allocation in the financial system.
| The equity market is where ownership shares of companies are bought and sold. It allows companies to raise money by selling stocks. The stock market is the same as the equity market.
The equity market and the stock market are the same thing, where stocks are traded.
|
| A selling syndicate is a group of investment banks that work together to underwrite and distribute a new security issue, such as stocks or bonds, to investors. The syndicate is typically led by one or more lead underwriters, who coordinate the distribution of the securities and set the offering price. In the case of XYZ Corporation, the selling syndicate is led by ABC Investment Bank and consists of 5 investment banks in total. The syndicate has agreed to purchase 10 million new shares from XYZ Corporation at a fixed price of $50 per share, which they will then sell to investors at a higher price of $55 per share. This process allows XYZ Corporation to raise capital by issuing new shares, while the selling syndicate earns a commission on the sale of the shares. The syndicate's role is to facilitate the distribution of the new shares to a wider pool of investors, helping to ensure the success of the offering.
A selling syndicate is a group of investment banks that jointly underwrite and distribute a new security issue to investors. In XYZ Corporation's case, the syndicate will purchase shares from the company at a fixed price and resell them to investors at a higher price, earning a commission and facilitating the successful distribution of the new shares.
| What is a selling syndicate, and how does it function in the context of XYZ Corporation's new share issue?
| A selling syndicate is a group of investment banks that work together to sell new shares of a company. In this case, XYZ Corporation has hired 5 investment banks to sell their new shares. The syndicate buys the shares from XYZ Corporation at a fixed price and then sells them to investors at a higher price.
A selling syndicate is a group of investment banks that jointly underwrite and distribute new shares of a company to investors, buying the shares at a fixed price and selling them at a higher price.
|
* 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
- `bf16`: True
- `batch_sampler`: no_duplicates
#### All Hyperparameters