Skip to content

Could not import evalml  #4402

@Akshat111111

Description

@Akshat111111

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." open_source_support@alteryx.com
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)
in <cell line: 2>()
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 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.

# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues tracking problems with existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions