Comments (7)
No, we don't have limitation about it. Could you please share call stack information about this exception ? How long are your sentences ? For BPTT, we have mini-batch and the default value is 10. You can modify the value by setting bptt_block variable. For LSTM, currently, we don't have it yet.
from rnnsharp.
Thank you for your quick response, and all information are as follow:
D:\RNNSharp>REM Build template feature set from training corpus
D:\RNNSharp>TFeatureBin.exe -mode build -template template.txt -inputfile KE-tra
in.txt -ftrfile tfeatures -minfreq 1
Loading feature template from template.txt...
Generate feature set...
Filter out features whose frequency is less than 1
100000...
D:\RNNSharp>REM Encoding LSTM-RNN-CRF model
D:\RNNSharp>RNNSharpConsole.exe -mode train -trainfile KE-train.txt -validfile K
E-valid.txt -modeltype 1 -modelfile KE-model.bin -ftrfile features.txt -tagfile
KE-tags.txt -layersize 100 -alpha 0.1 -crf 1 -maxiter 50 -savestep 200K 1>KE.tr
ainout
未经处理的异常: System.IndexOutOfRangeException: 索引超出了数组界限。
在 RNNSharp.RNN.ForwardBackward(Int32 numStates, Double[][] m_RawOutput)
在 RNNSharp.RNN.learnSentenceForRNNCRF(Sequence pSequence)
在 RNNSharp.RNN.TrainNet()
在 RNNSharp.RNNEncoder.Train()
在 RNNSharpConsole.Program.Main(String[] args)
D:\RNNSharp>pause
That's all my output messages. And in my task, I regarded a document as a sentence. So each one have 500~800 words.
from rnnsharp.
@ppsunrise Could you please host RNNSharp by Visual Studio and run your command line in debug mode ? If any exception happens, Visual Studio would show you which line throw out exception, and you could show these information to me.
from rnnsharp.
I debugged and got the information as the pictures show:
from rnnsharp.
In your third screenshot, can you please load RNNSharp.pdb which is a symbol file for debugging, and then we will know which exact line throw out exception.
from rnnsharp.
hi, zhong, Thank you for kind response! I copy my files to the path RNNSharp\RNNSharpConsole\bin\Debug, and then run RNNSharpConsole/Program.cs with parameter [-mode train -trainfile KE-train.txt -validfile KE-valid.txt -modeltype 1 -modelfile KE-model.bin -ftrfile features.txt -tagfile KE-tags.txt -layersize 100 -alpha 0.1 -crf 1 -maxiter 50 -savestep 200K > KE.trainout] and I got the following result.
Sorry to confuse you but I don't known how to run the project RNNSharp-master at Github
from rnnsharp.
The root cause of above exception is that your CPU SIMD register size is less than 256bit. This exception is not related to your first exception (IndexOutOfRangeException).
As I mentioned, your 4th screenshot points to the correct spot of the real IndexOutOfRangeException exception. In order to get corresponding code, you need to load RNNSharp.pdb file.
So, firstly, you need to run RNNSharp with your data in release version. Once exception happens, catch the exception by Visual Studio and load RNNSharp.pdb file, then Visual Studio will show which code throw out the exception.
from rnnsharp.
Related Issues (20)
- Impact of run-time feature HOT 4
- LSTM RNN HOT 2
- Plan to Use LSTM for Time Series HOT 1
- Need Help With PRETRAIN_TYPE=Autoencoder HOT 2
- Null reference exception with ForwardRNN HOT 3
- Incremental training HOT 3
- imncremental training NullReferenceException after last update HOT 2
- Training takes too long!! HOT 20
- Using the library from .Net Core HOT 3
- maybe it's time to support CUDA ! HOT 2
- AdvUtils.dll Issue HOT 3
- puzzled about function : logsumexp HOT 1
- A question regarding usage or RNNSharp for a particular problem
- NullReferenceException in DropoutLayer
- System Total Fail due to double-Number conversion problems for non "es-US" Cultures
- A few questions regarding how to exploit RNNSharp
- Is there a way to further reduce file size of the model without affecting network size?
- Time Complexity
- RNNSharp Pseudo code
- About inference time
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 rnnsharp.