One 4K screenshot can cost 3x more tokens than it needs to. Here's a free fix for Claude, ChatGPT & Cursor
▲ 4 r/AiChatGPT+1 crossposts

One 4K screenshot can cost 3x more tokens than it needs to. Here's a free fix for Claude, ChatGPT & Cursor

Most screenshots are way bigger than the model needs, and you pay for every extra pixel.

A single 3314×1572 screenshot costs roughly ~1,555 tokens on Claude and ~1,445 on ChatGPT. The same image at 1024px wide? About ~664 and ~425. Same content, readable text, a fraction of the cost. (Estimates from public docs, not exact billing.)

This Firefox add-on does that automatically, every time you attach an image:

✂️ Crops empty margins

📐 Resizes using each site's own token rules (Claude counts pixels, ChatGPT counts 512px tiles)

🔔 Shows estimated tokens before → after for every image

🖼️ Works with file picker, drag & drop and pasted screenshots

🔒 100% local: no uploads, no tracking, no network requests

🆓 Free and open source

Works on claude.ai, chatgpt.com and cursor.com/agents. The model still gets your real pixels (no OCR), and if an image can't be improved it's sent unchanged.

Honest caveat: shrinking can hurt tiny text and dense UIs, so there's a "Sharp" level, or just switch it off for those.

🔗 https://addons.mozilla.org/en-US/firefox/addon/tokensaver-image-optimizer/

Disclosure: I'm the developer. It was just approved, so I'd really appreciate feedback, bugs, and whether you'd want a Chrome version or text support next.

u/tahahussein-4623a412 — 8 days ago

I've been experimenting with a RAG architecture that separates retrieval, reranking, filtering, and context construction instead of putting everything into one retrieval step.

Current pipeline:

BGE-M3
→ Dense + Sparse embeddings
→ Qdrant
→ Hybrid retrieval / RRF
→ BGE Reranker
→ Relevance Gate
→ Context Quality Filter
→ Context Builder
→ Local LLM

The LLM is DeepSeek R1 7B running through Ollama.

The main idea is to make retrieval failures explicit.

If the reranker doesn't find sufficiently relevant chunks, the system can return a "not enough information" response instead of passing weak context to the model.

GitHub:

https://github.com/Taha2hussein/mini-Rag

I'm particularly interested in how others structure the boundary between:

retrieval → reranking → context preparation → generation

What does your production RAG pipeline look like?

reddit.com
u/tahahussein-4623a412 — 15 days ago

Your 95% CV score might be fake — I built a framework that fixes the hidden leakage in AutoML

Ever shipped a model with 95% CV accuracy, only to watch it crash in production?

The culprit: Data leakage in preprocessing. The imputation means and scaling stds were computed on the \\\*entire\\\* dataset before train/test split. Most AutoML tools do this silently.

What I built: A lightweight, leakage-safe ML experimentation framework on scikit-learn.

Why it matters:

\\- Split happens FIRST. All preprocessing lives inside the CV loop.

\\- Decision Engine reasons about your data before training.

\\- No brute-force. SVM skipped on large data. PR-AUC used for imbalance.

\*\* PyPI:\*\* https://pypi.org/project/ml-experiment-framework/0.1.0/

Deep dive: \[https://medium.com/@taha.hussein.two/i-built-a-leakage-safe-automl-framework-from-scratch-heres-why-it-matters-61d10d979a20\\\](https://medium.com/@taha.hussein.two/i-built-a-leakage-safe-automl-framework-from-scratch-heres-why-it-matters-61d10d979a20)

Questions:

  1. Do you trust your AutoML CV scores?
  2. How do you prevent leakage in preprocessing?

Feedback welcome ⭐

reddit.com
u/tahahussein-4623a412 — 2 months ago

Your 95% CV score might be fake — I built a framework that fixes the hidden leakage in AutoML

Ever shipped a model with 95% CV accuracy, only to watch it crash in production?

The culprit: Data leakage in preprocessing. The imputation means and scaling stds were computed on the \*entire\* dataset before train/test split. Most AutoML tools do this silently.

What I built: A lightweight, leakage-safe ML experimentation framework on scikit-learn.

Why it matters:

\- Split happens FIRST. All preprocessing lives inside the CV loop.

\- Decision Engine reasons about your data before training.

\- No brute-force. SVM skipped on large data. PR-AUC used for imbalance.

** PyPI:** https://pypi.org/project/ml-experiment-framework/0.1.0/

Deep dive: [https://medium.com/@taha.hussein.two/i-built-a-leakage-safe-automl-framework-from-scratch-heres-why-it-matters-61d10d979a20\](https://medium.com/@taha.hussein.two/i-built-a-leakage-safe-automl-framework-from-scratch-heres-why-it-matters-61d10d979a20)

Questions:

  1. Do you trust your AutoML CV scores?
  2. How do you prevent leakage in preprocessing?

Feedback welcome ⭐

reddit.com
u/tahahussein-4623a412 — 2 months ago
▲ 2 r/askdatascience+1 crossposts

Your 95% CV score might be fake — I built a framework that fixes the hidden leakage in AutoML

Ever shipped a model with 95% CV accuracy, only to watch it crash in production?

The culprit: Data leakage in preprocessing. The imputation means and scaling stds were computed on the *entire* dataset before train/test split. Most AutoML tools do this silently.

What I built: A lightweight, leakage-safe ML experimentation framework on scikit-learn.

Why it matters:

- Split happens FIRST. All preprocessing lives inside the CV loop.

- Decision Engine reasons about your data before training.

- No brute-force. SVM skipped on large data. PR-AUC used for imbalance.

** PyPI:** https://pypi.org/project/ml-experiment-framework/0.1.0/

Deep dive: https://medium.com/@taha.hussein.two/i-built-a-leakage-safe-automl-framework-from-scratch-heres-why-it-matters-61d10d979a20

Questions:

  1. Do you trust your AutoML CV scores?
  2. How do you prevent leakage in preprocessing?

Feedback welcome ⭐

u/tahahussein-4623a412 — 2 months ago
▲ 5 r/kaggle

Just finished my K-Means clustering project 🚀 — would love your feedback!

Hey everyone! 👋

I just finished a small **K-Means Clustering project on the Iris dataset** 🌸🤖

I covered:

* 🔹 Data cleaning & visualization
* 🔹 Feature scaling
* 🔹 Elbow Method & Silhouette Score
* 🔹 K-Means clustering
* 🔹 ARI evaluation
* 🔹 Cluster & centroid visualization

I’m currently learning ML and would really appreciate some **honest feedback** 🙏

What would you improve? Any mistakes in my approach or things I should add?

🔗 **Kaggle:**
https://www.kaggle.com/code/tahahussein2020/irics-clustering

u/tahahussein-4623a412 — 2 months ago

Just finished my K-Means clustering project 🚀 — would love your feedback!

Hey everyone! 👋

I just finished a small K-Means Clustering project on the Iris dataset 🌸🤖

I covered:

  • 🔹 Data cleaning & visualization
  • 🔹 Feature scaling
  • 🔹 Elbow Method & Silhouette Score
  • 🔹 K-Means clustering
  • 🔹 ARI evaluation
  • 🔹 Cluster & centroid visualization

I’m currently learning ML and would really appreciate some honest feedback 🙏

What would you improve? Any mistakes in my approach or things I should add?

🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/irics-clustering

reddit.com
u/tahahussein-4623a412 — 2 months ago

Just finished my K-Means clustering project 🚀 — would love your feedback!

Hey everyone! 👋

I just finished a small K-Means Clustering project on the Iris dataset 🌸🤖

I covered:

  • 🔹 Data cleaning & visualization
  • 🔹 Feature scaling
  • 🔹 Elbow Method & Silhouette Score
  • 🔹 K-Means clustering
  • 🔹 ARI evaluation
  • 🔹 Cluster & centroid visualization

I’m currently learning ML and would really appreciate some honest feedback 🙏

What would you improve? Any mistakes in my approach or things I should add?

🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/irics-clustering

reddit.com
u/tahahussein-4623a412 — 2 months ago

🚀 I just finished my Twitter Sentiment Analysis project — I’d love your honest feedback!

Hey everyone! 👋

I’ve just finished building a Twitter Sentiment Analysis project using Python and Machine Learning.

The goal was to build a complete data analysis pipeline starting from raw Twitter data and going through:

🔹 Data loading & preprocessing
🔹 Data cleaning
🔹 Exploratory Data Analysis (EDA)
🔹 Text processing & vectorization
🔹 Correlation & statistical analysis
🔹 Data visualization
🔹 Machine Learning preparation
🔹 Modular Python project structure

I tried to structure the project like a real-world data/ML project rather than putting everything into a single notebook.

🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/twitter-sentiment-analysis

I’m especially interested in feedback from people working with Data Science, Machine Learning, NLP, or Python.

What would you improve?

  • Is the project structure good?
  • Is the data preprocessing approach reasonable?
  • Are the visualizations useful?
  • Does this look like a good portfolio project?
  • Any mistakes or bad practices you notice?

Please be brutally honest 😄 — I’m trying to improve my ML skills and make this project as close to a professional real-world project as possible.

Thanks in advance! 🙏

u/tahahussein-4623a412 — 2 months ago

🚀 I just finished my Twitter Sentiment Analysis project — I’d love your honest feedback!

🚀 I just finished my Twitter Sentiment Analysis project — I’d love your honest feedback!
Hey everyone! 👋
I’ve just finished building a Twitter Sentiment Analysis project using Python and Machine Learning.
The goal was to build a complete data analysis pipeline starting from raw Twitter data and going through:
🔹 Data loading & preprocessing
🔹 Data cleaning
🔹 Exploratory Data Analysis (EDA)
🔹 Text processing & vectorization
🔹 Correlation & statistical analysis
🔹 Data visualization
🔹 Machine Learning preparation
🔹 Modular Python project structure
I tried to structure the project like a real-world data/ML project rather than putting everything into a single notebook.
🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/twitter-sentiment-analysis
I’m especially interested in feedback from people working with Data Science, Machine Learning, NLP, or Python.
What would you improve?
Is the project structure good?
Is the data preprocessing approach reasonable?
Are the visualizations useful?
Does this look like a good portfolio project?
Any mistakes or bad practices you notice?
Please be brutally honest 😄 — I’m trying to improve my ML skills and make this project as close to a professional real-world project as possible.
Thanks in advance! 🙏

reddit.com
u/tahahussein-4623a412 — 2 months ago
▲ 2 r/DataScientist+1 crossposts

🚀 I just finished my Twitter Sentiment Analysis project — I’d love your honest feedback!

Hey everyone! 👋

I’ve just finished building a Twitter Sentiment Analysis project using Python and Machine Learning.

The goal was to build a complete data analysis pipeline starting from raw Twitter data and going through:

🔹 Data loading & preprocessing
🔹 Data cleaning
🔹 Exploratory Data Analysis (EDA)
🔹 Text processing & vectorization
🔹 Correlation & statistical analysis
🔹 Data visualization
🔹 Machine Learning preparation
🔹 Modular Python project structure

I tried to structure the project like a real-world data/ML project rather than putting everything into a single notebook.

🔗 Kaggle:
https://www.kaggle.com/code/tahahussein2020/twitter-sentiment-analysis

I’m especially interested in feedback from people working with Data Science, Machine Learning, NLP, or Python.

What would you improve?

  • Is the project structure good?
  • Is the data preprocessing approach reasonable?
  • Are the visualizations useful?
  • Does this look like a good portfolio project?
  • Any mistakes or bad practices you notice?

Please be brutally honest 😄 — I’m trying to improve my ML skills and make this project as close to a professional real-world project as possible.

Thanks in advance! 🙏

reddit.com
u/tahahussein-4623a412 — 2 months ago

🚗💰 Predicting Car Selling Prices with Machine Learning

Just finished my first full ML regression project — predicting car selling prices!

I went from raw messy data to comparing 9 different models and picking the best one based on R², MSE, and MAE.

\*\*What I learned:\*\*

\- Data cleaning is 80% of the work

\- Never trust one model — always compare

\- Visualizations save you from bad assumptions

I also wrote a reusable model comparison snippet that runs multiple sklearn regressors at once and spits out a ranked leaderboard. Might be helpful if you're tired of training models one by one.

Feedback welcome — especially on what I should improve next.

Kaggle Notebook:

[https://www.kaggle.com/code/tahahussein2020/car-selling-predection](https://www.kaggle.com/code/tahahussein2020/car-selling-predection)

u/tahahussein-4623a412 — 2 months ago
▲ 1 r/MLjobs

🚨 Remote Software Engineering Opportunity

If you're a Software Engineer with strong Python skills and an interest in AI, this could be a great opportunity.

A leading AI lab is hiring Software Engineering Experts to help build and evaluate next-generation AI coding benchmarks.

💼 Position Highlights

  • 🌍 Fully Remote (United States only)
  • ⏰ Full-time (~35 hours/week)
  • 💰 $60–$90/hour
  • 🐍 Strong Python & Software Engineering focus
  • 🤖 Work with cutting-edge AI models and coding agents
  • 🔧 Real-world engineering tasks, debugging, Git, documentation, and AI-assisted development

✅ Ideal Candidates

  • Software Engineers or Research Engineers
  • Strong Python experience
  • Comfortable with Git and modern development workflows
  • Experience with AI tools (Copilot, Cursor, Claude Code, etc.) is a plus

If you're interested, you can apply here:

👉 https://t.mercor.com/U9TnS

Feel free to share this opportunity with anyone who might be a good fit. Good luck to everyone applying! 🚀

#SoftwareEngineering #Python #AI #MachineLearning #RemoteJobs #Hiring #TechJobs #GenAI #Mercor #Careers

u/tahahussein-4623a412 — 3 months ago

Looking for feedback on my first Linear Regression project built from scratch

Hi everyone,

I recently completed my first Machine Learning project.

I implemented Linear Regression completely from scratch without using scikit-learn in order to understand the math behind the algorithm.

The notebook includes:

• Data exploration

• Data visualization

• Gradient Descent implementation

• Model evaluation (R², MAE, RMSE)

• Prediction visualization

I'd really appreciate any feedback on:

- Code quality

- Project structure

- Notebook organization

- Best practices

- Anything I can improve

Kaggle Notebook:

https://www.kaggle.com/code/tahahussein2020/salary-prediction-using-linear-regression-scratch

Thank you!

reddit.com
u/tahahussein-4623a412 — 3 months ago