optional params to accomodate different irt models
This commit is contained in:
parent
2984f18f9f
commit
91d7b94bea
@ -1,11 +1,11 @@
|
|||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from typing import Dict
|
from typing import Dict, Optional
|
||||||
|
|
||||||
|
|
||||||
class IRTModel(BaseModel):
|
class IRTModel(BaseModel):
|
||||||
a_param: float
|
a_param: Optional[float] = None
|
||||||
b_param: Dict = {"schema_bson_id": str, "field_bson_id": str}
|
b_param: Dict = {"schema_bson_id": str, "field_bson_id": str}
|
||||||
c_param: float
|
c_param: Optional[float] = None
|
||||||
model: str
|
model: str
|
||||||
|
|
||||||
def formatted_b_param(self):
|
def formatted_b_param(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user