Comments (4)
We currently don’t support multitask optimization in molpal, so setting the number of tasks to anything other than 1 will break the code. How are you currently using the code?
from molpal.
Hi @davidegraff
Thanks for the fast reply! I was interested in the fact that you are using PyTorch Lightning, so my plan was to use the MPNN class of MolPal as a drop-in-replacement for my ChemProp multi-task regression models, which are typically slow. I hope this makes sense?
Thanks!
M
from molpal.
yeah so there is a bug right now in molpal.models.mpnmodels.py#L191.
This block:
def make_datasets(
self, xs: Iterable[str], ys: Sequence[float]
) -> Tuple[MoleculeDataset, MoleculeDataset]:
"""Split xs and ys into train and validation datasets"""
data = MoleculeDataset([
MoleculeDatapoint(smiles=[x], targets=[y])
for x, y in zip(xs, ys)
])
...
assumes that ys
is an array of single-task target values, so it's a vector of length n
rather than an array of shape n x 1
. If you iterate through an n x m
array and then wrap it in a list (as in targets=[y]
), then the target
of each point is a list of m
floats rather than m
separate targets.
I just fixed this by checking the target shape in MPNN.train(#10). let me know if this problem persists after the latest commit
from molpal.
Hi @davidegraff it works nicely now with the latest commit! Many thanks for your help!
from molpal.
Related Issues (20)
- MPN model error HOT 3
- unable to reproduce results HOT 5
- Bug in explorer HOT 14
- Y_pred.npy file HOT 3
- docking for objectives HOT 7
- Fingerprints not generating HOT 3
- bug in fingerprints.py
- test on in-house data, result is bad HOT 5
- can you please provide an example config file that use docking rather than lookup? HOT 1
- molpal crush due to invalid smiles HOT 1
- [QUESTION]: Recommended paramaters for molecule screen HOT 1
- what's your take on random sampling? HOT 1
- [QUESTION]: HOT 6
- how to handle tautomers? HOT 2
- [QUESTION]: training dataloader is currently defined with shuffle=False. Is this intentional? HOT 1
- [BUG]: HOT 4
- [QUESTION]: Are docking scores for 2.1 million member HTS Collection (“Enamine HTS”) against 4UNN PBB available? HOT 3
- [BUG]: unable to run molpal in docking objective HOT 1
- [BUG]: Not compatible with the latest Ray/Pytorch-Lightning versions HOT 1
- [QUESTION]: Basic MolPal usage
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 molpal.