firebase-admin.machine-learning package

Firebase 機械学習。

機能

関数説明
getMachineLearning(アプリ)デフォルトのアプリまたは指定されたアプリのMachineLearningサービスを取得します。 getMachineLearning()引数なしで呼び出してデフォルト アプリのMachineLearningサービスにアクセスすることも、 getMachineLearning(app)として呼び出して特定のアプリに関連付けられたMachineLearningサービスにアクセスすることもできます。

クラス

クラス説明
機械学習Firebase MachineLearningサービス インターフェイス。
モデルFirebase ML モデル出力オブジェクト。

インターフェース

インターフェース説明
GcsTfliteModelOptions
リストモデルオプションモデルをリストするためのオプションを表すインターフェイス。
リストモデル結果listModels 操作の応答オブジェクト。
モデルオプションベースFirebase ML モデル入力オブジェクト
TFLiteモデルTensorFlow Lite モデル出力オブジェクト

タイプエイリアス

タイプエイリアス説明
モデルオプション

getMachineLearning()

デフォルトのアプリまたは指定されたアプリのMachineLearningサービスを取得します。

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()引数なしで呼び出してデフォルト アプリのMachineLearningサービスにアクセスすることも、 getMachineLearning(app)として呼び出して特定のアプリに関連付けられたMachineLearningサービスにアクセスすることもできます。

クラス

クラス説明
機械学習Firebase MachineLearningサービス インターフェイス。
モデルFirebase ML モデル出力オブジェクト。

インターフェース

インターフェース説明
GcsTfliteModelOptions
リストモデルオプションモデルをリストするためのオプションを表すインターフェイス。
リストモデル結果listModels 操作の応答オブジェクト。
モデルオプションベースFirebase ML モデル入力オブジェクト
TFLiteモデルTensorFlow Lite モデル出力オブジェクト

タイプエイリアス

タイプエイリアス説明
モデルオプション

getMachineLearning()

デフォルトのアプリまたは指定されたアプリのMachineLearningサービスを取得します。

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()引数なしで呼び出してデフォルト アプリのMachineLearningサービスにアクセスすることも、 getMachineLearning(app)として呼び出して特定のアプリに関連付けられたMachineLearningサービスにアクセスすることもできます。

クラス

クラス説明
機械学習Firebase MachineLearningサービス インターフェイス。
モデルFirebase ML モデル出力オブジェクト。

インターフェース

インターフェース説明
GcsTfliteModelOptions
リストモデルオプションモデルをリストするためのオプションを表すインターフェイス。
リストモデル結果listModels 操作の応答オブジェクト。
モデルオプションベースFirebase ML モデル入力オブジェクト
TFLiteモデルTensorFlow Lite モデル出力オブジェクト

タイプエイリアス

タイプエイリアス説明
モデルオプション

getMachineLearning()

デフォルトのアプリまたは指定されたアプリのMachineLearningサービスを取得します。

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;