firebase-admin.machine-learning package

Firebase 머신러닝.

Functions

함수 설명
getMachineLearning(앱) 기본 앱 또는 특정 앱의 MachineLearning 서비스를 가져옵니다.getMachineLearning()는 기본 앱의 MachineLearning 서비스에 액세스하기 위한 인수 없이 호출하거나 getMachineLearning(app)로 호출하여 특정 앱과 연결된 MachineLearning 서비스에 액세스할 수 있습니다.

클래스

클래스 설명
머신러닝 Firebase MachineLearning 서비스 인터페이스
모델 Firebase ML 모델 출력 객체입니다.

인터페이스

인터페이스 설명
GcsTfliteModelOptions
ListModelsOptions 모델 나열 옵션을 나타내는 인터페이스입니다.
ListModelsResult listModels 작업의 응답 객체입니다.
모델 옵션 기반 Firebase ML 모델 입력 객체
TFLiteModel TensorFlow Lite 모델 출력 객체

유형 별칭

유형 별칭 설명
모델 옵션

getMachineLearning(앱)

기본 앱 또는 특정 앱의 머신러닝 서비스를 가져옵니다.

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);

ModelOptions

서명:

export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;