AI & ML interests

None defined yet.

Recent Activity

SelmaNajih001Β 
posted an update 21 days ago
view post
Post
2789
How Financial News Can Be Used to Train Good Financial Models πŸ“°
Numbers tell you what happened, but news tells you why.
I’ve written an article explaining how news can be used to train AI models for sentiment analysis and better forecasting. Hope you find it interesting!

Read it here: https://huggingface.co/blog/SelmaNajih001/llms-applied-to-finance

I would love to read your opinions! I’m open to suggestions on how to improve the methodology and the training
  • 1 reply
Β·
SelmaNajih001Β 
posted an update 22 days ago
view post
Post
3005
Which is the best model to use as a signal for investment?
Here who is gaining the most:
SelmaNajih001/InvestmentStrategyBasedOnSentiment

The Space uses titles from this dataset:
πŸ“Š SelmaNajih001/Cnbc_MultiCompany

Given a news title, it calculates a sentiment score : if the score crosses a certain threshold, the strategy decides to buy or sell.
Each trade lasts one day, and the strategy then computes the daily return.
For Tesla the best model seems to be the regression πŸ‘€
Just a quick note: the model uses the closing price as the buy price, meaning it already reflects the impact of the news.
SelmaNajih001Β 
posted an update 29 days ago
view post
Post
667
How Financial News Can Be Used to Train Good Financial Models πŸ“°
Numbers tell you what happened, but news tells you why.
I’ve written an article explaining how news can be used to train AI models for sentiment analysis and better forecasting. Hope you find it interesting!

Read it here: https://huggingface.co/blog/SelmaNajih001/llms-applied-to-finance

I would love to read your opinions! I’m open to suggestions on how to improve the methodology and the training
  • 1 reply
Β·
SelmaNajih001Β 
posted an update about 1 month ago
view post
Post
381
Which is the best model to use as a signal for investment? πŸ€”
I’ve created a Space where you can compare three models:
-Two available on my profile
- ProsusAI/finbert
You can try it here:
πŸ‘‰ SelmaNajih001/InvestmentStrategyBasedOnSentiment
The Space uses titles from this dataset:
πŸ“Š SelmaNajih001/Cnbc_MultiCompany

Given a news title, it calculates a sentiment score : if the score crosses a certain threshold, the strategy decides to buy or sell.
Each trade lasts one day, and the strategy then computes the daily return.

Just a quick note: the model uses the closing price as the buy price, meaning it already reflects the impact of the news.
If I had chosen the opening price, the results would have been less biased but less realistic given the data available.
SelmaNajih001Β 
posted an update about 1 month ago
SelmaNajih001Β 
posted an update about 1 month ago
view post
Post
2280
Finally, I uploaded the model I developed for my master’s thesis! Given a financial event, it provides explained predictions based on a dataset of past news and central bank speeches.
Try it out here:
SelmaNajih001/StockPredictionExplanation
(Just restart the space and wait a minute)

The dataset used for RAG can be found here:
SelmaNajih001/FinancialNewsAndCentralBanksSpeeches-Summary-Rag
While the dataset used for the training is:
SelmaNajih001/FinancialClassification

I also wrote an article to explain how I've done the training. You can find it here https://huggingface.co/blog/SelmaNajih001/explainable-financial-predictions

  • 2 replies
Β·
SelmaNajih001Β 
posted an update about 1 month ago
view post
Post
3387
Introducing a Hugging Face Tutorial on Regression

While Hugging Face offers extensive tutorials on classification and NLP tasks, there is very little guidance on performing regression tasks with Transformers.
In my latest article, I provide a step-by-step guide to running regression using Hugging Face, applying it to financial news data to predict stock returns.
In this tutorial, you will learn how to:
-Prepare and preprocess textual and numerical data for regression
-Configure a Transformer model for regression tasks
-Apply the model to real-world financial datasets with fully reproducible code

Read the full article here: https://huggingface.co/blog/SelmaNajih001/how-to-run-a-regression-using-hugging-face
The dataset used: SelmaNajih001/FinancialClassification
  • 1 reply
Β·
SelmaNajih001Β 
posted an update about 2 months ago
view post
Post
1653
Introducing SelmaNajih001/StockPredictionExplanation, built with GRPO and RAG:
-GRPO trains the model to predict and explain stock direction.
-RAG grounds explanations in historical financial news and central bank speeches.
Together, they create a system that forecasts stock movements and shows the reasoning behind them.
Full article: Explainable Financial Predictions β€” https://huggingface.co/blog/SelmaNajih001/explainable-financial-predictions
Try it here: StockPredictionExplanation Space β€” SelmaNajih001/StockPredictionExplanation
SelmaNajih001Β 
posted an update about 2 months ago
view post
Post
263
Predicting Stock Price Movements from News πŸ“°πŸ“ˆ
I trained a model to predict stock price movements (Up, Down, Neutral) from company news.
Dataset: Articles linked to next-day price changes, covering Apple, Tesla, and more.
Approach: Fine-tuned allenai/longformer-base-4096 for classification.
Outcome: The model captures the link between news and stock movements, handling long articles and producing probability scores for each label.
Comparison: Shows promising alignment with stock trends, sometimes outperforming FinBERT.
Feel free to try the model and explore how news can influence stock predictions SelmaNajih001/SentimentAnalysis
AnSungJae3489Β 
posted an update about 2 months ago
view post
Post
2597
ShareGPT? How about ShareGPT-X?

We release **92K** Human with LLM conversations as a refresh and update over the original ShareGPT Dataset.

DSULT-Core/ShareGPT-X