Skip to content

libmolgrid issues about stratifying receptors #101

@YanjingLiLi

Description

@YanjingLiLi

Hi authors, I have an issue using the stratify functions in ExampleProvider.

I tried two ways :

  1. train_samples = molgrid.ExampleProvider(ligmolcache=args.trligte, recmolcache=args.trrecte, shuffle=True, default_batch_size=args.batch_size, iteration_scheme=molgrid.IterationScheme.SmallEpoch, balanced=True, stratify_pos=3, stratify_step=1, stratify_max=6, stratify_min=0)

    train_samples.populate(args.trainfile)

(for the whole dataset, stratify_max=20958)

  1. train_samples = molgrid.ExampleProvider(ligmolcache=args.trligte, recmolcache=args.trrecte, shuffle=True, default_batch_size=args.batch_size, iteration_scheme=molgrid.IterationScheme.SmallEpoch, balanced=True, stratify_receptor=True)

    train_samples.populate(args.trainfile)

But when I ran them on cuda, neither of them can function properly. The GPU won't be used and after waiting for a long time, it can have error messages like:
train_samples.populate(args.trainfile) ValueError: No valid examples found in training set. wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing.

I have attached my whole dataset types and reduced_data types file here. Would you please take a look at what happens here?
data.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions