-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on preamble import #1
Comments
As the readme says, you need the development version of scikit-learn. |
Thank you amueller for the quick reply. I upgraded to the development version. I double checked as below but get the same error: pip show scikit-learnMetadata-Version: 1.1 |
if you run |
Somehow, I am still getting import sklearn; print(sklearn.version) 0.17.1 On Thu, Jun 2, 2016 at 12:16 PM, Andreas Mueller notifications@github.com
|
your pip and the python you are using belong to different python environments. |
Looks like they are using the same python environment: (dato-env)HW12341:introduction_to_ml_with_python ssen$ which pip /Users/ssen/anaconda/envs/dato-env/bin/pip (dato-env)HW12341:introduction_to_ml_with_python ssen$ which python /Users/ssen/anaconda/envs/dato-env/bin/python (dato-env)HW12341:introduction_to_ml_with_python ssen$ which ipython /Users/ssen/anaconda/envs/dato-env/bin/ipython On Thu, Jun 2, 2016 at 12:30 PM, Andreas Mueller notifications@github.com
|
If you install with conda, you shouldn't upgrade with pip. If you did that, Sent from phone. Please excuse spelling and brevity.
|
Thanks that solved it |
Im also getting the error on: from preamble import * I removed scikit-learn and re-installed with pip. running import sklearn; print(sklearn.version) , I get: 0.18.1 |
What's the error?
Please provide the full traceback.
Sent from phone. Please excuse spelling and brevity.
…On Feb 12, 2017 12:37, "Amir Imani" ***@***.***> wrote:
Im also getting the error on: from preamble import *
I removed scikit-learn and re-installed with pip. running import sklearn;
print(sklearn.*version*) , I get: 0.18.1
any suggestions how to fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAbcFiRx29rU4_nC8SQcz7u5Nkd4JAqeks5rb0NAgaJpZM4Isz1r>
.
|
ImportError Traceback (most recent call last) ImportError: No module named 'preamble' |
How are you running the notebooks? This repository contains the notebooks, and along with the notebooks a file called |
Hello guys, I need help. I get error when i try to execute this command; I always have the following error tracebacks ModuleNotFoundError Traceback (most recent call last) C:\Users\SK.ipython\mglearn\plot_nn_graphs.py in plot_two_hidden_layer_graph() ModuleNotFoundError: No module named 'graphviz How can i fix it. I am running Notebook on windows |
@aduk4u this sounds like an unrelated issue, right? If you're using conda, you can If you're not using conda, you can install the required python library with |
Hello Andrea, I'm very glad to get your response. it really helped me a
lot. I need an idea on how to change the weight and activation function to
memristive model function that can perform faster and same as the logistic
or Relu function. I'm working to classify breast cancer. I would like you
to help me.
Thanks and waiting for your response.
My regards
Adu
…On Wed, Nov 22, 2017 at 4:43 AM, Andreas Mueller ***@***.***> wrote:
@aduk4u <https://github.com/aduk4u> this sounds like an unrelated issue,
right? If you're using conda, you can conda install graphviz-python
graphviz as described in the readme: https://github.com/amueller/
introduction_to_ml_with_python#installing-packages-with-conda
If you're not using conda, you can install the required python library
with pip install graphviz but installing the supporting executable is
more tricky. This function will only reproduce the figure you can see in
the book, by the way, so it's not that important.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgTQvqtsqDJ6l_6x3Xfz1_Dv9zAW6ux2ks5s4zXigaJpZM4Isz1r>
.
|
@aduk4u Sorry I can't help you with that. |
I am getting the following error:
from preamble import *
%matplotlib inline
ImportError Traceback (most recent call last)
in ()
----> 1 from preamble import *
2 get_ipython().magic(u'matplotlib inline')
/Users/ssen/Box Sync/projects/introduction_to_ml_with_python/preamble.py in ()
2 import numpy as np
3 import matplotlib.pyplot as plt
----> 4 import mglearn
5
6 set_matplotlib_formats('pdf', 'png')
/Users/ssen/Box Sync/projects/introduction_to_ml_with_python/mglearn/init.pyc in ()
----> 1 from . import plots
2 from . import tools
3 from .plots import cm3, cm2
4
5 all = ['tools', 'plots', 'cm3', 'cm2']
/Users/ssen/Box Sync/projects/introduction_to_ml_with_python/mglearn/plots.py in ()
9 plot_single_hidden_layer_graph,
10 plot_two_hidden_layer_graph)
---> 11 from .plot_linear_regression import plot_linear_regression_wave
12 from .plot_tree_nonmonotonous import plot_tree_not_monotone
13 from .plot_scaling import plot_scaling
/Users/ssen/Box Sync/projects/introduction_to_ml_with_python/mglearn/plot_linear_regression.py in ()
3
4 from sklearn.linear_model import LinearRegression
----> 5 from sklearn.model_selection import train_test_split
6 from .datasets import make_wave
7
ImportError: No module named model_selection
The text was updated successfully, but these errors were encountered: