Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:59:54+00:00 2026-06-09T12:59:54+00:00

I am trying to run some classification using weka from the command line. In

  • 0

I am trying to run some classification using weka from the command line. In this link weka-Primer-commandline there is the following example for creating test and training sets:

java weka.filters.supervised.instance.StratifiedRemoveFolds -i data/soybean.arff -o soybean-train.arff \
-c last -N 4 -F 1 -V

java weka.filters.supervised.instance.StratifiedRemoveFolds -i data/soybean.arff -o soybean-test.arff \
-c last -N 4 -F 1

Is this piece of code supposed to make 3/4 of data for training and 1/4 for test set? To me seems that only one fold of the whole data(from the last because of -V) will be assigned for training and only 1 fold for test. Am I right? I need 3/4 data for training and 1/4 for test.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:59:55+00:00Added an answer on June 9, 2026 at 12:59 pm

    The code in the documentation is correct and puts 3/4 of the data in the train set and 1/4 in the test set. The options mean the following:

    • -N: There should be 4 folds, meaning that the data is split into 4 equal non-overlapping parts
    • -F: The first of these parts/folds should be selected
    • -V: Inverse the selection

    So the first line which creates the train set, works as follows:

    • Create 4 folds
    • Select the first fold and take the inverse of that which results in selecting the remaining 3 fold, which is 3/4 of the data

    The test is simply created by only selecting the first fold, which is 1/4 of the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run some code from a book . There appears to
I am trying to run some PHP pages on the command line but am
I'm trying to run some unit tests using QUnit written in CoffeeScript but there
I am trying to run some unix commands from my java code. I am
I'm trying to run some basic javascript code with JSF 2. I'm using the
I'm trying to run some console application .exe files from a batch file in
I am trying to run some tests using OPENmpi processing data in an array
Trying to run some sql in a pl/sql procedure. Select field from schema.view; I
I'm trying to run some tests in Ant presently using JUnit, and all of
I am trying to run some shell scripts for Java by using commons exec

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.