sukrit00.hashnode.devUnderstanding the Difference Between np.random.rand() and np.random.randn() in NumPyWhen working with NumPy in Python, generating random numbers is a common task. Two functions that often cause confusion are np.random.rand() np.random.randn() They look almost the same, but they generate numbers from different distributions. Let’s e...Sep 22, 2025·2 min read
sukrit00.hashnode.devWhy we use fit_transform() for Training Data but only transform() for Testing DataWhen you start working with machine learning pipelines, one of the first things you’ll notice is that we often write code like this: from sklearn.preprocessing import StandardScaler scaler = StandardScaler() # Training set X_train_scaled = scaler...Sep 17, 2025·3 min read