davidbelanger / spen Goto Github PK
View Code? Open in Web Editor NEWStructured Prediction Energy Networks in Torch
Structured Prediction Energy Networks in Torch
Hi, could you please tell me where is the code for solving equation (2) of your paper? I spent a long time studying your code but failed to find it.
Since I haven't gone deeply into this package yet, just wonder if this package/tool can allow us to define arbitrary graphs (that have exact inference) for structured prediction task.
I couldn't find which part of the code is used to "build" the network.
Hi,
I'm studying your paper and apparently the link for getting the data of the Multi-Label Classification task is down !
I'm wondering where could I find these data ?
Best,
Nicolas
Hi, thank you for the great project. I am trying to run it, and having a wired problem in all different computers.
SSH to my ubuntu machine
Install Torch (from http://torch.ch/docs/getting-started.html)
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb``sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
git clone https://github.com/davidBelanger/torch-util.git
But I still get
heejin@hubuntu:~/SPEN$ ./quick_start_tagging.sh
Creating Synthetic Train/Test Data by Drawing from a CRF
/home/heejin/torch/install/bin/luajit: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/torch/init.lua:102: class nn.OneHot has been already assigned a parent class
stack traceback:
[C]: in function 'error'
/home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
test/test_data_serialization_and_loading.lua:1: in main chunk
[C]: in function 'dofile'
...ejin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
Training a CRF on the Data to Test that Obtainable Accuracy Approaches the Accuracy of the True Model
/home/heejin/torch/install/bin/luajit: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/torch/init.lua:102: class nn.OneHot has been already assigned a parent class
stack traceback:
[C]: in function 'error'
/home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
test/test_chain_crf_mle_from_file.lua:2: in main chunk
[C]: in function 'dofile'
...ejin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
Training a SPEN on the Data using tag_cmd.sh
tag_cmd.sh: 5: [: 0: unexpected operator
-gradient_clip 1.0 -optim_method adam -evaluation_frequency 25 -save_frequency 25 -adam_epsilon 1e-8 -batches_per_epoch 100 -learning_rate_decay 0.0 -learning_rate 0.001 -num_epochs 30 -training_mode pretrain_unaries
running in tag-runs/Sat_Oct__7_16:48:17_CDT_2017
/home/heejin/torch/install/bin/luajit: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: /home/heejin/torch/install/share/lua/5.1/torch/init.lua:102: class nn.OneHot has been already assigned a parent class
stack traceback:
[C]: in function 'error'
/home/heejin/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:4: in main chunk
[C]: in function 'dofile'
...ejin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
Could you help please?
Thank you.
Hello David, I cannot get working SPEN denoising example. First I got an exception about inference_net
being nil
in RNNInference.lua
, which I fixed somehow by setting inference_net = nn.Identity
. But now I get an error because inference_net
is nil
:
2: attempt to index local 'module' (a nil value)
stack traceback:
...e/dulyanov/torch/install/share/lua/5.1/nn/Sequential.lua:12: in function 'add'
./RNNInference.lua:68: in function '__init'
Can you please try to reproduce it?
I used this fork to run the experiments, since it provided a helpful script. Wondering if denoising worked for xuexue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.