예시
타입 매개변수
| 이름 | 타입 |
|---|---|
R | extends DatasetRow |
E | extends DatasetRow |
M | M |
계층 구조
-
WeaveObject↳Evaluation
목차
생성자
속성
접근자
메서드
생성자
constructor
R, E, M>(parameters): Evaluation<R, E, M>
타입 매개변수
| 이름 | 타입 |
|---|---|
R | extends DatasetRow |
E | extends DatasetRow |
M | M |
매개변수
| 이름 | 타입 |
|---|---|
parameters | EvaluationParameters<R, E, M> |
반환값
Evaluation<R, E, M>
재정의
정의 위치
evaluation.ts:148속성
__savedRef
•Optional __savedRef: ObjectRef | Promise<ObjectRef>
상속
WeaveObject.__savedRef정의 위치
weaveObject.ts:73접근자
description
get description(): undefined | string
반환값
undefined | string
다음으로부터 상속됨
정의 위치
weaveObject.ts:100name
get name(): string
반환값
string
상속
WeaveObject.name정의 위치
weaveObject.ts:96메서드
evaluate
«destructured»): Promise<Record<string, any>>
매개변수
| 이름 | 타입 | 기본값 |
|---|---|---|
«destructured» | Object | undefined |
› maxConcurrency? | number | 5 |
› model | WeaveCallable<(…args: [{ datasetRow: R }]) => Promise<M>> | undefined |
› nTrials? | number | 1 |
반환
Promise<Record<string, any>>
정의된 위치
predictAndScore
«destructured»): Promise<{ model_latency: number = modelLatency; model_output: any = modelOutput; model_success: boolean = !modelError; scores: { [key: string]: any; } }>
매개변수
| 이름 | 타입 |
|---|---|
«destructured» | Object |
› columnMapping? | ColumnMapping<R, E> |
› example | R |
› model | WeaveCallable<(…args: [{ datasetRow: E }]) => Promise<M>> |
반환값
Promise<{ model_latency: number = modelLatency; model_output: any = modelOutput; model_success: boolean = !modelError; scores: { [key: string]: any; } }>
정의 위치
evaluation.ts:231saveAttrs
Object
반환값
Object