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

Negative value in the imputation result. #50

Open
ShellyCoder opened this issue May 13, 2023 · 0 comments
Open

Negative value in the imputation result. #50

ShellyCoder opened this issue May 13, 2023 · 0 comments

Comments

@ShellyCoder
Copy link

Dear author,

I have applied SAUCIE, which is a wonderful tool, to my scRNAseq data. But there might exist some negative values in the imputation result, which range -1e-01 to -1e-10. And what I feed in the model doesn't have any negative values.

Could I transform these minimal negative values into 0? or If I have some wrong codes in the analysis.

Thanks.

image
  import sys
  import SAUCIE
  import numpy as np
  import tensorflow as tf
  
  tf.reset_default_graph()
  
  data = data.values
  saucie = SAUCIE.SAUCIE(data.shape[1])
  loadtrain = SAUCIE.Loader(data, shuffle=True)
  saucie.train(loadtrain, steps=1000)
  
  loadeval = SAUCIE.Loader(data, shuffle=False)
  embedding = saucie.get_embedding(loadeval)
  number_of_clusters, clusters = saucie.get_clusters(loadeval)
  reconstruction = saucie.get_reconstruction(loadeval)
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

No branches or pull requests

1 participant