GithubHelp home page GithubHelp logo

Comments (6)

kevincjnixon avatar kevincjnixon commented on July 30, 2024 1

Hi Tinyi,

I have been working on this, and I think I found my problem - at least for the run with multiple cores. I believe Windows may behave differently when running processes in parallel than on UNIX/linux systems. I forked the repository and added:

environment(sample.Z.theta_n)<-globalenv() environment(sample.theta_n)<-globalenv() environment(rdirichlet)<-globalenv() sfExport("phi", "X", "alpha", "gibbs.idx", "seed", "compute.elbo", "sample.Z.theta_n","sample.theta_n","rdirichlet")

to the run.gibbs.refPhi() function in 'run_gibbs.R'

By exporting the functions sample.Z.theta_n() , sample.theta.n(), and rdirichlet() to the global environment, and then from there to each cluster generated by snowlfake, the functions were available in each cpu node avoiding the errors.

I believe this may only be an issue for Windows as I have had colleagues successfully run this on Linux environments.

from bayesprism.

tinyi avatar tinyi commented on July 30, 2024

from bayesprism.

tinyi avatar tinyi commented on July 30, 2024

from bayesprism.

kevincjnixon avatar kevincjnixon commented on July 30, 2024

Hi Tinyi,

Thank you for your response. I get a similar error when I use n.cores>1 (function sample.Z.theta_n not found).

I am using this on the tutorial data that is supplied with the repository. I think there must have been an installation error on my end. I have tried re-installing the package and will continue to look into it.

Thank you for your help.

Best,

Kevin

from bayesprism.

tinyi avatar tinyi commented on July 30, 2024

Hi Kevin. Thank you so much for your suggestions!

from bayesprism.

tinyi avatar tinyi commented on July 30, 2024

from bayesprism.

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.