本文整理了Java中cc.mallet.types.InstanceList.sampleWithInstanceWeights()
方法的一些代码示例,展示了InstanceList.sampleWithInstanceWeights()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InstanceList.sampleWithInstanceWeights()
方法的具体详情如下:
包路径:cc.mallet.types.InstanceList
类名称:InstanceList
方法名:sampleWithInstanceWeights
[英]Returns an InstanceList
of the same size, where the instances come from the random sampling (with replacement) of this list using the instance weights. The new instances all have their weights set to one.
[中]返回相同大小的InstanceList
,其中实例来自使用实例权重对此列表的随机采样(替换)。新实例的权重都设置为1。
代码示例来源:origin: cc.mallet/mallet
do {
err = 0;
roundTrainingInsts = trainingInsts.sampleWithInstanceWeights(random);
weakLearners[round] = weakLearner.train (roundTrainingInsts);
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
do {
err = 0;
roundTrainingInsts = trainingInsts.sampleWithInstanceWeights(random);
weakLearners[round] = weakLearner.train (roundTrainingInsts);
代码示例来源:origin: com.github.steveash.mallet/mallet
do {
err = 0;
roundTrainingInsts = trainingInsts.sampleWithInstanceWeights(random);
weakLearners[round] = weakLearner.train (roundTrainingInsts);
内容来源于网络,如有侵权,请联系作者删除!