firebase-admin.machine-learning package Stay organized with collections Save and categorize content based on your preferences.
Firebase Machine Learning.
Functions
| Function | Description |
|---|---|
| getMachineLearning(app) | Gets theMachineLearning service for the default app or a given app.getMachineLearning() can be called with no arguments to access the default app'sMachineLearning service or asgetMachineLearning(app) to access theMachineLearning service associated with a specific app. |
Classes
| Class | Description |
|---|---|
| MachineLearning | The FirebaseMachineLearning service interface. |
| Model | A Firebase ML Model output object. |
Interfaces
| Interface | Description |
|---|---|
| GcsTfliteModelOptions | |
| ListModelsOptions | Interface representing options for listing Models. |
| ListModelsResult | Response object for a listModels operation. |
| ModelOptionsBase | Firebase ML Model input objects |
| TFLiteModel | A TensorFlow Lite Model output object |
Type Aliases
| Type Alias | Description |
|---|---|
| ModelOptions |
getMachineLearning(app)
Gets theMachineLearning service for the default app or a given app.
getMachineLearning() can be called with no arguments to access the default app'sMachineLearning service or asgetMachineLearning(app) to access theMachineLearning service associated with a specific app.
Signature:
exportdeclarefunctiongetMachineLearning(app?:App):MachineLearning;Parameters
| Parameter | Type | Description |
|---|---|---|
| app | App | Optional app whoseMachineLearning service to return. If not provided, the defaultMachineLearning service will be returned. |
Returns:
The defaultMachineLearning service if no app is provided or theMachineLearning service associated with the provided app.
Example 1
// Get the MachineLearning service for the default appconstdefaultMachineLearning=getMachineLearning();Example 2
// Get the MachineLearning service for a given appconstotherMachineLearning=getMachineLearning(otherApp);ModelOptions
Signature:
exporttypeModelOptions=ModelOptionsBase|GcsTfliteModelOptions;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-16 UTC.