Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test scores are printed twice (once with Logger, once alone) #54

Closed
PonteIneptique opened this issue Oct 3, 2017 · 12 comments
Closed
Assignees
Labels

Comments

@PonteIneptique
Copy link
Member

-> Epoch  1 ...
203300/203300 [==============================] - 33s - loss: 2.4688 - lemma_out_loss: 1.4247 - pos_out_loss: 1.0441        
+	all acc: 0.8012268491211514
+	kno acc: 0.8214169909208819
+	unk acc: 0.14492753623188406
+	all acc: 0.8187645000196611
+	kno acc: 0.8274967574578469
+	unk acc: 0.5349143610013175
::: Train Scores (lemma) :::
+	all acc: 0.8055841134137763
+	kno acc: 0.8055841134137763
+	unk acc: 0.0
::: Dev Scores (lemma) :::
+	all acc: 0.7857818784007571
+	kno acc: 0.8105465553919162
+	unk acc: 0.12636165577342048
::: Test scores (lemma) :::
+	all acc: 0.8012268491211514
+	kno acc: 0.8214169909208819
+	unk acc: 0.14492753623188406
::: Train scores (pos) :::
+	all acc: 0.8166913439355407
+	kno acc: 0.8166913439355407
+	unk acc: 0.0
::: Dev scores (pos) :::
+	all acc: 0.8099913256052362
+	kno acc: 0.8238422516773032
+	unk acc: 0.4411764705882353
::: Test scores (pos) :::
+	all acc: 0.8187645000196611
+	kno acc: 0.8274967574578469
+	unk acc: 0.5349143610013175
@emanjavacas
Copy link

Can't reproduce this. Could you tell me how you started the script?

@PonteIneptique
Copy link
Member Author

pandora-train config_chrestien.txt --dev data/chrestien/dev --train data/chrestien/train --test data/chrestien/test --eval_file chrestiens_pos_logs_pytorch.csv

@emanjavacas
Copy link

emanjavacas commented Oct 4, 2017 via email

@mikekestemont
Copy link

mikekestemont commented Oct 4, 2017 via email

@PonteIneptique
Copy link
Member Author

This alias is just coming from here https://github.com/hipster-philology/pandora/blob/master/setup-gpu.py#L35-L40 which should be the default way to load in a cli (the methods, not the alias)

@emanjavacas
Copy link

Ok, thanks. I can't install setup-gpu.py because of this error error: Could not find suitable distribution for Requirement.parse('tensorflow-gpu==1.1.0'). After installing/building setup.py I am still not getting the executables. Do you have an idea why? (I am not using virtualenv, just for completeness).
It still feels a bit of a workaround since all we are doing at the end is calling a script.

@PonteIneptique
Copy link
Member Author

it should not be an issue if you use the current main.py which uses the same exact client. It might lessen your pain with the setup file. python main.py is the equivalent for now of pandora-train. Note that after #59 is merged, python train.py will be the equivalent of pandora-train.

I only use python setup.py or setup-gpu.py develop in virtualenv

@emanjavacas
Copy link

emanjavacas commented Oct 4, 2017 via email

@PonteIneptique
Copy link
Member Author

Take a look at the two PR, that should solve those issues.

@emanjavacas
Copy link

Just a reminder that the issue at the bottom of #55 is still there (even after those two PRs). I'd like to continue debugging the predict time issue, but I am gonna need a fix for this first.

@Jean-Baptiste-Camps
Copy link

Jean-Baptiste-Camps commented Oct 9, 2017

I think I might have identified the source of your difficulties in #55 (see there).

@PonteIneptique
Copy link
Member Author

A fix for this one is incoming.

@PonteIneptique PonteIneptique self-assigned this Oct 10, 2017
PonteIneptique added a commit that referenced this issue Oct 10, 2017
This was referenced Oct 10, 2017
Jean-Baptiste-Camps pushed a commit that referenced this issue Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants