• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vanvalenlab / deepcell-label / 4578689396

pending completion
4578689396

Pull #436

github

GitHub
Merge ddb425c30 into 6a993cb7a
Pull Request #436: Model training overhaul: SNGP model, uncertainty visualization, and custom embedding support

462 of 1163 branches covered (39.72%)

Branch coverage included in aggregate %.

20 of 628 new or added lines in 27 files covered. (3.18%)

76 existing lines in 5 files now uncovered.

3248 of 5431 relevant lines covered (59.8%)

543.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/frontend/src/Project/service/labels/tensorflow/cos.ts
1
import * as tfc from '@tensorflow/tfjs-core';
2
import { serialization, Tensor, tidy } from '@tensorflow/tfjs-core';
3

4
/*
5
 *  Base class for Activations
6
 */
7
export abstract class Activation extends serialization.Serializable {
8
  abstract apply(tensor: Tensor, axis?: number): Tensor;
9
  getConfig(): serialization.ConfigDict {
NEW
10
    return {};
×
11
  }
12
}
13

14
export function cos(x: Tensor): Tensor {
NEW
15
  return tidy(() => {
×
NEW
16
    return tfc.cos(x);
×
17
  });
18
}
19

20
export class Cos extends Activation {
21
  /*** @nocollapse */
22
  static readonly className = 'cos';
19✔
23
  apply(x: Tensor): Tensor {
NEW
24
    return cos(x);
×
25
  }
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc