The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options

[SOLVED] Output in Netbeans

JiyJiy Member Posts: 6 Contributor II
edited November 2018 in Help
hello! im beginner here. so im not so familiar with the syntax. im trying to integrate rapidminer with netbeans. and here is the ouput

[tt]
year
1932.0
1933.0
1934.0
1935.0


prediction(label)
-0.9235532885861942
-0.9271335452092432
-0.931377881689793
-0.9365172823261052

[/tt]

how to make the output looks like this ?

year    ||    prediction
==========================
1932   ||   -0.9235532885861942
1933   ||    -0.9271335452092432
1934   ||   -0.931377881689793
1935  ||    -0.9365172823261052


sorry for my bad english. anyway thanks in advance! ;)
Tagged:

Answers

  • Options
    Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    you mean like so ???

    Attribute label = exampleSet.getAttributes.getLabel();
    Attribute year = exampleSet.getAttributes.get("year");
    System.out.println(attribute.getName() + "    ||    " + year.getName());
    for (Example ex : exampleSet) {
        System.out.println(com.rapidminer.tools.Tools.formatIntegerIfPossible(ex.getValue(year), -1) + "    ||    " + ex.getValue(label));
    }

    Regards,
    Marco
  • Options
    JiyJiy Member Posts: 6 Contributor II
    Sorry for my stupid question ::)
    and many thanks for your help! :D
Sign In or Register to comment.