Hi,
I want to process a text file. Here are the contents of the text file
labels 1 -1
-1 0.2988 0.7012
-1 0.188161 0.811839
-1 0.0824541 0.917546
1 0.579515 0.420485
-1 0.0965063 0.903494
-1 0.174624 0.825376
-1 0.0404312 0.959569
-1 0.0770909 0.922909
-1 0.12001 0.87999
1 0.778388 0.221612
In the above data, there are 11 lines (rows) and 3 values (columns) are on each line and every value is separated by a space. The second are third column are actually the probability scores.
Now I want to perform 2 actions.
1. I want to access the second column of each line and print those values into a new text file.
2. I want to analyse second and third column and want to print the highest value in between them into a new text file.
Please help me out to solve this problem.