alteryx / alteryx/evalml

Could not import evalml

Open
#4,402 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
850
Forks
96
PR merge metrics
No merged PRs in 30d

Description

The code is not working in google colab.I have installed all the things but the code is not running. !pip install evalml !pip install featuretools pip install -U evalml and !pip install --upgrade evalml featuretools.But when I am running this - !pip show evalml its showing Name: evalml
Version: 0.83.0
Summary: an AutoML library that builds, optimizes, and evaluates machine learning pipelines using domain-specific objective functions
Home-page:
Author:
Author-email: "Alteryx, Inc."
License: BSD 3-Clause License

Copyright (c) 2019, Alteryx, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Location: /usr/local/lib/python3.10/dist-packages
Requires: black, catboost, category-encoders, click, cloudpickle, colorama, dask, distributed, featuretools, graphviz, holidays, imbalanced-learn, ipywidgets, kaleido, lightgbm, lime, matplotlib, networkx, nlp-primitives, numpy, packaging, pandas, plotly, pmdarima, pyzmq, scikit-learn, scikit-optimize, scipy, seaborn, shap, sktime, statsmodels, texttable, tomli, vowpalwabbit, woodwork, xgboost. But giving this error ---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
1 #### TRain A\nd test data split
----> 2 import evalml
3
4 X_train,X_test,y_train,y_test=evalml.preprocessing.split_data(X,y,problem_type='binary')
5 evalml.problem_types.ProblemTypes.all_problem_types

12 frames
[/usr/local/lib/python3.10/dist-packages/evalml/pipelines/components/transformers/preprocessing/natural_language_featurizer.py](https://localhost:8080/#) in
3
4 import featuretools as ft
----> 5 from featuretools.primitives import (
6 DiversityScore,
7 MeanCharactersPerWord,

ImportError: cannot import name 'DiversityScore' from 'featuretools.primitives' (/usr/local/lib/python3.10/dist-packages/featuretools/primitives/__init__.py)
Required-by:
#### Code Sample, a copy-pastable example to reproduce your bug.

```python
# Your code here
import evalml

X_train,X_test,y_train,y_test=evalml.preprocessing.split_data(X,y,problem_type='binary')
evalml.problem_types.ProblemTypes.all_problem_types

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.