自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 TensorflowSimilarity学习笔记13

2021SC@SDUSC代码地址:https://github.com/tensorflow/similarity/blob/master/tensorflow_similarity/evaluators/evaluator.py def evaluate_classification( self, query_labels: IntTensor, lookup_labels: IntTensor, lookup_distances:

2021-12-28 15:00:59 748

原创 TensorflowSimilarity学习笔记12

2021SC@SDUSC代码地址:similarity/f1_score.py at master · tensorflow/similarity · GitHubimport tensorflow as tffrom tensorflow_similarity.types import FloatTensorfrom .classification_metric import ClassificationMetricclass F1Score(ClassificationMetric

2021-12-28 14:55:29 118

原创 TensorflowSimilarity学习笔记11

2021SC@SDUSC代码地址:similarity/precision.py at master · tensorflow/similarity · GitHub学习内容:搜索准确率、召回率class Precision(ClassificationMetric): """Calculates the precision of the query classification. Computes the precision given the query classific

2021-12-28 14:52:18 84

原创 TensorflowSimilarity学习笔记6

2021SC@SDUSC代码位置:similarity/distances.py at master · tensorflow/similarity · GitHub# Copyright 2021 The TensorFlow Authors## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the Li

2021-12-27 00:11:43 324

原创 TensorflowSimilarity学习笔记9

2021SC@SDUSC代码位置:similarity/distances.py at master · tensorflow/similarity · GitHub@tf.keras.utils.register_keras_serializable(package="Similarity")class EuclideanDistance(Distance): """Compute pairwise euclidean distances between embeddings.

2021-12-27 00:11:00 528

原创 TensorflowSimilarity学习笔记8

2021SC@SDUSC代码位置:similarity/distances.py at master · tensorflow/similarity · GitHubfrom abc import ABC, abstractmethodfrom typing import Union, Listimport tensorflow as tffrom .types import FloatTensorclass Distance(ABC): """ Note: .

2021-12-27 00:10:38 567

原创 TensorflowSimilarity学习笔记10

2021SC@SDUSC代码地址:similarity/classification_metric.py at master · tensorflow/similarity · GitHub# Copyright 2021 The TensorFlow Authors## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance

2021-12-27 00:09:51 234

原创 TensorflowSimilarity学习笔记7

2021SC@SDUSC代码位置:similarity/distances.py at master · tensorflow/similarity · GitHub@tf.keras.utils.register_keras_serializable(package="Similarity")class CosineDistance(Distance): """Compute pairwise cosine distances between embeddings. The .

2021-12-26 23:20:22 350

原创 TensorflowSimilarity学习笔记5

2021SC@SDUSC代码位置:https://github.com/tensorflow/similarity/blob/master/tensorflow_similarity/layers.py# Copyright 2021 The TensorFlow Authors## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in comp

2021-12-26 23:11:40 1159

原创 TensorflowSimilarity学习笔记4

2021SC@SDUSC学习内容:使用 Keras Tuner 调整超参数机器学习项目的成功通常在很大程度上取决于良好超参数的选择。 随着机器学习作为一个领域的不断成熟,依靠反复试验为这些参数找到好的值(也称为“研究生下降”)根本无法扩展。 事实上,当今许多最先进的结果,例如 EfficientNet,都是通过复杂的超参数优化算法发现的。Keras Tuner 是一个易于使用、可分发的超参数优化框架,它解决了执行超参数搜索的痛点。 Keras Tuner 可以轻松定义搜索空间并利用包含的算法来查

2021-12-26 22:54:58 228

原创 TensorflowSimilarity学习笔记3

2021SC@SDUSC学习内容:Keras 预处理层为您的数据确定正确的特征表示可能是构建模型中最棘手的部分之一。 想象一下,您正在使用分类输入功能,例如颜色名称。 您可以对特征进行单热编码,以便每种颜色在特定索引中获得 1 ('red' = [0, 0, 1, 0, 0]),或者您可以嵌入该特征,以便每种颜色映射到唯一的可训练 向量('红色' = [0.1, 0.2, 0.5, -0.2])。 较大的类别空间使用嵌入可能会更好,而较小的空间作为 one-hot 编码可能会更好,但答案尚不明确。

2021-12-26 22:45:12 229

原创 TensorflowSimilarity学习笔记2

2021SC@SDUSC代码位置:https://github.com/tensorflow/similarity/blob/master/tensorflow_similarity/types.py# Copyright 2020 The TensorFlow Authors. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not us...

2021-10-16 22:03:29 111

原创 TensorFlow Similarity -1

2021SC@SDUSC背景TensorFlow Similarity是TensorFlow为相似学习或称为度量学习/对比学习设计的库。其提供度量学习的算法以及所有为研究训练,评估的必须组件。利用TensorFlow Similarity我们可以训练和服务能在大规模语料库中找相似物件(如图像)的模型。例如,如下图所示,你可以通过Oxford IIIT Pet Dataset的一些训练集合,训练一个相似模型来找到相似长相的猫和狗。度量学习和传统分类器的目标不同。模型学习利用监督或自监督方法将相似样

2021-09-29 01:32:45 301

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除