-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sequence learner Load error #8
Comments
it seems there is an issue loading next available coincidence detector |
I'm getting the same error. Looking into it now. |
@ddigiorg did you find the problem? |
Got it fixed and we're going through our process to update the repo. Stay tuned. |
@ddigiorg Good to hear. if the process takes time, can you show me quick fix for now? |
In src/bbcore/sequence_learner.c please update the save and load functions:
|
now I need to do |
I will update the source code to automatically initialize the block when sl.load() is called. Can you share the code in your script? I'd like to help debug it or fix any BrainBlocks issues if necessary. |
train.py
test.py
if we run test.py, anomaly score is different every time. same sequence, different anomaly every run |
At least one source of your difficulty would be the HyperGridTransform being newly created for each script. Currently we don't have a feature to save its configuration. So whenever you create one, it's completely different. One thing you can do is pass in a seed for the random number generator. For the constructor, add the following keyword argument:
This ensures that the randomly created configuration is the same for both train and test scripts. Also, make sure you "fit()" the HGT on the same data for each case. That way you know it is configured identically. |
@vaibhavch Did making the recommended changes to the HGT result in more consistent performance? |
Thanks, passing the seed solved the issue. |
when I load saved file, error happens.
Error: 0
The text was updated successfully, but these errors were encountered: