Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate get_molnet_dataset with Splitter #209

Merged
merged 10 commits into from
Jul 10, 2018

Conversation

mottodora
Copy link
Member

Please merge after #201 #202

@mottodora mottodora changed the title Integrate get_molnet_dataset with Splitter c6a9cc7 Integrate get_molnet_dataset with Splitter Jun 30, 2018
@codecov-io
Copy link

codecov-io commented Jun 30, 2018

Codecov Report

Merging #209 into master will decrease coverage by 0.73%.
The diff coverage is 14.03%.

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
- Coverage   82.32%   81.59%   -0.74%     
==========================================
  Files         106      106              
  Lines        4974     5026      +52     
==========================================
+ Hits         4095     4101       +6     
- Misses        879      925      +46

@mottodora mottodora added this to the 0.4.0 milestone Jul 3, 2018
frac_test=.1, seed=777, return_smiles=False,
target_index=None):
target_index=None, task_index=0, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add docstring? or want to do in other PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

if isinstance(split, str):
splitter = split_method_dict[split]()
elif isinstance(split, BaseSplitter):
splitter = split
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel adding else: raise TypeError('message') is friendly.

if isinstance(splitter, ScaffoldSplitter):
get_smiles = True
else:
get_smiles = return_smiles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel adding else: raise TypeError('message') is friendly.

Copy link
Member Author

@mottodora mottodora Jul 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think TypeError is not necessary for this line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to fix the message to show the "actual" type.

@@ -7,8 +7,9 @@
from chainer_chemistry.datasets import NumpyTupleDataset
from chainer_chemistry.datasets import molnet

expect_bbbp_lengths = [1631, 203, 205]
expect_bbbp_lengths = [1633, 203, 203]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this happen? Rdkit version??
If rdkit version issue, I want to fix recommended rdkit version for each chainer chemistry version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this change is caused by the difference between scaffold split and random split. But unexpected.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not "unexpected" since you implement that StratifiedSplitter to have much "train" data for the remainder, right?

@mottodora
Copy link
Member Author

Fix.

Copy link
Member

@corochann corochann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

frac_test=.1, seed=777, return_smiles=False,
target_index=None):
target_index=None, task_index=0, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

if isinstance(splitter, ScaffoldSplitter):
get_smiles = True
else:
get_smiles = return_smiles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to fix the message to show the "actual" type.

@@ -7,8 +7,9 @@
from chainer_chemistry.datasets import NumpyTupleDataset
from chainer_chemistry.datasets import molnet

expect_bbbp_lengths = [1631, 203, 205]
expect_bbbp_lengths = [1633, 203, 203]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not "unexpected" since you implement that StratifiedSplitter to have much "train" data for the remainder, right?

@corochann
Copy link
Member

I want to fix some document and message, but I think it is faster to make PR instead of asking you to fix.
So let me merge this.

@corochann corochann merged commit 758e379 into chainer:master Jul 10, 2018
@corochann corochann mentioned this pull request Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants