Data Mining

Download Free Data Mining Source Code In C/C++, C#, Visual Basic, Visual Basic.NET, Java,
and other programming languages
Welcome to Data Mining Sign in | Join | Help
in Search

Data Mining Source Code Newsletter

Announcing The Data Mining Source Code Newsletter!

Subscribe By Email | Subscribe By RSS Feed

How can I read values from output file(*.cou) in a script?

Last post 07-28-2008, 16:06 by TimManns. 1 replies.
Sort Posts: Previous Next
  •  07-17-2008, 4:24 8156

    How can I read values from output file(*.cou) in a script?

    Hi,

    I'm running a loop with script. Iteration frequency and values to be used in a loop is determined by output table.
    For example,
    ####################################################
    ~~~~~
    set TABLE.output_mode=Screen
    execute TABLE

    var count_c
    set count_c=TABLE.output.row_count

    for c from 1 to ^count_c

    var value_c
    set value_c=value TABLE.output at ^c 2

    create selectnode at ^c*100 100
    set selectnode.custom_name = ^value_c
    ~~~~~~~

    endfor
    ####################################################

    It works very well with Clementine client but the problem is that I have to run this script with Clementine server using batch.
    When I run the script with shell file, outputs are not shown on screen of course, but just saved as a file(*.cou) and cannot read output value.

    Is there anyway to read values from output files?
     

  •  07-28-2008, 16:06 8181 in reply to 8156

    Re: How can I read values from output file(*.cou) in a script?

    You could instead use the text output file node to output the results as a text file, then read it back using a variable file source node.

    Sorry I don't have the time to provide an example right now, but I think there are previous posts that have scripting examples, including using scripting to write paramters or output results to a text file.

    Cheers

    Tim

Announcing The Data Mining Source Code Newsletter!

Subscribe By Email | Subscribe By RSS Feed