Skip to content
forked from IshitaTakeshi/SCW

Soft Confidence-Weighted Learning in Python

License

Notifications You must be signed in to change notification settings

ryandonglin/SCW

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Exact Soft Confidence-Weighted Learning

##The explanation of the algorithm This is an online supervised learning algorithm.
This learning method enjoys all the four salient properties:

  • Large margin training
  • Confidence weighting
  • Capability to handle non-separable data
  • Adaptive margin

The paper is here.

There are 2 kinds of implementations presented in the paper, which served as

scw.SCW1(C, ETA)
scw.SCW2(C, ETA)

in the code. C and ETA are hyperparameters.

##Usage

from scw import SCW1, SCW2

scw = SCW1(C=1.0, ETA=1.0)
weights, covariance = scw.fit(training_data, teachers)
results = scw.perdict(test_data)

teachers is 1-dimensional and training_data and test_data are 2-dimensional array.

About

Soft Confidence-Weighted Learning in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%