firebase-admin.machine-learning package

Firebase 机器学习。

功能

功能描述
获取机器学习(应用程序)获取默认应用程序或给定应用程序的机器学习服务。可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

课程

班级描述
机器学习Firebase MachineLearning服务接口。
模型Firebase ML 模型输出对象。

接口

界面描述
GcsTflite模型选项
列表模型选项表示列出模型的选项的界面。
列出模型结果listModels 操作的响应对象。
模型选项库Firebase ML 模型输入对象
TFLite模型TensorFlow Lite 模型输出对象

类型别名

类型别名描述
型号选项

获取机器学习()

获取默认应用程序或给定应用程序的机器学习服务。

可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

签名:

export declare function getMachineLearning(app?: App): MachineLearning;

参数

范围类型描述
应用程序应用程序要返回其MachineLearning服务的可选应用程序。如果未提供,将返回默认的MachineLearning服务。

返回:

机器学习

默认MachineLearning服务(如果未提供应用程序)或与提供的应用程序关联的MachineLearning服务。

实施例1

// Get the MachineLearning service for the default app
const defaultMachineLearning = getMachineLearning();

实施例2

// Get the MachineLearning service for a given app
const otherMachineLearning = getMachineLearning(otherApp);

型号选项

签名:

export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;
,

Firebase 机器学习。

功能

功能描述
获取机器学习(应用程序)获取默认应用程序或给定应用程序的机器学习服务。可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

课程

班级描述
机器学习Firebase MachineLearning服务接口。
模型Firebase ML 模型输出对象。

接口

界面描述
GcsTflite模型选项
列表模型选项表示列出模型的选项的界面。
列出模型结果listModels 操作的响应对象。
模型选项库Firebase ML 模型输入对象
TFLite模型TensorFlow Lite 模型输出对象

类型别名

类型别名描述
型号选项

获取机器学习()

获取默认应用程序或给定应用程序的机器学习服务。

可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

签名:

export declare function getMachineLearning(app?: App): MachineLearning;

参数

范围类型描述
应用程序应用程序要返回其MachineLearning服务的可选应用程序。如果未提供,将返回默认的MachineLearning服务。

返回:

机器学习

默认MachineLearning服务(如果未提供应用程序)或与提供的应用程序关联的MachineLearning服务。

实施例1

// Get the MachineLearning service for the default app
const defaultMachineLearning = getMachineLearning();

实施例2

// Get the MachineLearning service for a given app
const otherMachineLearning = getMachineLearning(otherApp);

型号选项

签名:

export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;
,

Firebase 机器学习。

功能

功能描述
获取机器学习(应用程序)获取默认应用程序或给定应用程序的机器学习服务。可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

课程

班级描述
机器学习Firebase MachineLearning服务接口。
模型Firebase ML 模型输出对象。

接口

界面描述
GcsTflite模型选项
列表模型选项表示列出模型的选项的界面。
列出模型结果listModels 操作的响应对象。
模型选项库Firebase ML 模型输入对象
TFLite模型TensorFlow Lite 模型输出对象

类型别名

类型别名描述
型号选项

获取机器学习()

获取默认应用程序或给定应用程序的机器学习服务。

可以不带参数调用getMachineLearning()来访问默认应用程序的MachineLearning服务,也可以调用getMachineLearning(app)来访问与特定应用程序关联的MachineLearning服务。

签名:

export declare function getMachineLearning(app?: App): MachineLearning;

参数

范围类型描述
应用程序应用程序要返回其MachineLearning服务的可选应用程序。如果未提供,将返回默认的MachineLearning服务。

返回:

机器学习

默认MachineLearning服务(如果未提供应用程序)或与提供的应用程序关联的MachineLearning服务。

实施例1

// Get the MachineLearning service for the default app
const defaultMachineLearning = getMachineLearning();

实施例2

// Get the MachineLearning service for a given app
const otherMachineLearning = getMachineLearning(otherApp);

型号选项

签名:

export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;