Skip to content

Negative value in the imputation result. #50

@ShellyCoder

Description

@ShellyCoder

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)

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