本文整理匯總了Java中weka.filters.unsupervised.instance.RemoveRange類的典型用法代碼示例。如果您正苦於以下問題:Java RemoveRange類的具體用法?Java RemoveRange怎麽用?Java RemoveRange使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RemoveRange類屬於weka.filters.unsupervised.instance包,在下文中一共展示了RemoveRange類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: selectSubSample
import weka.filters.unsupervised.instance.RemoveRange; //導入依賴的package包/類
/**
* Produces a random sample from m_Data
* in m_SubSample
*
* @param data data from which to take sample
* @throws Exception if an error occurs
*/
private void selectSubSample(Instances data)throws Exception{
m_SplitFilter = new RemoveRange();
m_SplitFilter.setInvertSelection(true);
m_SubSample = data;
m_SplitFilter.setInputFormat(m_SubSample);
m_SplitFilter.setInstancesIndices(selectIndices(m_SubSample));
m_SubSample = Filter.useFilter(m_SubSample, m_SplitFilter);
}