Giter VIP home page Giter VIP logo

coalapy's Introduction

coalapy's People

Contributors

akashgarg98 avatar dependabot[bot] avatar xfurna avatar

Watchers

 avatar

coalapy's Issues

Identical relevance of multiple modalities

Quoting myself-

I was experimenting around with some omics data taken from TCGA and I came across cases where multiple modalities had the same relevance. The paper has not discussed such cases. I thought dampening the weightage of modalities with the same relevance might evaporate the cluster information. And when I ran the algorithm on such data, keeping the value of alpha for the modalities with the same relevance equal (phrasing alternatively: if I keep 阝= 1), I found that the cluster labels were biased towards the clusters of that modality which occurred prior to others.
So for example, if I had two modalities with equal relevance then my final cluster labels would have more common labels with the ground truth of that modality which was fed to the algorithm as X1.

[FEATURE] Normalize the final matrix V

Refer the following pseudocode-

# column normalization
            for(i in columns(V))){
                rms<-rootmeansquare(V)
               V[:,i]/=rms
            }
# row normalization
            V=rownormalize(Lkstar)

[BUG] Sum of alpha not 1

Scope of improvements in relevance computation.
Try-

def compurte_alpha(...):
    .
    .
    .
    return your_alpha
your_alpha=compute_alpha(...)
new_alpha = [Alpha/np.sum(your_alpha) for Alpha in your_alpha]
.
.
.

IndexError: list index out of range

  • Error while running tests on RawToLap with generate_data within it.
  • generate_data alone however is cool.
  • verbose-
(base)  evi1haxor@Devi1ixir > /hdd/Ztudy/BTP/code/CoALa/algo >  master ● > python checks.py
Saving toy data csv w/d 3
Saving toy data csv w/d 3
recieved dframe_csv object with path- /hdd/Ztudy/BTP/code/CoALa/algo/X1.csv
calling matrix with df_csv args /hdd/Ztudy/BTP/code/CoALa/algo/X1.csv
Traceback (most recent call last):
  File "checks.py", line 69, in <module>
    RawToLap()
  File "checks.py", line 58, in RawToLap
    x1 = src.modalities.modality(path_x1, mat_type="gaussian")
  File "/hdd/Ztudy/BTP/code/CoALa/algo/src/modalities.py", line 8, in __init__
    self.W = helperFunc.get_similarity(dfhandler.dframe_csv(path, mat_type=mat_type))
  File "/hdd/Ztudy/BTP/code/CoALa/algo/src/helperFunc.py", line 13, in get_similarity
    mat = matrix(df_csv = df_csv) #dframe_csv obj
  File "/hdd/Ztudy/BTP/code/CoALa/algo/src/helperFunc.py", line 23, in matrix
    return sm.Gaussian(df_csv.df, df_csv.df.shape[1])
  File "/hdd/Ztudy/BTP/code/CoALa/algo/src/matrices.py", line 12, in Gaussian
    A[x][y]=hf.dist(x+1,y+1, df)
  File "/hdd/Ztudy/BTP/code/CoALa/algo/src/helperFunc.py", line 35, in dist
    result_vector = df[list(df.columns)[i]] - df[list(df.columns)[j]]
IndexError: list index out of range

[BUG]cause of failing test

Test dataset has modalities with equal relevance. So due to assignment of inappropriate alpha, tests are failing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.