Why Nesterov Accelerated Gradient Converges Faster Than Momentum
Gradient-based optimization lies at the heart of modern machine learning. From linear regression to deep neural networks, the efficiency of training depends heavily on how quickly and stably an opt…
How to get gemini response as json using python and google genai
Normally you can tune models to return json. But, fortunately, Gemini
First install the lib
pip install google-genai
Here is a snippet i used to receive JSON …
How to create an object in salesforce using Python
Here’s a simple snippet for creating a new custom object in Salesforce in Python.
from simple_salesforce import Salesforce
sf = Salesforce(
username='',…
How to fix docker.errors.DockerException: Error while fetching server API version without using Docker Desktop
If you use Docker and get it running while using Docker Desktop, you might run into this error:
docker.errors.DockerException: Error while fetching server API version: ('Connection a…
How to prevent OpenAi and similar from scraping your blog
If you want to disable OpenAi or similar crawlers from harvesting your data, create a file called robots.txt at the root of your domain.
If your domain is health.com, make sure …