@@ -78,7 +78,7 @@ def _get_ml_service(app):
78
78
79
79
80
80
def create_model (model , app = None ):
81
- """Creates a model in Firebase ML .
81
+ """Creates a model in the current Firebase project .
82
82
83
83
Args:
84
84
model: An ml.Model to create.
@@ -92,7 +92,7 @@ def create_model(model, app=None):
92
92
93
93
94
94
def update_model (model , app = None ):
95
- """Updates a model in Firebase ML .
95
+ """Updates a model's metadata or model file .
96
96
97
97
Args:
98
98
model: The ml.Model to update.
@@ -106,7 +106,9 @@ def update_model(model, app=None):
106
106
107
107
108
108
def publish_model (model_id , app = None ):
109
- """Publishes a model in Firebase ML.
109
+ """Publishes a Firebase ML model.
110
+
111
+ A published model can be downloaded to client apps.
110
112
111
113
Args:
112
114
model_id: The id of the model to publish.
@@ -120,7 +122,7 @@ def publish_model(model_id, app=None):
120
122
121
123
122
124
def unpublish_model (model_id , app = None ):
123
- """Unpublishes a model in Firebase ML.
125
+ """Unpublishes a Firebase ML model .
124
126
125
127
Args:
126
128
model_id: The id of the model to unpublish.
@@ -134,7 +136,7 @@ def unpublish_model(model_id, app=None):
134
136
135
137
136
138
def get_model (model_id , app = None ):
137
- """Gets a model from Firebase ML .
139
+ """Gets the model specified by the given ID .
138
140
139
141
Args:
140
142
model_id: The id of the model to get.
@@ -148,7 +150,7 @@ def get_model(model_id, app=None):
148
150
149
151
150
152
def list_models (list_filter = None , page_size = None , page_token = None , app = None ):
151
- """Lists models from Firebase ML .
153
+ """Lists the current project's models .
152
154
153
155
Args:
154
156
list_filter: a list filter string such as ``tags:'tag_1'``. None will return all models.
@@ -167,7 +169,7 @@ def list_models(list_filter=None, page_size=None, page_token=None, app=None):
167
169
168
170
169
171
def delete_model (model_id , app = None ):
170
- """Deletes a model from Firebase ML .
172
+ """Deletes a model from the current project .
171
173
172
174
Args:
173
175
model_id: The id of the model you wish to delete.
@@ -602,7 +604,7 @@ def as_dict(self, for_upload=False):
602
604
603
605
604
606
class TFLiteAutoMlSource (TFLiteModelSource ):
605
- """TFLite model source representing a tflite model created via AutoML."""
607
+ """TFLite model source representing a tflite model created with AutoML."""
606
608
607
609
def __init__ (self , auto_ml_model , app = None ):
608
610
self ._app = app
@@ -618,7 +620,7 @@ def __ne__(self, other):
618
620
619
621
@property
620
622
def auto_ml_model (self ):
621
- """Resource name of the model created by the AutoML API."""
623
+ """Resource name of the model, created by the AutoML API or Cloud console ."""
622
624
return self ._auto_ml_model
623
625
624
626
@auto_ml_model .setter
@@ -632,7 +634,7 @@ def as_dict(self, for_upload=False):
632
634
633
635
634
636
class ListModelsPage :
635
- """Represents a page of models in a firebase project.
637
+ """Represents a page of models in a Firebase project.
636
638
637
639
Provides methods for traversing the models included in this page, as well as
638
640
retrieving subsequent pages of models. The iterator returned by
0 commit comments