jvking / bp-lda

Backpropagation Latent Dirichlet Allocation (a third-party reimplementation of paper "End-to-end Learning of LDA by Mirror-Descent Back Propagation over a Deep Architecture" by Jianshu Chen et al.)
BSD 2-Clause "Simplified" License
15 stars 4 forks source link

Error on train.feature #4

Closed miqbal23 closed 6 years ago

miqbal23 commented 6 years ago

Hello, I'm having problem in trying to execute your code

As per your instruction on README, I did execute the exe through this command

"BP_sLDA/bin/Release/BP_sLDA.exe" --nHid 5 --nHidLayer 10 --nInput 5000 --nOutput 1 
                                  --OutputType linearQuad --alpha 1.001 --nEpoch 50 
                                  --BatchSize 1000 --mu_Phi 0.01 --nSamplesPerDisplay 10000 
                                  --TrainLabelFile train.label --TestLabelFile test.label 
                                  --TrainInputFile train.feature --TestInputFile test.feature 
                                  --ResultFile result_Voc5000 --ThreadNum 32 --MaxThreadDeg 32

But I received this error, saying that there's a file missing

Scanning the file: train.feature

Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\Iqbal\Documents\GitHub\bp-lda\train.feature'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path)
   at BP_LDA.DataLoader.InputDataLoader(String InputDataFile, Int32 nInput)
   at BP_sLDA.Program.Main(String[] args)

How do I fix this problem?

jvking commented 6 years ago

For argument "--TrainInputFile train.feature" please change it to your input feature file location. E.g. data_AmazonMovieReview_1percent/train.feature

You will need to edit other file path accordingly.

On Tue, Apr 17, 2018 at 3:28 AM, Muhamad Iqbal notifications@github.com wrote:

Hello, I'm having problem in trying to execute your code

As per your instruction on README, I did execute the exe through this command

"BP_sLDA/bin/Release/BP_sLDA.exe" --nHid 5 --nHidLayer 10 --nInput 5000 --nOutput 1 --OutputType linearQuad --alpha 1.001 --nEpoch 50 --BatchSize 1000 --mu_Phi 0.01 --nSamplesPerDisplay 10000 --TrainLabelFile train.label --TestLabelFile test.label --TrainInputFile train.feature --TestInputFile test.feature --ResultFile result_Voc5000 --ThreadNum 32 --MaxThreadDeg 32

But I received this error, saying that there's a file missing

Scanning the file: train.feature

Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\Iqbal\Documents\GitHub\bp-lda\train.feature'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path) at BP_LDA.DataLoader.InputDataLoader(String InputDataFile, Int32 nInput) at BP_sLDA.Program.Main(String[] args)

How do I fix this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jvking/bp-lda/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AP19Cfo8Co82CsdkvK8xwfgAhKIG4n33ks5tpcPogaJpZM4TYCkf .

miqbal23 commented 6 years ago

Thank you for the help. It worked for now

And also a bit of recommendation, you should add information a bit about the platform you used for running the program. This code took quite a lot of resources in my PC so I had to run it on my virtual machine