Comments (7)
All the parameters are already set correctly as default and there is no need to tune. If you follow the evaluation instruction in README, the results should be exactly as follows (I just checked again by downloading the current code):
Did you uncomment line 28 in evaluation.py to set the model to be evaluated as the pre-trained model ?
from unsupervised-aspect-extraction.
Yes,i uncomment line 28 in evaluation.py to set the model to be evaluated as the pre-trained model,and i just change the import lib in model.py as follow:
import logging
import os
os.environ['KERAS_BACKEND']='theano'
import keras.backend as K
K.set_image_dim_ordering('th')
import importlib
importlib.reload(K)
from keras.layers import Dense, Activation, Embedding, Input
from keras.models import Model
from my_layers import Attention, Average, WeightedSum, WeightedAspectEmb, MaxMargin
Shouldn't I be doing this?This is the result of my downloading and running again.
precision recall f1-score support
Food 0.855 0.729 0.787 887
Staff 0.792 0.636 0.706 352
Ambience 0.781 0.470 0.587 251
Anecdotes 0.000 0.000 0.000 0
Price 0.000 0.000 0.000 0
Miscellaneous 0.000 0.000 0.000 0
avg / total 0.827 0.664 0.734 1490
thanks a lot!
from unsupervised-aspect-extraction.
-
Seems you are using Python 3. The code is tested under Python 2.7. Not sure whether this will affect the results. Also check the versions of other dependencies.
-
Did you download the preprocessed datasets directly or you preprocessed the original datasets again using the script provided? You should use the preprocessed dataset for the saved model. If you preprocess the dataset again, the word indexes may not exactly match the saved word embeddings as I don't really remember whether I changed something in the preprocess script when cleaning up the code.
from unsupervised-aspect-extraction.
thanks!i try to use Python 2.7, and get a similar result
from unsupervised-aspect-extraction.
Hi @ruidan,
Great job!
I wonder why are the results above different from the reported in the article?
Is it random seed or something else? Can we reproduce the same results as presented in the article?
from unsupervised-aspect-extraction.
I also tried to replicate the results and I got the same as @ruidan. It is a close result to the paper, but not exactly. Was it a different training set or parameters used in the paper?
EDIT: I checked the default parameters in the code and they are pretty much the same as the papers. The paper mentions that the reported results are an average of 10 executions; therefore @ilivans, it might explain the different results.
EDIT2: disregard my other questions, I found the answer in the paper.
from unsupervised-aspect-extraction.
@ThiagoSousa thank you! Shame on me for not noticing that detail.
from unsupervised-aspect-extraction.
Related Issues (20)
- TensorFlow version HOT 2
- AttributeError: 'Dimension' object has no attribute 'eval' HOT 8
- training on CPU HOT 1
- Question about "ortho_reg: loss - max_margin_loss" HOT 2
- TypeError: Expected float32, got <function create_model.<locals>.ortho_reg at 0x7fa3ee0d88c8> of type 'function' instead.
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 0: ordinal not in range(128) HOT 1
- CUDA version HOT 3
- Details for the code.
- 可以告诉我您使用的tensorflow的版本吗? HOT 1
- What happened to unknown words? HOT 2
- Predict_label on test data HOT 2
- coherence score HOT 2
- Source of data HOT 2
- Execution order of word2vec and preprocess HOT 2
- Attribute Error
- How did you create the Representative Words listed in the paper? HOT 2
- TypeError: add_weight() got multiple values for argument 'name'
- Pls help me solve this problem
- Running it on a new dataset HOT 2
- Why I can't open your dataset url
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsupervised-aspect-extraction.