Bayes Search C#
Bayes Search C#
Hi
Can you learn an RB without using a file?
Like for example a data vector?
Because the process is getting too slow ...
I need one exemple pls.
Can you learn an RB without using a file?
Like for example a data vector?
Because the process is getting too slow ...
I need one exemple pls.
-
- Site Admin
- Posts: 1419
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Bayes Search C#
The speed of learning does not depend on the origin of the data. If you have data in a file and use DataSet.ReadFile, the file content will be loaded into the memory.
Re: Bayes Search C#
2 questionsshooltz[BayesFusion] wrote: ↑Mon Sep 09, 2019 1:43 pm The speed of learning does not depend on the origin of the data. If you have data in a file and use DataSet.ReadFile, the file content will be loaded into the memory.
Is BayesSearch working for .NET?
Second is: The problem is that the file is generated in memory so I would have to save to file to read and my files at least have 8000 lines some 80000 more, this is slow reading maybe because I am using a dll that I made in C to run in C #.
Thank you.
-
- Site Admin
- Posts: 1419
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Bayes Search C#
It is available in version 1.4.1 (not yet available on our download site). I can send you a private download link if you need Bayesian Search in your .NET program.Is BayesSearch working for .NET?
I would not worry about time required to save/load the file. Note that you can build a DataSet in memory using DataSet's methods which add variables/records and set values (AddIntVariable, AddFloatVariable, AddEmptyRecord, SetInt, SetFloat).Second is: The problem is that the file is generated in memory so I would have to save to file to read and my files at least have 8000 lines some 80000 more, this is slow reading maybe because I am using a dll that I made in C to run in C #
Re: Bayes Search C#
I want, it would be of great use. If there are any bugs I can help reporting.shooltz[BayesFusion] wrote: ↑Thu Sep 12, 2019 7:00 pmIt is available in version 1.4.1 (not yet available on our download site). I can send you a private download link if you need Bayesian Search in your .NET program.Is BayesSearch working for .NET?
I would not worry about time required to save/load the file. Note that you can build a DataSet in memory using DataSet's methods which add variables/records and set values (AddIntVariable, AddFloatVariable, AddEmptyRecord, SetInt, SetFloat).Second is: The problem is that the file is generated in memory so I would have to save to file to read and my files at least have 8000 lines some 80000 more, this is slow reading maybe because I am using a dll that I made in C to run in C #
Thank you very much
Re: Bayes Search C#
There is one more problem. Since I am working with an evolutionary algorithm, every time I perform a certain number of inference I have to generate a new RB. This takes a while, but I'll try your tip.
-
- Site Admin
- Posts: 1419
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Bayes Search C#
In such case, I recommend using DataSet's methods to initialize its content in memory (without going through DataSet.ReadFile).I am working with an evolutionary algorithm, every time I perform a certain number of inference I have to generate a new RB.
Re: Bayes Search C#
lablonsk wrote: ↑Sat Sep 14, 2019 6:00 pmcould you send me in private the download link?shooltz[BayesFusion] wrote: ↑Thu Sep 12, 2019 7:00 pmIt is available in version 1.4.1 (not yet available on our download site). I can send you a private download link if you need Bayesian Search in your .NET program.Is BayesSearch working for .NET?
-
- Site Admin
- Posts: 1419
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Bayes Search C#
Check your PM inbox on this forum.
Re: Bayes Search C#
Thank you very much.
It will help me a lot.
Re: Bayes Search C#
I didn't understand much when you said to use it. And I looked in the manual and found no example. Could you give a brief example? I have a String vector that would be the names of the nodes and a data array that represents the RB information. I tried to use but I'm trying syntax errorI would not worry about time required to save/load the file. Note that you can build a DataSet in memory using DataSet's methods which add variables/records and set values (AddIntVariable, AddFloatVariable, AddEmptyRecord, SetInt, SetFloat).
-
- Site Admin
- Posts: 1419
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Bayes Search C#
Assuming that your Bayesian network will include only CPT nodes:I have a String vector that would be the names of the nodes and a data array that represents the RB information.
1. start with an empty DataSet object.
2. in a loop call AddIntVariable for each node (using node name from String vector)
3. for each row in a data array
a. call AddEmptyRecord
b. in the loop, call SetInt (using an element from your data array)