MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / query

Method query

tensorboard/plugins/projector/vz_projector/data.ts:634–643  ·  view source on GitHub ↗

* Search the dataset based on a metadata field.

(query: string, inRegexMode: boolean, fieldName: string)

Source from the content-addressed store, hash-verified

632 * Search the dataset based on a metadata field.
633 */
634 query(query: string, inRegexMode: boolean, fieldName: string): number[] {
635 let predicate = util.getSearchPredicate(query, inRegexMode, fieldName);
636 let matches: number[] = [];
637 this.points.forEach((point, id) => {
638 if (predicate(point)) {
639 matches.push(id);
640 }
641 });
642 return matches;
643 }
644}
645export type ProjectionType = 'tsne' | 'umap' | 'pca' | 'custom';
646export class Projection {

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected