[REFACTOR] Rename LikelihoodRatioLVQ to SLVQ
This commit is contained in:
parent
e62a8e6582
commit
fc11d78b38
@ -74,7 +74,7 @@ For a test sample they return a distribution instead of a class assignment.
|
||||
The following two algorihms were presented by :cite:t:`seo2003` .
|
||||
Every prototypes is a center of a gaussian distribution of its class, generating a mixture model.
|
||||
|
||||
.. autoclass:: prototorch.models.probabilistic.LikelihoodRatioLVQ
|
||||
.. autoclass:: prototorch.models.probabilistic.SLVQ
|
||||
:members:
|
||||
|
||||
.. autoclass:: prototorch.models.probabilistic.RSLVQ
|
||||
|
@ -19,7 +19,7 @@ from .glvq import (
|
||||
)
|
||||
from .knn import KNN
|
||||
from .lvq import LVQ1, LVQ21, MedianLVQ
|
||||
from .probabilistic import CELVQ, RSLVQ, LikelihoodRatioLVQ
|
||||
from .probabilistic import CELVQ, RSLVQ, SLVQ
|
||||
from .unsupervised import GrowingNeuralGas, HeskesSOM, KohonenSOM, NeuralGas
|
||||
from .vis import *
|
||||
|
||||
|
@ -61,8 +61,8 @@ class ProbabilisticLVQ(GLVQ):
|
||||
return loss
|
||||
|
||||
|
||||
class LikelihoodRatioLVQ(ProbabilisticLVQ):
|
||||
"""Learning Vector Quantization based on Likelihood Ratios."""
|
||||
class SLVQ(ProbabilisticLVQ):
|
||||
"""Soft Learning Vector Quantization."""
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.loss = LossLayer(nllr_loss)
|
||||
|
Loading…
Reference in New Issue
Block a user