Accuracy Mse

class dffml.accuracy.mse.MeanSquaredErrorAccuracy(config: Optional[Type[BaseConfig]])[source]
CONFIG

alias of MeanSquaredErrorAccuracyConfig

CONTEXT

alias of MeanSquaredErrorAccuracyContext

class dffml.accuracy.mse.MeanSquaredErrorAccuracyConfig[source]
no_enforce_immutable()

By default, all properties of a config object are immutable. If you would like to mutate immutable properties, you must explicitly call this method using it as a context manager.

Examples

>>> from dffml import config
>>>
>>> @config
... class MyConfig:
...     C: int
>>>
>>> config = MyConfig(C=2)
>>> with config.no_enforce_immutable():
...     config.C = 1
class dffml.accuracy.mse.MeanSquaredErrorAccuracyContext(parent: Accuracy)[source]

Mean Squared Error

async score(mctx: ModelContext, sources: SourcesContext, feature: Feature)[source]

Abstract method to get the score

Parameters:
Returns:

The score value

Return type:

float