Comments (5)
I also encountered the same problem, but as the author said you can debug the prediction_for_input.py file between line 231 and line 266 by using basic print function. In short, you can try to modify line 267
except:
Kcat_value = 'None'
to
except Exception as e:
print(repr(e))
Kcat_value = 'None'
Then see what's wrong.
for me, Error is
RuntimeError('Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)')
so, just change all tensors to be the same device, you can fix it.
fingerprints = torch.LongTensor(fingerprints).to(device)
adjacency = torch.FloatTensor(adjacency).to(device)
words = torch.LongTensor(words).to(device)
Of course, you may also encounter other error messages, and you need corresponding solutions.
from dlkcat.
Could you print out the packages you have installed by running conda list
or pip list
?
from dlkcat.
from dlkcat.
Hi, have you resolved this issue? Now that you can get the Kcat prediction result, I think you have installed all the packages successfully, or the program would throw out an error about "package not found". It is very weird that you got the result 'None' because many users can run the example easily across various systems. My suggestion is that: (1) Reinstall DLKcat and run the example again by yourself; (2) With the help from your colleagues, run DLKcat example using their computer; (3)you can debug the prediction_for_input.py file between line 231 and line 266 by using basic print function. If uncommon print is out, then you can know how did this issue happen.
from dlkcat.
from dlkcat.
Related Issues (20)
- Loss calculation confusion HOT 2
- nomoudule name SOAPpy HOT 1
- Dear author, you know that you have done a famous and complex work. Then, I meet a question that proteome data NOT 404 HOT 1
- two substrates HOT 1
- error running example HOT 3
- Failed parsing SMILES HOT 3
- Dataset problem HOT 3
- Example input.tsv file in DeeplearningApproach yields no kcats when run HOT 4
- Input a new sequence for measure Kcat using DLKcat HOT 1
- Reason for two kcat values in each PredcitedKcat343species file HOT 1
- Hyperparameter file for DLKcat HOT 3
- The dimension of the adjacency matrix is not consistent
- isssue about runing prediction_for_input.py HOT 4
- RMSE HOT 2
- result inconsistency HOT 1
- I can't find the file I'm looking for HOT 1
- RMSE and data HOT 7
- Unable to reproduce the results in Fig. 2a. HOT 2
- find the sequence HOT 3
- Can DLKcat parse the smiles including '.' ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlkcat.