last day (15 days later) » 

4:50 PM
hi
tell me what is going on?
r u there?
 
hi. Like I've mentioned in the question. Actually the last token shouldn't be printed. I need to correspond the leading label with the value of the last token.
it's actually a code to convert a csv file to LIBSVM readable format.
 
i do not the format but
1 0.24887:1 0.64811:1 0.5987:1 0.39418:1 0.96313:1 0.92772:1 1:1
1 0.59092:1 0.66222:1 0.6655:1 0.45021:1 0.87868:1 0.92897:1 1:1
1 0.67556:1 0.66291:1 0.43898:1 0.37441:1 0.95397:1 0.92851:1 1:1
1 0.70637:1 0.66395:1 0.859:1 0.39656:1 0.96331:1 0.93005:1 2:1
1 0.93686:1 0.66841:1 0.66013:1 0.39382:1 0.96343:1 0.92674:1 2:1
1 0.1355:1 0.66448:1 0.15662:1 0.39256:1 0.98848:1 0.90344:1 2:1
how you from third line which is 1:1
you got 2:1
 
it's not a code that does any calculation. It's just a code that reads from a dataset which is in .csv
 
so if we have 1:1 and 2:1 and since 1 and 2 are not equal
next line will be printed 2?
did i get that right?
 
1 0.67556:1 0.66291:1 0.43898:1 0.37441:1 0.95397:1 0.92851:1 1:1
2 0.70637:1 0.66395:1 0.859:1 0.39656:1 0.96331:1 0.93005:1 2:1
yep
 
4:56 PM
what did you compare your first line with?
to me you should start comparing from second line
am I right?
 
The first line starts with 1. so no comparison is done. from my code, it's kind hard coded to 1.
I cant figure a way to actually read the last token.
and actually do something like label = last token
 
aaaaaaaa it seems you are making it too complicated
do you have skype?
 
naah i dont.
it's okay. i'll figure it out some way or another.
 
lemme through some example
wanna hear it?
 
yeah if youre willing to.
 
4:59 PM
imagine your file content is
1
1
2
2
3
and your output is
1
3
wait
1
1
3
2
4
is this what you want?
since one is equal one
1
!
1
1
and 2 is not equal 1
1
1
3
 
No.
 
and so on got it?
 
Aha.
I think you got me wrong
And it's my fault for the bad english and explanation.
To make things simpler
 
I told you before lol
 
Lets say my file is as follows
 
5:04 PM
listen I want to help you so I am here to help
just gimme one sec I need to go to rest room
so you gonna have enough time to put good sample for me
 
1 ...... 1
1 ...... 1
1 ...... 1
1 ...... 1
1 ...... 2
1 ...... 2
 
so I can help you better
k?
be right back
 
sure
so the output should be :
1 ...... 1
1 ...... 1
1 ...... 1
1 ...... 1
2 ...... 2
2 ...... 2
The leading number should be equal to the last
But I could not find a way to read the last token and append it to the beginning of the line.
 
k i am back
let see
which one is leading number? for example in 1......1 ?
 
The first 1
Beginning of the line.
It's the 'label' which is a String in my code.
 
5:13 PM
and the last one is the last token ya/
?
 
Aha
 
k i am strating to understand what you want
and your question is how to extract the last token ya?
 
Exactly.
 
so you know how to compare part?
the main issue is the extracting the last token?
 
Yea.
 
5:15 PM
k lemme do the code and let you know
wait for sec
your line is type String?
 
Aha
 
k hold on
are you sure this the only issue you have?
 
as far as Im concerned, yeah. haha
Sure man.
 
r u there?
:)
 
yeah.
Haha ya sure man. U need the points i see ;)
 
5:29 PM
aaa i just wnat it for my resume
it is good sing that i am active
beside i really do not care
 
Nah I'm cool. You do what you have to do. Lol.
 
haha but another answer is good too
but it is up to you
to accept whatever it sutied you and you understand better
wanna hve my email just in case
if you have more question?
 
You actually do this man? Damn you're something.
Haha
 
what you mean?
 
Helping out doing java codes
 
5:32 PM
ya i am tutor
 
I mean the codes can kill yknow. haha
 
so i do not want to give any answe rway
what code?
 
JAVA. I'm having a hard time mastering it
 
email me anytime
if you have question k?
 
Ya sure man. where u from?
whats ur mail
 
5:33 PM
i am from los angeles
u?
 
malaysia. ever heard of it? lol
 
hell ya
for god sake, do not you listen to news?
unfortunate incident for two airplans
:(
 
ya. not a good year for us.
 
so sad
:(
 
im actually on a project dealing with Hadoop.
You do hadoop?
 
5:36 PM
wowwww coool
no but I am willing to learn and help you
 
I'm learning too. This piece of code that you just did is actually to convert the csv file into libsvm format. I'm trying to implement the machine learning on hadoop.
 
wowwww cool u r more advance than I am
 
no im not. lol. not that good in programming. i'm a networking major student. i deal with networks. this is my final project.
 
k dude
nice metting you
lets talk later
 

last day (15 days later) »