@@ -517,9 +517,9 @@ class CustomFormModel(object):
517
517
Status indicating the model's readiness for use,
518
518
:class:`~azure.ai.formrecognizer.CustomFormModelStatus`.
519
519
Possible values include: 'creating', 'ready', 'invalid'.
520
- :ivar ~datetime.datetime requested_on :
521
- The date and time (UTC) when model training was requested .
522
- :ivar ~datetime.datetime completed_on :
520
+ :ivar ~datetime.datetime training_started_on :
521
+ The date and time (UTC) when model training was started .
522
+ :ivar ~datetime.datetime training_completed_on :
523
523
Date and time (UTC) when model training completed.
524
524
:ivar list[~azure.ai.formrecognizer.CustomFormSubmodel] submodels:
525
525
A list of submodels that are part of this model, each of
@@ -533,8 +533,8 @@ class CustomFormModel(object):
533
533
def __init__ (self , ** kwargs ):
534
534
self .model_id = kwargs .get ("model_id" , None )
535
535
self .status = kwargs .get ("status" , None )
536
- self .requested_on = kwargs .get ("requested_on " , None )
537
- self .completed_on = kwargs .get ("completed_on " , None )
536
+ self .training_started_on = kwargs .get ("training_started_on " , None )
537
+ self .training_completed_on = kwargs .get ("training_completed_on " , None )
538
538
self .submodels = kwargs .get ("submodels" , None )
539
539
self .errors = kwargs .get ("errors" , None )
540
540
self .training_documents = kwargs .get ("training_documents" , [])
@@ -544,8 +544,8 @@ def _from_generated(cls, model):
544
544
return cls (
545
545
model_id = model .model_info .model_id ,
546
546
status = model .model_info .status ,
547
- requested_on = model .model_info .created_date_time ,
548
- completed_on = model .model_info .last_updated_date_time ,
547
+ training_started_on = model .model_info .created_date_time ,
548
+ training_completed_on = model .model_info .last_updated_date_time ,
549
549
submodels = CustomFormSubmodel ._from_generated_unlabeled (model )
550
550
if model .keys else CustomFormSubmodel ._from_generated_labeled (model ),
551
551
errors = FormRecognizerError ._from_generated (model .train_result .errors ) if model .train_result else None ,
@@ -554,11 +554,10 @@ def _from_generated(cls, model):
554
554
)
555
555
556
556
def __repr__ (self ):
557
- return "CustomFormModel(model_id={}, status={}, requested_on={}, completed_on={}, submodels={}, " \
558
- "errors={}, training_documents={})" .format (
559
- self .model_id , self .status , self .requested_on , self .completed_on , repr (self .submodels ),
560
- repr (self .errors ), repr (self .training_documents )
561
- )[:1024 ]
557
+ return "CustomFormModel(model_id={}, status={}, training_started_on={}, training_completed_on={}, " \
558
+ "submodels={}, errors={}, training_documents={})" .format (
559
+ self .model_id , self .status , self .training_started_on , self .training_completed_on ,
560
+ repr (self .submodels ), repr (self .errors ), repr (self .training_documents ))[:1024 ]
562
561
563
562
564
563
class CustomFormSubmodel (object ):
@@ -698,17 +697,17 @@ class CustomFormModelInfo(object):
698
697
:ivar str status:
699
698
The status of the model, :class:`~azure.ai.formrecognizer.CustomFormModelStatus`.
700
699
Possible values include: 'creating', 'ready', 'invalid'.
701
- :ivar ~datetime.datetime requested_on :
702
- Date and time (UTC) when model training was requested .
703
- :ivar ~datetime.datetime completed_on :
700
+ :ivar ~datetime.datetime training_started_on :
701
+ Date and time (UTC) when model training was started .
702
+ :ivar ~datetime.datetime training_completed_on :
704
703
Date and time (UTC) when model training completed.
705
704
"""
706
705
707
706
def __init__ (self , ** kwargs ):
708
707
self .model_id = kwargs .get ("model_id" , None )
709
708
self .status = kwargs .get ("status" , None )
710
- self .requested_on = kwargs .get ("requested_on " , None )
711
- self .completed_on = kwargs .get ("completed_on " , None )
709
+ self .training_started_on = kwargs .get ("training_started_on " , None )
710
+ self .training_completed_on = kwargs .get ("training_completed_on " , None )
712
711
713
712
@classmethod
714
713
def _from_generated (cls , model , model_id = None ):
@@ -717,13 +716,13 @@ def _from_generated(cls, model, model_id=None):
717
716
return cls (
718
717
model_id = model_id if model_id else model .model_id ,
719
718
status = model .status ,
720
- requested_on = model .created_date_time ,
721
- completed_on = model .last_updated_date_time
719
+ training_started_on = model .created_date_time ,
720
+ training_completed_on = model .last_updated_date_time
722
721
)
723
722
724
723
def __repr__ (self ):
725
- return "CustomFormModelInfo(model_id={}, status={}, requested_on ={}, completed_on ={})" .format (
726
- self .model_id , self .status , self .requested_on , self .completed_on
724
+ return "CustomFormModelInfo(model_id={}, status={}, training_started_on ={}, training_completed_on ={})" .format (
725
+ self .model_id , self .status , self .training_started_on , self .training_completed_on
727
726
)[:1024 ]
728
727
729
728
0 commit comments