You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm actually confronted to a small but annoying problem : I can't access the createNetwork function, used in some of your test files and present in the /src/utils/network.tsfile of your project.
I made a config file that contains all nodes, and I want to export the whole network at the end of file.
I already tried hacky thing like import { createNetwork } from "bayesjs/dist/utils/network" but that crashes at compilation.
If you have any idea to perform that, I will be glad to hear it.
Thanks!
EDIT:
Ok, finally I found a cleaner way to do it with a reduce
That's not as shorter as I want, but that's ok
Hello,
I'm actually confronted to a small but annoying problem : I can't access the
createNetwork
function, used in some of your test files and present in the/src/utils/network.ts
file of your project.I made a config file that contains all nodes, and I want to export the whole network at the end of file.
I done that in a little bit ugly way:
And I would like to do something like this:
I already tried hacky thing like
import { createNetwork } from "bayesjs/dist/utils/network"
but that crashes at compilation.If you have any idea to perform that, I will be glad to hear it.
Thanks!
EDIT:
Ok, finally I found a cleaner way to do it with a reduce
That's not as shorter as I want, but that's ok
The text was updated successfully, but these errors were encountered: