Yang Zhang·Nov 30, 2022Semantic Product SearchThis post surveys recent techniques for semantic product search, especially neural network models. We introduce and classify a number of…
Yang Zhang·Mar 11, 2021Deep Learning Model for Product Category PredictionLink to Library: https://github.com/yang-zhang/product_categoryA response icon1A response icon1
Yang Zhang·Nov 18, 2020lightning-language-modelingLanguage Modeling Example with Pytorch Lightning and 🤗 Huggingface Transformers.A response icon1A response icon1
Yang Zhang·Sep 2, 2020LaBSE Pytorch ModelI’ve converted LaBSE model weights to Pytorch model weight and shared on https://github.com/yang-zhang/labse-pytorch
Yang Zhang·Jun 22, 2020Explain 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…A response icon1A response icon1
Yang Zhang·Aug 24, 2019The “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…A response icon3A response icon3
Yang Zhang·Jun 21, 2019Table 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…
Yang Zhang·May 1, 2019Setup 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…
Yang Zhang·Dec 5, 2018Scaling 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.A response icon1A response icon1
Yang Zhang·Nov 8, 2018Multi-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…A response icon2A response icon2