Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Linear Classification Using Sparse Matrix Multiplication

This examples trains a linear model using the sparse feature in MXNet. This is for demonstration purpose only.

The example utilizes the sparse data loader (mx.io.LibSVMIter), the sparse dot operator and sparse gradient updaters to train a linear model on the Avazu click-through-prediction dataset.

The example also shows how to perform distributed training with the sparse feature.

  • python train.py

Notes on Distributed Training:

  • For distributed training, please use the ../../tools/launch.py script to launch a cluster.
  • For example, to run two workers and two servers with one machine, run ../../../tools/launch.py -n 2 --launcher=local python train.py --kvstore=dist_async