问题标签 [metric]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - Android - 公制单位的默认字符串?
公制单位的 Android 字符串值是否存在?就像是
如果没有,是否有一个图书馆?在官方文档和Android Arsenal上都找不到任何东西。谢谢。
awk - Bosun 中已用内存的百分比
我在 Bosun 中制作特定图表时遇到问题。该图应该包含内存使用率最高的主机,但我找不到任何可用的指标来做到这一点。当然,我有os.mem.used就像os.mem.percent_free一样,但对我来说它不是很有帮助。我想从查询中获取两个系列,就像警报一样:moemry 的总数和使用的一个,除以使用的总数并乘以 100。
问题似乎是我不能划分系列,所以最后的机会是通过grep和awk在 Linux 中的 free 命令编写我自己的指标。
facebook - Facebook API 指标 - 如何获得:总照片浏览量、评论、分享和链接点击
我正在尝试通过 Facebook API 获取一些数据。目前我可以得到:
- 自然展示(指标:page_impressions_organic)
- 自然付费展示(指标:page_impressions_paid)
- 总喜欢(指标:page_fans)
- 总视频观看次数(指标:page_video_views)
我还需要的是:
- 照片总浏览量
- 总股份
- 链接点击总数
- 评论总数
但我不知道如何得到它。
是否可以通过 Metric 或通过 Facebook API 以其他方式获取这些数据?你能告诉我实现的方法吗?
谢谢
java - 使用 BigIntegers
我创建了一个程序,它采用公制中的基本单位。(比方说克。)然后当您选择一个前缀时,将其更改为等量。(例如 1000 克,当您选择 Kilo 时会将其更改为 1 公斤。)
问题是当我运行代码时它总是以零结束,这让我认为我在操纵 BigIntegers 是错误的。(我使用非常大的数字,因为某些前缀非常小或非常大,超出了通常的长数字。)
这是代码:
谢谢你的帮助。
math - 是否有一个度量来评估两个对象之间的相似性,基于它们的属性?
假设我有一个X
具有 10 个特征的对象:[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
.
然后,我还有两个对象:
A : [2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
B : [0, 0, 0, 0, 0, 0, 0, 0, 0, 20]
我需要知道哪个来自A
或B
“更接近” X
。
我在“相似性”背后的想法是:
最好所有功能都几乎相同,而不是许多功能非常接近但有些非常不同。
根据这个“定义”,A
似乎更X
接近于B
。
然而,算术平均值似乎不是实现这个想法的正确工具,因为它对于两个对象都是 2。
请问这种问题有特定的指标吗?
python - 如何在 Python 中使用 metric=cosine 解释 fcluster 输出中的距离值(> 1)
我正在尝试在 Python 中对一组文档进行层次聚类。我将 scipy.cluster.hierarchy 与 method=average 和 metric=cosine 一起使用,如下所示:
我在解释链接方法的输出时遇到问题,因为有些距离不止一个。当我使用的度量是余弦时,这怎么可能?它不应该小于或等于1吗?
[[ 7. 22. 0. 2. ] [ 14.
27. 0. 2. ] [ 33. 34. 0.266383 2. ] [ 2. 12. 0.77866776 2. ] [ 18. 20. 1.09118911 2. ] [ 0 .
6. 1.09586741 2. ] [ 26. 30. 1.09711324 2. ] [ 32. 42. 1.12491309 3. ] [ 15. 16. 1.12715133 2. ] [ 5.
21. 1.18961564 2. 1 ] [ 4. 4. 2. 2 1 . ] [ 3. 24. 1.21711052 2. ] [ 9. 17. 1.26018569 2. ] [ 1.
23. 1.27712536 2. ] [ 35. 41. 1.34423149 3. ] [ 13. 45. 1.36113739 3. ] [ 28. 46. 1.38535987 3. ] [ 29.
40. 1.40081718 3.18 3.2 ] [61.48 3.14] [61.48 ] [ 25. 51. 1.42704815 4. ] [ 11. 50. 1.43200913 4. ] [ 10.
53. 1.44240297 4. ] [ 47. 54. 1.4833146 5. ] [ 19. 55. 1.48748052 5. 2 ] . 1.49125894 5. ] [ 49.
59. 1.50473572 7. ] [ 58. 60. 1.55300865 10. ] [ 57. 62. 1.56317408 14. ] [ 56. 61. 1.5656443 11. ] [ 63.
64. 1.58042986 25. ]
image - What image metrics to use for selecting pictures for thumbnails?
I would like to automate process of creating thumbnails / contact sheets for videos. They are usually m x n matrixes of pictures, eg 6x11 or 8x12 etc. Randomly selected pictures are sometimes bad quality: contains movement (blurry image), camera spans (blurry too), too dark or completely black, or completely white, no details, etc. Currently I am using the jpg image file size for image metric: bigger file size -> more details on the picture. Combined with number of colors (can be determined with ImageMagick "identify -format %k" command). I normalize both to 0.0-1.0 interval by dividing with the largest value in the group of the pictures and then I compute the following metric:
gamma*number_of_colors^2+(1-gamma)*file_size^2
Where gamma is a weighting parameter and can be in interval 0.0-1.0. What other approaches, image metrics can be used for this purpose?