Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
LWXuan 86fc0a56fe | 3 years ago | |
---|---|---|
.. | ||
.model.swp | 3 years ago | |
.read_model.m.swp | 3 years ago | |
Makefile | 3 years ago | |
README | 3 years ago | |
WeightVector.cc | 3 years ago | |
WeightVector.h | 3 years ago | |
WeightVector.o | 3 years ago | |
cmd_line.cc | 3 years ago | |
cmd_line.h | 3 years ago | |
cmd_line.o | 3 years ago | |
cmd_option.h | 3 years ago | |
license.txt | 3 years ago | |
log | 3 years ago | |
main.cc | 3 years ago | |
main.o | 3 years ago | |
model | 3 years ago | |
pegasos | 3 years ago | |
pegasos_optimize.cc | 3 years ago | |
pegasos_optimize.h | 3 years ago | |
pegasos_optimize.o | 3 years ago | |
simple_sparse_vec_hash.cc | 3 years ago | |
simple_sparse_vec_hash.h | 3 years ago | |
simple_sparse_vec_hash.o | 3 years ago | |
test_objective | 3 years ago | |
test_objective.cc | 3 years ago | |
test_objective.o | 3 years ago |
(A slightly modified version of original PEGASOS algorithm to enforce positive weights of SVM,
and to learn models for multiple lambda's in a single run.
Modified by: Abhishek Kumar)
A README file for the code implementimng the PEGASOS algorithm for
sparse vectors.
For technical details see:
"Pegasos: Primal Estimated sub-GrAdient SOlver for SVM".
Shai Shalev-Shwartz, Yoram Singer, and Nathan Srebro.
ICML, 2007.
This code is distributed under GNU General Public License (see license.txt
for details).
Copyright (c) 2007 Shai Shalev-Shwartz. All Rights Reserved.
Installation:
============
Run the commands:
> tar xvfz pegasos.tgz
> make
To test the installation, run the commands:
> tar xvfz data.tgz
> pegasos -testFile example/test.dat example/train.dat
Usage:
=====
pegasos [options] <data-file>
DESCRIPTION:
The software solves the SVM optimization problem. That is,
given a matrix X of examples (each row is an exmaple) and a column
vector y of labels in {+1,-1}, the software finds the vector w that
minimizes (using Matlab notation):
lambda/2 w'*w + 1/m * sum(max(0,1- y' * (X*w)))
The instances and labels file should be in SVM-Light format.
See: http://svmlight.joachims.org/
OPTIONS:
-lambda regularization parameter (default = 0.001)
-iter number of iterations (default = 100/lambda)
-k size of block for stochastic gradient (default = 1)
-modelFile name of model file (default = noModelFile)
-testFile name of test data file (default = noTestFile)
List of files:
=============
README - this file
license.txt - GNU public license file
Makefile
main.cc - main file
pegasos_optimize.{h,cc} - main optimization files
WeightVector.{h,cc} - implements a data structure for w
simple_sparse_vec_hash.{h,cc} - implements a data structure
for instances
test_objective.cc - a procedure for calculating the objective value
cmd_line.{h,cc}, cmd_option.h - implements the command line
(written by Joseph Keshet)
data.tgz - small example data
An efficient radius-incorporated MKL algorithm for Alzheimer’s disease prediction
C++ MATLAB Python Jupyter Notebook SWIG other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》