首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏奇妙的算法世界

    Ternary String(贪心)

    You are given a string s such that each its character is either 1, 2, or 3. You have to choose the shortest contiguous substring of s such that it contains each of these three characters at least once.

    37920发布于 2020-10-23
  • 来自专栏机器学习、深度学习

    三值网络--Trained Ternary Quantization

    Trained Ternary Quantization ICLR 2017 https://github.com/TropComplique/trained-ternary-quantization pytorch https://github.com/buaabai/Ternary-Weights-Network pytorch 传统的二值网络将权重 W 量化为 +1、-1; 三值网络 TWN (Ternary weight networks) 将权重W 量化为 {−W_l ,0,+W_l } ? Then do the initial quantization: in the model replace them by ternary values {-1, 0, +1} using some

    1.7K40发布于 2019-05-26
  • 来自专栏机器学习、深度学习

    二值网络--TBN: Convolutional Neural Network with Ternary Inputs and

    //blog.csdn.net/zhangjunhit/article/details/90054941 TBN: Convolutional Neural Network with Ternary Inputs and Binary Weights ECCV2018 本文的思路就是: 对 weight 进行二值量化+ scaling factor α , 对于 网络层的输入 进行 ternary value {−1,0,1} without the scaling factor 3 Ternary-Binary Networks 3.1 Convolution with Matrix Multiplication 3.3 Ternary Inputs the scaling factors of the binary inputs does not affect the performance of XNOR-Networks 3.4 Ternary-Binary Dot Product 这样卷积就没有乘法运算了,只有 位运算和 加减 ? 量化梯度求导采用: ? ? ? ?

    63820发布于 2019-05-27
  • 来自专栏数据 学术 商业 新闻

    Ternary | 绘制好看的三元相图原来这么简单...

    Ternary」-绘制好看的三元相图原来这么简单~ 在新增我们的R语言可视化课程(免费持续更新!) 时,发现了一个绘制三元相图(Ternary Plots) 的优质绘图工具-*「Ternary」,不同于ggtern包,其绘制的结果更加美观和整洁,真的是让人一眼就爱上的那种! 下面,小编就简单给大家介绍一下这个优质的绘图工具吧~~ Ternary简单介绍 Ternary包安装 install.packages("Ternary") 注意:还可以通过如下语句调出Shiny app 绘图样式: Ternary::TernaryApp() Ternary包可视化案例 简单背景图绘制 TernaryPlot() Create a blank plot 多子图绘制 par(mfrow 包的语法和可视化案例,感兴趣的同学可阅读Ternary包官网[1]

    99910编辑于 2024-03-06
  • 来自专栏生信技能树

    nature communications 杂志同款三元图:Ternary plots

    三元图:Ternary plots绘制 rm(list=ls()) library(ggtern) plot_data = read.table("Fig2/Tern_data.txt", header

    42910编辑于 2025-02-05
  • 来自专栏数据 学术 商业 新闻

    Python-R-三相元图(ternary plots)绘制

    作为2021年的第一篇推文,我们选择粉丝要求的图表绘制,这期推文,我们将介绍如何使用Python和R制作三相元图( ternary plots),涉及的知识点如下: Python-ternary包绘制三相元图 R-ggtern包绘制三相元图 Python-ternary包绘制三相元图 在查阅“使用Python绘制三相元图”时,我们查阅到了ternary包,该包可实现使用Python绘制三相元图的要求,官网为 :https://github.com/marcharper/python-ternary,我们绘制几副官网的图例,其他样例,大家可以参考官网: 样例一:Simplex Boundary and Gridlines def generate_heatmap_data(scale=5): from ternary.helpers import simplex_iterator d = dict() Ternary Tribin ? Demonstration of Raster Annotation 当然,还有一个交互式的demo可以更好的体验ggtern包的强大,界面如下: ? ?

    2.3K11发布于 2021-02-22
  • 来自专栏Zaqdt_ACM

    Balanced Ternary String(模拟)

    题目链接:http://codeforces.com/contest/1102/problem/D

    45520发布于 2019-01-11
  • 来自专栏数据 学术 商业 新闻

    我汇总了所有三元相图(ternary plots)的绘制方法,超实用!!

    作为2022年的第一篇推文,我们读者要求,介绍如何使用Python和R制作三相元图( ternary plots),涉及的知识点如下: Python-ternary包绘制三元相图 R-ggtern包绘制三元相图 Python-ternary包绘制三元相图 在查阅“使用Python绘制三元相图”时,我们查阅到了ternary包,该包可实现使用Python绘制三元相图的要求,官网为:https://github.com /marcharper/python-ternary,我们绘制几副官网的图例,其他样例,大家可以参考官网: 样例一:Simplex Boundary and Gridlines import pandas matplotlib.pyplot as plt ## Boundary and Gridlines fig,ax = plt.subplots() scale = 30 figure, tax = ternary.figure def generate_heatmap_data(scale=5): from ternary.helpers import simplex_iterator d = dict()

    14.2K31编辑于 2022-02-17
  • 来自专栏小明的数据分析笔记本

    跟着Nature Communications学作图:R语言ggtern包画三元相图(Ternary plots )

    github.com/PlantNutrition/Liyu 今天的推文我们重复一下论文中的Figure2f image.png 这个图怎们看,然后表达的是什么含义,我暂时还想不明白,论文中给的图注是 Ternary

    1.4K20编辑于 2023-01-06
  • 来自专栏数据 学术 商业 新闻

    绘图技巧 | 三元相分级统计地图(Ternary Choropleth Map)可视化绘制

    「样例三:Ternary centering」 tric_lf_non_centered <- Tricolore(euro_example, breaks = Inf, 1478654 , xmax = 568885.4 , ymin = -2642789, ymax = -1753061 ) + labs( title = "Example <em>Ternary</em>

    3.6K20发布于 2021-03-11
  • 来自专栏疯狂学习GIS

    R语言绘制三元图、RGB空间图

      本文介绍基于R语言中的Ternary包,绘制三元图(Ternary Plot)的详细方法;其中,我们就以RGB三色分布图为例来具体介绍。 其中,基于R语言中的Ternary包,我们可以非常方便地绘制三元图;本文就对其具体绘制方法加以介绍。    首先,由于我们需要用到R语言中的Ternary包,因此通过如下所示的代码配置Ternary包。 install.packages("Ternary") Ternary包提供了两种绘制三元图的方法。 首先,通过代码绘制三元图,我们需要导入Ternary包。 library(Ternary)   最简单的三元图绘制方式,就是通过图下的代码,生成一个最基本的三元图。 github.io/Ternary/reference/index.html。   

    76720编辑于 2023-06-26
  • 来自专栏数据 学术 商业 新闻

    三元相图(ternary plots)的还不会?!附上超完整的绘制教程(Python+R)~~

    作为2022年的第一篇推文,我们读者要求,介绍如何使用Python和R制作三相元图( ternary plots),涉及的知识点如下: Python-ternary包绘制三元相图 R-ggtern包绘制三元相图 Python-ternary包绘制三元相图 在查阅“使用Python绘制三元相图”时,我们查阅到了ternary包,该包可实现使用Python绘制三元相图的要求,官网为:https://github.com /marcharper/python-ternary,我们绘制几副官网的图例,其他样例,大家可以参考官网: 样例一:Simplex Boundary and Gridlines import pandas matplotlib.pyplot as plt ## Boundary and Gridlines fig,ax = plt.subplots() scale = 30 figure, tax = ternary.figure def generate_heatmap_data(scale=5): from ternary.helpers import simplex_iterator d = dict()

    3.5K40编辑于 2022-10-25
  • 来自专栏机器学习、深度学习

    模型量化

    TBN:Convolutional Neural Network with Ternary Inputs and Binary Weights ECCV_2018 paper TBN 用 高效的 XOR 对此我们提出使用三值化网络层的输入信号来提升性能 ternary inputs constrain input signal values into −1, 0, and 1 Ternary-Binary Network (TBN) = 网络权重参数的二值化 + 网络层输入的三值化 By incorporating ternary layer-wise inputs with binary network weights, we propose a Ternary-Binary Network (TBN) that provides an optimal tradeoff between the performance

    87410发布于 2019-05-26
  • 来自专栏数据 学术 商业 新闻

    除了超赞三元相图,还有二元相和圆形图例?!这个可视工具有点猛~~

    之前的推文中,小编给出了Python和R关于三元相图的绘制方法(我汇总了所有三元相图(ternary plots)的绘制方法,超实用!!) poisson_approval库官网[1] 本期推文主要介绍其可视化部分~~ poisson_approval库绘制三元相多边形图 poisson_approval库绘制的三元相图主要表现组成占比情况,主要依赖python-ternary abc', 0.1, 0.01): Fraction(1, 10), ('abc', 0.9, 0.01): Fraction(1, 10)} ) pa.ternary_plot_n_equilibria map') Advanced Candidate Heat Maps 更多样例及设置参数可参考:tutorial_binary_plots[3] 总结 今天的这篇推文小编主要介绍另一种样式的三元相图(Ternary [2] tutorial_ernary_plots: https://poisson-approval.readthedocs.io/en/latest/tutorials/tutorial_ternary_plots.html

    1.1K40编辑于 2022-10-25
  • 来自专栏作图丫

    盘它!全基因组数据可视化R包-idiograms

    data(karyotype_ternary_comparison, package="RIdeogram") head(karyotype_ternary_comparison) #> Chr Start #> Amborella Grape Liriodendron #> 100 19 19 data(synteny_ternary_comparison , package="RIdeogram") head(synteny_ternary_comparison) #> Species_1 Start_2 End_2 Species_2 Start , synteny = synteny_ternary_comparison) convertSVG("chromosome.svg", device = "png") data(synteny_ternary_comparison_graident , package="RIdeogram") ideogram(karyotype = karyotype_ternary_comparison, synteny = synteny_ternary_comparison_graident

    2.4K21编辑于 2022-03-28
  • 来自专栏李家杂货铺zi

    100BASE-T4 MII与MDI间的信号发送和接收流程

    1)MAC送过来的nibbles(4个bit)存入寄存器(tsr和ohr),PCS TRANSMIT按照octets读取,然后使用8B6T编码表将octets编码为6T code groups(被称为ternary symbols),存入寄存器(ohr),再传送给PMA,因为MDI需要3路传输数据,所以6T code groups会分三路扇出到TX_D1±、B1_D3±、B1_D4±差分对上,每个差分对上的ternary 2)PMA RECEIVE接收外部过来的ternary symbols,最终将它们解码成nibbles,传给MAC,更详细的流程可以参考下图,或者阅读802.3协议section 2的部分。

    64710编辑于 2023-03-21
  • 来自专栏科学计算

    FPGA论文系列--Can FPGAs Beat GPUs in Accelerating DNN?

    他们特别关注了稀疏修剪和低比特精度(ternary,即三态)神经网络的处理。实验中,通过优化数据管理单元,动态检查和跟踪零值,从而跳过不必要的零运算,实现了性能的提升。 而对于Ternary ResNet的情况,Stratix 10 FPGA在性能上预计比Titan X Pascal GPU提高了60%。 GPU评估:软件生态的助力 对于GPU的评估,研究团队使用了Torch框架和Ternary ResNet-50模型在Titan X Pascal上进行测试,发现最佳性能出现在批次大小为64时。 尽管如此,实际测试中Ternary ResNet的平均性能为6.6 TFLOP/s,低于GPU理论峰值的11 TFLOP/s。

    46110编辑于 2024-05-13
  • 来自专栏不能显示专栏创建者

    紊乱在三亚氮化物合成中的作用(CS)

    The role of disorder in the synthesis of metastable ternary nitrides Rachel Woods-Robinson, Vladan Stevanović Ternary nitride materials, with many possible metastable polymorphs, provide a domain to test this assumption

    35800发布于 2020-12-29
  • 来自专栏有三AI

    【知识星球】模型量化从1bit到8bit,二值到三值

    有三AI知识星球-网络结构1000变 Ternary weight networks ? Ternary weight networks是一种量化网络,它将权值量化为3阶,即包括1,-1,0三种数值,能取得高达32倍的压缩率,性能接近全精度的网络。 作者/编辑 言有三 Ternary weight networks的原理非常简单,它比二值化网络多了一阶权重,而且这多出来的一阶权重还不增加计算量。 Ternary weight networks[J]. arXiv preprint arXiv:1605.04711, 2016. 3 8bit网络 8bit网络是最常见的量化方法了,有一些成熟的工具可以在训练完成之后做量化

    3.2K10发布于 2019-09-18
  • 来自专栏数据 学术 商业 新闻

    放弃Origin,试试Veusz吧:免费强大的科研数据绘图工具吧~~

    Veusz软件样例介绍 「样例一」:multiple axes Veusz - multiple axes 「样例二」:bar plots Veusz - bar plots 「样例三」:ternary plot Veusz - ternary plot 「样例四」:dataset operations Veusz - dataset operations 「样例五」:axis linked by

    2.4K31编辑于 2022-10-25
领券