ctgk / PRML

PRML algorithms implemented in Python
MIT License
11.48k stars 3.25k forks source link

No module named 'prml' #9

Open Houzhenqian1986 opened 6 years ago

Houzhenqian1986 commented 6 years ago

I HAVE RUN Python setup.py build and python setup.py install then use jupyter to open ch03_Linear_Models_for_Regression.ipynb. BUT still report --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last)

in () 4 get_ipython().run_line_magic('matplotlib', 'inline') 5 ----> 6 from prml.features import GaussianFeatures, PolynomialFeatures, SigmoidalFeatures 7 from prml.linear import ( 8 BayesianRegressor, ModuleNotFoundError: No module named 'prml' so how can i do to fix this?
BecauseOfYouF commented 6 years ago

I also meet the same problem....Have you solved this?thanks!

Houzhenqian1986 commented 6 years ago

yes I have solve this problem. run jupyter notebook type %run setup.py build %run setup.py install then you can open and run the notes

githubWangHC commented 5 years ago

step1: cd PRML-master step2: python setup.py build step3: python setup.py install

step4: cd notebooks step5: ipython notebook ch02_Probability_Distributions.ipynb it still report error: ImportError: No module named 'prml'

Yi-Chen-SMU commented 5 years ago

yes I have solve this problem. run jupyter notebook type %run setup.py build %run setup.py install then you can open and run the notes

how to run jupyter notebook concretely?Thanks

jiashaoying commented 5 years ago

must upper python3.6

ghost commented 5 years ago

Alternatively, you could add the following into a code block at the beginning of the notebook.

import sys
if "../" not in sys.path:
    sys.path.append("../")
said-ml commented 10 months ago

clone the repository on you terminal commad of you IDE , run the following code git clone https://github.com/ctgk/PRML if you want to work online check out the link https://colab.research.google.com/drive/1OtBevAIJZsm-kZOjS_G-z7Czc3T6xHYe#scrollTo=U-pTAGoXla5e

vincent940404 commented 2 months ago

Alternatively, you could add the following into a code block at the beginning of the notebook.

import sys
if "../" not in sys.path:
    sys.path.append("../")

problem solved!thank you!

polarbe commented 2 months ago

Dooray! Failure Notice

    Failure Notice

    Your message sent to

@.***) has failed to be delivered.

      Please refer to the below for details.

        * Recipient : 

@.***)

        * Sent time : 

2024-09-13T00:42:08

        * Subject : 

Re: [ctgk/PRML] No module named 'prml' (#9)

            * Remote host said : 

Your mail was denied from the receiver.

      This message was sent from a notification-only address that cannot accept incoming email.
      For more information, please contact           ***@***.***

    © Dooray!.