Firebase の ML。
関数
関数 | 説明 |
---|---|
getMachineLearning(アプリ) | デフォルト アプリまたは特定のアプリの MachineLearning サービスを取得します。引数なしで getMachineLearning() を呼び出してデフォルト アプリの MachineLearning サービスにアクセスするか、getMachineLearning(app) として呼び出して、特定のアプリに関連付けられている MachineLearning サービスにアクセスできます。 |
クラス
クラス | 説明 |
---|---|
機械学習 | Firebase MachineLearning サービス インターフェース。 |
モデル | Firebase ML モデルの出力オブジェクト。 |
インターフェース
インターフェース | 説明 |
---|---|
GcsTfliteModelOptions | |
ListModelsOptions | モデルを一覧表示するオプションを表すインターフェース。 |
ListModelsResult | listModels オペレーションに対するレスポンス オブジェクト。 |
ModelOptionsBase | Firebase ML モデルの入力オブジェクト |
TFLiteModel | TensorFlow Lite モデルの出力オブジェクト |
型エイリアス
タイプ エイリアス | 説明 |
---|---|
ModelOptions |
getMachineLearning(アプリ)
デフォルト アプリまたは特定のアプリの Machine Learning サービスを取得します。
デフォルト アプリの MachineLearning
サービスにアクセスするには、引数なしで getMachineLearning()
を呼び出すか、getMachineLearning(app)
として呼び出して特定のアプリに関連付けられている MachineLearning
サービスにアクセスします。
署名:
export declare function getMachineLearning(app?: App): MachineLearning;
パラメータ
パラメータ | 型 | 説明 |
---|---|---|
app | アプリ | 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);
ModelOptions
署名:
export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;