Code Monkey home page Code Monkey logo

Comments (9)

eunseokyang avatar eunseokyang commented on September 17, 2024

Downgrade keras to 2.4.0

from tods.

Jessica-jia avatar Jessica-jia commented on September 17, 2024

try this,it works for me.
step 1:
pip install keras==2.3.1
step 2:
pip install git+https://www.github.com/keras-team/keras-contrib.git

from tods.

AlexMV12 avatar AlexMV12 commented on September 17, 2024

I can't install tods due to this problem.

To reproduce the issue, you can build this Docker image:

FROM python:3.6.15-bullseye
RUN apt update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y libssl-dev libcurl4-openssl-dev libyaml-dev build-essential libopenblas-dev libcap-dev ffmpeg git
RUN git clone https://github.com/datamllab/tods.git
WORKDIR tods
RUN pip install -e .
RUN python3 -c "from tods import schemas as schemas_utils"

from tods.

alisha-metkari-aera avatar alisha-metkari-aera commented on September 17, 2024

try this,it works for me. step 1: pip install keras==2.3.1 step 2: pip install git+https://www.github.com/keras-team/keras-contrib.git

tried this but getting error AttributeError: ISOLATION_FOREST . Can anyone help?

from tods.

guanchuwang avatar guanchuwang commented on September 17, 2024

from tods.

alisha-metkari-aera avatar alisha-metkari-aera commented on September 17, 2024

Downgrade keras to 2.4.0

tried this but getting error AttributeError: ISOLATION_FOREST

from tods.

rbeber avatar rbeber commented on September 17, 2024

Downgrade keras to 2.4.0

tried this and worked for me, only future warnings

>>> import tods
/home/matteo/miniforge3/envs/tods_times/lib/python3.6/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.preprocessing.data module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.preprocessing. Anything that cannot be imported from sklearn.preprocessing is now part of the private API.
  warnings.warn(message, FutureWarning)
/home/matteo/miniforge3/envs/tods_times/lib/python3.6/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.decomposition.truncated_svd module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.decomposition. Anything that cannot be imported from sklearn.decomposition is now part of the private API.
  warnings.warn(message, FutureWarning)
Using TensorFlow backend.
d3m.primitives.tods.detection_algorithm.LSTMODetector: Primitive is not providing a description through its docstring.
>>>
'''

from tods.

guanchuwang avatar guanchuwang commented on September 17, 2024

from tods.

rbeber avatar rbeber commented on September 17, 2024

Downgrade keras to 2.4.0

tried this and worked for me, only future warnings

>>> import tods
/home/matteo/miniforge3/envs/tods_times/lib/python3.6/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.preprocessing.data module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.preprocessing. Anything that cannot be imported from sklearn.preprocessing is now part of the private API.
  warnings.warn(message, FutureWarning)
/home/matteo/miniforge3/envs/tods_times/lib/python3.6/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.decomposition.truncated_svd module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.decomposition. Anything that cannot be imported from sklearn.decomposition is now part of the private API.
  warnings.warn(message, FutureWarning)
Using TensorFlow backend.
d3m.primitives.tods.detection_algorithm.LSTMODetector: Primitive is not providing a description through its docstring.
>>>
'''

However when I try the second demo displayed in the readme, at the line:

 search = BruteForceSearch(problem_description=problem_description,backend=backend)

I get the following error:

>>> search = BruteForceSearch(problem_description=problem_description,backend=backend)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/matteo/repos/tods/tods/searcher/brute_force_search.py", line 20, in __init__
    self.task_description['task_type'], self.task_description['task_subtype'], self.task_description['data_types'])
  File "/home/matteo/repos/tods/tods/searcher/brute_force_search.py", line 73, in _return_pipelines
    pipeline_candidates = _generate_pipelines(primitive_python_paths)
  File "/home/matteo/repos/tods/tods/searcher/brute_force_search.py", line 276, in _generate_pipelines
    return _generate_pipline(combinations)
  File "/home/matteo/repos/tods/tods/searcher/brute_force_search.py", line 194, in _generate_pipline
    step_0 = PrimitiveStep(primitive=index.get_primitive('d3m.primitives.data_transformation.dataset_to_dataframe.Common'))
  File "/home/matteo/miniforge3/envs/tods_times/lib/python3.6/site-packages/d3m/index.py", line 115, in get_primitive
    module = importlib.import_module(path)
  File "/home/matteo/miniforge3/envs/tods_times/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'd3m.primitives.data_transformation'
>>>

from tods.

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.