Skip to content

Getting nan score for spec2vec_similarity function #87

@r00bit

Description

@r00bit

Hi,
Using two similarity functions to compute similarity scores between spectra of two files:

  1. Spec2vec: scores = calculate_scores(ref_spectrums, query_spectrums, spec2vec_similarity)
  2. CosineGreedy: scores = calculate_scores(references=spectrums1, queries=spectrums2, similarity_function=CosineGreedy())
    However, I've got nan scores for spec2vec that I think it's because of low similarity between pairs of spectra.
    for example: the results of similarity functions between two spectra
  3. spec2vec
    Reference scan id: F1:2478
    Query scan id: 3350
    Score: [nan]

  1. CosineGreedy
    Reference scan id: F1:2478
    Query scan id: 3850
    Score: [0.004275957907034389, 4]
    I tried to change the allowed missing percentage from 5 to higher value but it didn't work.
    Could you please tell me how I can get a score rather than nan by applying spec2vec similarity function?
    Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions