Pyconstruct
0.2.1
Install
Quick Start
Structured prediction
Reference Manual
Datasets
Domains
Learners
Metrics
Models
pyconstruct.models.BaseModel
pyconstruct.models.LinearModel
pyconstruct.models.LinearModel.clear
pyconstruct.models.LinearModel.copy
pyconstruct.models.LinearModel.decision_function
pyconstruct.models.LinearModel.fromkeys
pyconstruct.models.LinearModel.get
pyconstruct.models.LinearModel.items
pyconstruct.models.LinearModel.keys
pyconstruct.models.LinearModel.loss
pyconstruct.models.LinearModel.margin
pyconstruct.models.LinearModel.phi
pyconstruct.models.LinearModel.pop
pyconstruct.models.LinearModel.popitem
pyconstruct.models.LinearModel.predict
pyconstruct.models.LinearModel.setdefault
pyconstruct.models.LinearModel.update
pyconstruct.models.LinearModel.values
Utilities
Pyconstruct
Docs
»
Reference Manual
»
Models
»
pyconstruct.models.LinearModel
»
pyconstruct.models.LinearModel.setdefault
View page source
pyconstruct.models.LinearModel.setdefault
¶
LinearModel.
setdefault
(
k
[
,
d
]
)
→ D.get(k,d), also set D[k]=d if k not in D
¶