Code Monkey home page Code Monkey logo

Comments (5)

ctokheim avatar ctokheim commented on June 11, 2024

You need to install scikit-learn, which was listed as one of the dependencies in the conda environment yaml file

from 2020plus.

MarkKJF avatar MarkKJF commented on June 11, 2024

After installing scikit-learn, I run the code again. But, another mistake occurs.

AN ERROR HAS OCCURRED: check the log file


Type: <class 'ImportError'>
Exception: cannot import name 'cross_validation'
Traceback:
File "/home/kjf/2020plus-1.2.2/2020plus.py", line 263, in
import src.classify.python.classifier
File "/home/kjf/2020plus-1.2.2/src/classify/python/classifier.py", line 2, in
from src.classify.python.dummy_clf import DummyClf
File "/home/kjf/2020plus-1.2.2/src/classify/python/dummy_clf.py", line 2, in
from src.classify.python.generic_classifier import GenericClassifier
File "/home/kjf/2020plus-1.2.2/src/classify/python/generic_classifier.py", line 9, in
from sklearn import cross_validation

[Fri Apr 5 21:37:49 2019]
Error in rule features:
jobid: 2
output: output/features.txt

RuleException:
CalledProcessError in line 282 of /home/kjf/2020plus-1.2.2/Snakefile:
Command 'set -euo pipefail; python which 2020plus.py features -s output/summary.txt --tsg-test output/tsg.txt -og-test output/oncogene.txt -o output/features.txt' returned non-zero exit status 1.
File "/home/kjf/2020plus-1.2.2/Snakefile", line 282, in __rule_features
File "/home/kjf/anaconda3/envs/2020plus/lib/python3.6/concurrent/futures/thread.py", line 56, in run

Could you please help with this problem? Thanks.

from 2020plus.

ctokheim avatar ctokheim commented on June 11, 2024

You need to install the correct version of scikit learn, which is already specified in the conda environment file (scikit-learn<0.20.0).

from 2020plus.

MarkKJF avatar MarkKJF commented on June 11, 2024

Thanks.
I think that there are a lot of problem with my environment and required packages.
So I try the command:
$ pip install -r requirements.txt
success

but fail with
$ pip install -r requirements_dev.txt

It warns that
Fail building wheel for probabilistic2020
and I check the packages by "$ conda list"
most of the packages required are in wrong version.
I am wondering how to turn each packages into correct version.

from 2020plus.

Zethson avatar Zethson commented on June 11, 2024

@MarkKJF Create a new conda environment, activate it and install the dependencies inside the conda environment.

from 2020plus.

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.