Java Code Examples for weka.core.OptionHandler#setOptions()
The following examples show how to use
weka.core.OptionHandler#setOptions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApiWrapperTest.java From wekaDeeplearning4j with GNU General Public License v3.0 | 5 votes |
@Test public void testOptions() throws Exception { if (wrapper instanceof OptionHandler) { OptionHandler optionHandler = ((OptionHandler) wrapper); String[] options = optionHandler.getOptions(); String[] optionsCopy = Arrays.copyOf(options, options.length); optionHandler.setOptions(optionsCopy); String[] optionsAfter = optionHandler.getOptions(); Assert.assertArrayEquals(options, optionsAfter); } }
Example 2
Source File: ApiWrapperTest.java From wekaDeeplearning4j with GNU General Public License v3.0 | 5 votes |
@Test public void testOptions() throws Exception { if (wrapper instanceof OptionHandler) { OptionHandler optionHandler = ((OptionHandler) wrapper); String[] options = optionHandler.getOptions(); String[] optionsCopy = Arrays.copyOf(options, options.length); optionHandler.setOptions(optionsCopy); String[] optionsAfter = optionHandler.getOptions(); Assert.assertArrayEquals(options, optionsAfter); } }
Example 3
Source File: StrUtils.java From tsml with GNU General Public License v3.0 | 4 votes |
public static void updateOptions(OptionHandler optionHandler, String[] options) throws Exception { String[] current = optionHandler.getOptions(); String[] next = uniteOptions(options, current); optionHandler.setOptions(next); }
Example 4
Source File: StrUtils.java From tsml with GNU General Public License v3.0 | 4 votes |
public static void setOptions(OptionHandler optionHandler, final String options) throws Exception { optionHandler.setOptions(Utils.splitOptions(options)); }
Example 5
Source File: StrUtils.java From tsml with GNU General Public License v3.0 | 4 votes |
public static void setOptions(OptionHandler optionHandler, String options, String delimiter) throws Exception { String[] optionsArray = options.split(delimiter); optionHandler.setOptions(optionsArray); }