face-api/src/ops/index.ts

14 lines
322 B
TypeScript
Raw Normal View History

2020-08-18 13:54:53 +02:00
export * from './iou'
export * from './minBbox'
export * from './nonMaxSuppression'
export * from './normalize'
export * from './padToSquare'
export * from './shuffleArray'
export function sigmoid(x: number) {
return 1 / (1 + Math.exp(-x))
}
export function inverseSigmoid(x: number) {
return Math.log(x / (1 - x))
}