Useful tips for everyday
How is cluster distance measured? For most common clustering software, the default distance measure is the Euclidean distance. Depending on the type of the data…
How do I display high dimensional data? The best way to go higher than three dimensions is to use plot facets, color, shapes, sizes, depth…
Should recall be higher? Recall is more important than precision when the cost of acting is low, but the opportunity cost of passing up on…
How do you find the p-value from q-value? Here’s how to calculate a Q-value: Rank order the P-values from all of your multiple hypotheses tests…
How does Spyder use a virtual environment? What worked for me : run spyder from the environment (after source activate) go to Tools –> preferences…
How do I know which test train to split? Choosing an appropriate Train-Test Split Size Take the group as a hold out or test data…
Are Shap values log odds? Note that SHAP values are log-odds when using XGBoost with the logistic objective function. To convert log-odds margin to probability,…
Is gradient boosting gradient descent? Gradient boosting re-defines boosting as a numerical optimisation problem where the objective is to minimise the loss function of the…
What is evaluation metric? An evaluation metric quantifies the performance of a predictive model. This typically involves training a model on a dataset, using the…
What causes exploding gradient? In deep networks or recurrent neural networks, error gradients can accumulate during an update and result in very large gradients. The…