Git Product home page Git Product logo

Comments (7)

zhongkaifu avatar zhongkaifu commented on June 3, 2024

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.

ppsunrise avatar ppsunrise commented on June 3, 2024

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.

zhongkaifu avatar zhongkaifu commented on June 3, 2024

@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.

ppsunrise avatar ppsunrise commented on June 3, 2024

I debugged and got the information as the pictures show:
1
2
3
4

from rnnsharp.

zhongkaifu avatar zhongkaifu commented on June 3, 2024

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.

ppsunrise avatar ppsunrise commented on June 3, 2024

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.
image


Sorry to confuse you but I don't known how to run the project RNNSharp-master at Github

from rnnsharp.

zhongkaifu avatar zhongkaifu commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.