plotParetoFronts2D(TunePareto)
plotParetoFronts2D()所属R语言包:TunePareto
A classical 2-dimensional plot of Pareto fronts
帕累托方面一个经典的2维图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Draws a classical Pareto front plot of 2 objectives of a parameter tuning. The first objective is on the x axis of the plot, and the second objective is on the y axis. Points on a Pareto front are connected by lines. Each Pareto front is drawn in a different color.
绘制的经典Pareto前沿积2的参数整定的目标。第一个目标是在x轴方向的图,和第二个目的是在y轴上。点上的帕累托前面的连接线。每个Pareto前沿被绘制在不同的颜色。
用法----------Usage----------
plotParetoFronts2D(tuneParetoResult,
objectives,
drawLabels = TRUE,
drawBoundaries = TRUE,
labelPos = 4,
fitLabels=TRUE,
cex.conf=0.5,
lty.fronts=1,
pch.fronts=8,
col.fronts,
...)
参数----------Arguments----------
参数:tuneParetoResult
An object of class TuneParetoResult as returned by tunePareto.
类的一个对象TuneParetoResult返回的tunePareto。
参数:objectives
The names or indices of the two objectives to plot. Pareto-optimality is determined only on the basis of these two objectives. Optional if the parameter tuning has exactly two objectives.
的名称或指数的两个目标的图。帕累托最优仅确定的基础上,这两个目标。可选参数的调整正好有两个目标。
参数:drawLabels
If set to true, the descriptions of the configurations are printed next to the points in the plot.
如果设置为true,则说明印在图中的点旁边的配置。
参数:drawBoundaries
If set to true, the upper or lower objective limits supplied in the objectiveBoundaries parameter of tunePareto are drawn as horizontal and vertical lines.
如果设置为true,上部或下部的客观限制提供objectiveBoundariestunePareto参数,绘制水平线和垂直线。
参数:labelPos
The position of the configuration labels in the plot (if drawLabels is true). Values of 1, 2, 3 and 4 denote positions below, to the left of, above and to the right of the points on the Pareto fronts.
在图中的配置标签的位置(如果drawLabels是真实的)。的1,2,3和4的值表示的位置,左侧的,帕累托各条战线上的点的上方和右侧。
参数:fitLabels
If this parameter is true (and drawLabels is true), overlapping or partially hidden configuration labels are removed from the plot to improve the readability of the remaining labels.
如果此参数为true(和drawLabels是真实的),重叠或部分隐藏的配置标签,从图中移除剩余的标签,以提高可读性。
参数:cex.conf
The size of the configuration labels in the plots (if drawLabels is true).
在图的配置标签(drawLabels如果是真实的)的大小。
参数:lty.fronts
A vector of line types to use for the Pareto fronts. By default, straight lines are drawn for all fronts.
的矢量线的类型,使用的帕累托方面。默认情况下,笔直的线条绘制各方面。
参数:pch.fronts
A vector of symbols to use for points on the Pareto fronts. All points on the same front will have the same symbol. By default, an asterisk is used.
一个向量的符号使用点帕累托方面。相同的前部上的所有点有相同的符号。默认情况下,使用一个星号。
参数:col.fronts
A vector of colors to use for the Pareto fronts. By default, a predefined set of colors is used.
向量的颜色使用的帕累托方面。默认情况下,使用一组预定义的颜色。
参数:...
Further graphical parameters to be passed to the plot function.
进一步的图形参数被传递到plot功能。
值----------Value----------
This function does not have a return value.
这个函数没有返回值。
参见----------See Also----------
tunePareto, plotDominationGraph
tunePareto,plotDominationGraph
实例----------Examples----------
# optimize the 'cost' parameter according[优化的“成本”参数]
# to CV error and CV Specificity on the 'iris' data set[CV错误和CV特异性的IRIS数据集]
r <- tunePareto(data = iris[, -ncol(iris)],
labels = iris[, ncol(iris)],
classifier = tunePareto.svm(),
cost=c(0.001,0.005,0.01,0.05,0.1,0.5,1,5,10,50),
objectiveFunctions=list(cvError(10, 10),
cvSpecificity(10, 10, caseClass="setosa")))
# plot the Pareto graph[绘制帕累托图]
plotParetoFronts2D(r)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|