coding
bald
只是做一些微小的记录。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[GraphSage Code] model.py
def aggregate neigh_dims = [batch_size * support_sizes[hop], num_samples[len(num_samples) - hop - 1], dim_mult*dims[layer]] support_size...原创 2019-05-02 17:05:22 · 310 阅读 · 0 评论 -
[tensorflow] tf.app.flags 使用
import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS FLAGS 是一个全局变量。 比如我现在有一个a.py文件,里面定义了: import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_float('learni...原创 2019-05-08 18:05:48 · 264 阅读 · 0 评论 -
what is mrr [Measurement Result Recording] ?
mrr 常出现在各种无监督模型中,以衡量模型的优劣性 问题来了, 什么是 mrr? MRR是一个国际上通用的对搜索算法进行评价的机制,即第一个结果匹配,分数为1,第二个匹配分数为0.5,第n个匹配分数为1/n,如果没有匹配的句子分数为0。最终的分数为所有得分之和。1 mrr 指标常见于搜索算法, 推荐算法。 具体场景如,搜索关键词kkk后, 算法根据rank值返回一系列候选:c1,c2,⋯&...原创 2019-06-14 22:01:13 · 347 阅读 · 0 评论 -
leetcode problem 312. Burst Balloons 20190718
Description Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will...原创 2019-07-19 14:30:58 · 206 阅读 · 0 评论 -
leetcode problem 399. Evaluate Division
20190719 Description Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the a...原创 2019-07-19 22:02:41 · 209 阅读 · 0 评论 -
leetcode problem 84. Largest Rectangle in Histogram
Description Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where widt...原创 2019-08-01 11:03:09 · 181 阅读 · 0 评论 -
numpy random 持续更新
np.random.rand(d0,d1, …, dn) 生成[0,1)之间的数 np.random.randn(d0,d1, …, dn) 标准正态分布 np.random.randint(low, high=None, size=None, dtype = ‘I’) 返回整数,区间为[low,high) size是数组大小 ...原创 2019-08-21 14:38:48 · 200 阅读 · 0 评论
分享