Ben Chuanlong Du's Blog

It is never too late to learn.

Effect of Duplicating Observations in Linear Models

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

coefficients don't change but variance become smaller. use formula to show it ...

Complete Duplication of All Data Points

Complete Duplication of Some Data Points

Duplication with Noise

common in computer vision …

Tips on Scikit-Learn

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Cross validation in scikit-learn supports pipeline in addition to vanilla models. Please refer to Cross Validation Pipeline for more details.

  2. Label encoding is an easy way to convert a categorical response …

Common Issues in PyTorch

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

This means that the input data and the model are on different …

Use PyTorch on GPU

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

PyTorch on GPU

https://pytorch.org/docs/master/notes/cuda.html

You can use the command torch.cuda.is_available() to check whether GPU is available for PyTorch. Details of GPUs can …