ezmsg.learn.process.sgd#

Classes

class SGDDecoder(*args, settings=None, **kwargs)[source]#

Bases: BaseAdaptiveTransformerUnit[SGDDecoderSettings, AxisArray, ClassifierMessage, SGDDecoderTransformer]

Parameters:

settings (Settings | None)

SETTINGS#

alias of SGDDecoderSettings

class SGDDecoderSettings(alpha=1e-05, eta0=0.0003, loss='hinge', label_weights=None, settings_path=None)[source]#

Bases: Settings

Parameters:
alpha: float = 1e-05#
eta0: float = 0.0003#
loss: str = 'hinge'#
label_weights: dict[str, float] | None = None#
settings_path: str | None = None#
__init__(alpha=1e-05, eta0=0.0003, loss='hinge', label_weights=None, settings_path=None)#
Parameters:
Return type:

None

class SGDDecoderState[source]#

Bases: object

model: Any = None#
b_first_train: bool = True#
class SGDDecoderTransformer(*args, **kwargs)[source]#

Bases: BaseAdaptiveTransformer[SGDDecoderSettings, AxisArray, ClassifierMessage, SGDDecoderState]

STREAMING_DIMS: ClassVar[tuple[str, ...]] = ('win', 'time')#

This decoder is fed windows, so a producer that declares no stream_dim is accumulating along win rather than time. The base default would guess time and flatten the windows into the feature vector.

partial_fit(message)[source]#
Return type:

None

Parameters:

message (AxisArray)