协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
evaluation【开发与工程】Routes PyTorch Metric Learning questions about AccuracyCalculator, testers, and nearest-neighbor inference.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to score an embedding space, compare query/reference splits, or perform nearest-neighbor lookup after training.
AccuracyCalculator and its metric family (precision_at_1, r_precision, mean_average_precision, mean_average_precision_at_r, mean_reciprocal_rank, NMI, AMI).GlobalEmbeddingSpaceTester, WithSameParentLabelTester, GlobalTwoStreamEmbeddingSpaceTester, and BaseTester.InferenceModel, MatchFinder, FaissKNN, FaissKMeans, CustomKNN.EmbeddingDataset.components.training.data unless the question is purely about evaluation input shape.references/evaluation-and-inference.md for the metric map, tester usage, and inference search patterns.scripts/smoke_evaluation.py when you want a tiny confirmation that AccuracyCalculator, a tester, and InferenceModel still work together.references/troubleshooting.md when the failure mentions faiss, k, custom label comparison, or an untrained index.components before finalizing the evaluation settings.training.data.AccuracyCalculator can include or exclude metrics, and k can be None, a positive integer, or "max_bin_count".ref_includes_query=True is the right choice when the query set is part of the reference set.GlobalEmbeddingSpaceTester is the usual default tester for embedding retrieval tasks.WithSameParentLabelTester expects hierarchical labels.GlobalTwoStreamEmbeddingSpaceTester expects datasets that yield (anchor, positive, label).InferenceModel defaults to a faiss-backed k-NN index if you do not override knn_func.references/evaluation-and-inference.md for the metric, tester, and inference reference.references/troubleshooting.md for faiss, k, and label-comparison failures.scripts/smoke_evaluation.py for a tiny evaluation and inference smoke check.