24小时热门版块排行榜    

查看: 3713  |  回复: 7
【悬赏金币】回答本帖问题,作者david012将赠送您 50 个金币

david012

禁虫 (正式写手)

本帖内容被屏蔽

已阅   关注TA 给TA发消息 送TA红花 TA的回帖

ycxyfd1

铁杆木虫 (知名作家)


sesame_oil: 金币+1, 鼓励交流 2017-08-01 12:40:10
试着可以用Word转换

发自小木虫Android客户端
2楼2017-08-01 11:14:08
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

david012

禁虫 (正式写手)

本帖内容被屏蔽

3楼2017-08-01 11:19:33
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
4楼2017-08-01 13:43:44
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

晋鹏

版主 (知名作家)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
自私的猫1988: 金币+2, 鼓励交流 2017-08-08 18:42:58
排版可能需要的包:
/usepackage{algorithm}               //format of the algorithm
/usepackage{algorithmic}             //format of the algorithm
/usepackage{multirow}                //multirow for format of table
/usepackage{amsmath}
/usepackage{xcolor}
/DeclareMathOperator*{/argmin}{argmin}         //argmin或argmax公式的排版
/renewcommand{/algorithmicrequire}{/textbf{Input:}}   //Use Input in the format of Algorithm
/renewcommand{/algorithmicensure}{/textbf{Output:}}  //UseOutput in the format of Algorithm

排版图片可能需要的包:
/usepackage{graphics}
/usepackage{graphicx}
/usepackage{epsfig}

算法的排版举例:
/begin{algorithm}[htb]         %算法的开始
/caption{ Framework of ensemble learning for our system.}             %算法的标题
/label{alg:Framwork}                  %给算法一个标签,这样方便在文中对算法的引用
/begin{algorithmic}[1]                %这个1 表示每一行都显示数字
/REQUIRE ~~//                          %算法的输入参数:Input
    The set of positive samples for current batch, $P_n$;//
    The set of unlabelled samples for current batch, $U_n$;//
    Ensemble of classifiers on former batches, $E_{n-1}$;
/ENSURE ~~//                           %算法的输出:Output
    Ensemble of classifiers on the current batch,  $E_n$;
/STATE Extracting the set of reliable negative and/or positive samples $T_n$ from $U_n$  with help of $P_n$; /label{code:fram:extract}      %算法的一个陈述,对应算法的一个步骤或公式之类的; /label{ code:fram:extract }对此行的标记,方便在文中引用算法的某个步骤
/STATE Training ensemble of classifiers $E$ on $T_n /cup P_n$, with help of data in former batches; /label{code:fram:trainbase}
/STATE $E_n=E_{n-1}/cup E$; /label{code:fram:add}
/STATE Classifying samples in $U_n-T_n$ by $E_n$; /label{code:fram:classify}
/STATE Deleting some weak classifiers in $E_n$ so as to keep the capacity of $E_n$; /label{code:fram:select}
/RETURN $E_n$;                %算法的返回值
/end{algorithmic}
/end{algorithm}

排版效果图:
Latex 算法排版求助

在文中对算法和算法的某个步骤的引用:Therefore, in step /ref{code:fram:extract} of algorithm /ref{alg:Framwork}, we extract $T_n$, a set of reliable negative samples
1、  For和While循环语句的排版举例
(1)       排版效果图
Latex 算法排版求助-1

(2)       排版代码
/begin{algorithm}[h]
    /caption{An example for format For /& While Loop in Algorithm}
    /begin{algorithmic}[1]
        /FOR{each $i/in [1,9]$}
            /STATE initialize a tree $T_{i}$ with only a leaf (the root);//
            /STATE $T=T/bigcup T_{i};$//
        /ENDFOR
      
        /FORALL {$c$ such that $c/in RecentMBatch(E_{n-1})$} /label{code:TrainBase:getc}
            /STATE  $T=T /cup PosSample(c)$; /label{code:TrainBase:pos}
        /ENDFOR;
      
        /FOR{$i=1$; $i<n$; $i++$ }
            /STATE $//$ Your source here;
        /ENDFOR
      
        /FOR{$i=1$ to $n$}
            /STATE $//$ Your source here;
        /ENDFOR
      
        /STATE  $//$ Reusing recent base classifiers. /label{code:recentStart}
        /WHILE {$(|E_n| /leq L_1 )and( D /neq /phi)$}
            /STATE  Selecting the most recent classifier $c_i$ from $D$;
            /STATE  $D=D-c_i$;
            /STATE  $E_n=E_n+c_i$;
        /ENDWHILE /label{code:recentEnd}
      
    /end{algorithmic}
/end{algorithm}
及时行乐,人生不留遗憾!
5楼2017-08-01 16:28:53
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

david012

禁虫 (正式写手)

本帖内容被屏蔽

6楼2017-08-01 17:27:16
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

byq123

铁杆木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
引用回帖:
6楼: Originally posted by david012 at 2017-08-01 17:27:16
感谢,不过这些在IEEE模板中都不好用。
...

这个只能在 latex 中用, 你可以先在 winedt 中编辑算法,待成功后, 生成 pdf, 再用截图软件把算法作为图片粘到 word 中。
7楼2017-08-01 18:02:40
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

latexstudio

禁虫 (著名写手)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
lotuscsx: 金币-20, 屏蔽内容, 违规存档, 头像二维码宣传,签名广告,多次回复广告 2017-08-11 07:51:57
本帖内容被屏蔽

8楼2017-08-09 03:24:57
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 david012 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +11 Kittylucky 2026-08-27 12/600 2026-08-28 16:26 by lyxiaomc
[基金申请] 有没有仍没收到信息的 +3 德尚中行 2026-08-27 3/150 2026-08-28 15:24 by rongshuxia
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +8 苏东坡二世 2026-08-23 8/400 2026-08-28 14:41 by lkforward
[基金申请] 基金不中,共勉 +11 eulota 2026-08-26 11/550 2026-08-28 14:22 by 火星超人xi
[基金申请] 怎么查啊 +6 huang1991js 2026-08-26 6/300 2026-08-28 08:42 by winsaint
[基金申请] 哪位高人中了,把查询到的截图贴出来让我看看,让我长长见识 +5 yuleib84 2026-08-26 6/300 2026-08-28 00:02 by yudaoqian88
[基金申请] 申请删除本帖 +6 lyz123lyz 2026-08-27 7/350 2026-08-27 17:31 by 宁静致远sy
[基金申请] 基金未中,这种答复是模板吗? +5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[文学芳草园] 梦想 +3 myrtle 2026-08-26 3/150 2026-08-27 10:01 by angelyueyi
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 能否退出参与的面上项目解除限项 +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by 宝贝虫子
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国合现在查不到了吗? +10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 如果此刻你正在为国基感到焦虑,不妨来听听这首《基金之外》 +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
信息提示
请填处理意见