Git Product home page Git Product logo

Comments (5)

ccordoba12 avatar ccordoba12 commented on June 25, 2024

Hey @manethedane, thanks for reporting. I have a quick question for you: did you define your gaussian_likelihood function in the console and then run your other code from the editor?

from spyder.

manethedane avatar manethedane commented on June 25, 2024

from spyder.

ccordoba12 avatar ccordoba12 commented on June 25, 2024

Ok, thanks for clarification. Could you upload a screenshot to see how you're running your code?

Please be aware that you can't send images via email. Instead, you need to drag and drop them directly here, on the Github website.

from spyder.

manethedane avatar manethedane commented on June 25, 2024

Yes of course.
Screenshot gaussian_likelihood

from spyder.

ccordoba12 avatar ccordoba12 commented on June 25, 2024

Thanks @manethedane! Although it's not visible, I think you the first command you ran in the console was

import numpy as np

If that was the case, then it means you didn't run the code you have in the editor before trying to call gaussian_likelihood in the console. And that's why you're getting this error.

So, all you need to do before running

x = np.array([1,2,4,0]) 
gaussian_likelihood(0.34,np.var(x),x)

is pressing F5 or clicking on the Run button in our main toolbar (i.e. the green play button). That will load your editor code in the console so you can experiment with it there.

Let us know if that solves the problem for you.

from spyder.

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.