Yang ZhangSemantic Product SearchThis post surveys recent techniques for semantic product search, especially neural network models. We introduce and classify a number of…Nov 30, 2022Nov 30, 2022

Yang ZhangDeep Learning Model for Product Category PredictionLink to Library: https://github.com/yang-zhang/product_categoryMar 11, 20211Mar 11, 20211

Yang Zhanglightning-language-modelingLanguage Modeling Example with Pytorch Lightning and 🤗 Huggingface Transformers.Nov 18, 20201Nov 18, 20201

Yang ZhangLaBSE Pytorch ModelI’ve converted LaBSE model weights to Pytorch model weight and shared on https://github.com/yang-zhang/labse-pytorchSep 2, 2020Sep 2, 2020

Yang ZhangExplain Pytorch Tensor.stride and Tensor.storage with code examplesPytorch’s Tensor class has a storage() and a stride() method. They are not very often used directly, but can sometimes be helpful when you…Jun 22, 20201Jun 22, 20201

Yang ZhangThe “gradient” argument in Pytorch’s “backward” function — explained by examplesThis post is some examples for the gradient argument in Pytorch's backward function. The math of backward(gradient) is explained in this…Aug 24, 20193Aug 24, 20193

Yang ZhangTable of cross-entropy loss at different probabilitiesCross-entropy loss is used for classification machine learning models. Often, as the machine learning model is being trained, the average…Jun 21, 2019Jun 21, 2019

Yang ZhangSetup docker for KaggleHere are some notes on setting up docker for Kaggle (especially on installing and enabling nbextensions). I had to do this from time to…May 1, 2019May 1, 2019

Yang ZhangScaling in Neural Network Dropout Layers (with Pytorch code example)For several times I get confused over how and why a dropout layer scales its input. I’m writing down some notes before I forget again.Dec 5, 20181Dec 5, 20181

Yang ZhangMulti-task Deep Learning Experiment using fastai PytorchThis post is an abstract of a Jupyter notebook containing a line-by-line example of a multi-task deep learning model, implemented using…Nov 8, 20182Nov 8, 20182