1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

matlab code

Discussion in 'Software Development' started by increation, Mar 20, 2015.

Thread Status:
Not open for further replies.
  1. increation

    increation Thread Starter

    Joined:
    Mar 20, 2015
    Messages:
    1
    Latent Outlier Detection and the Low Precision Problem


    Algorithm 2 [SR-NMF]
    Input: A matrix X of size m ⇥ n, m number of features,
    n number of samples, k the size of the latent space, `
    number of outliers
    Output: A vector R represent the ranking of anomalies
    with a score in descending order
    1: Using R " NMF algorithm we get U and V such that
    X ⇡ UV
    (U, V ) = R " NMF(k, `)
    2: j 0; RANKS empty matrix;
    3: STEP1 generate ranks for each subspace
    4: for i = 1 ! k do
    5: generate all set of combinations AS from (k choose i)
    6: for each S 2AS do
    7: Residual = X " U:), S)V (S, :)
    8: RNorm = columnNorm(Residual)
    9: [", RANK] = sort(RNorm, ‘descend’)
    10: RANKS = [RANKS; RANK]
    11: j + +
    12: STEP2 merge ranks into one rank
    13: R vector of size n;
    14: for i = 1 ! j do
    15: for p = 1 ! n do
    16: R(RANKS(i, p)) = R(RANKS(i, p)) + i
    17: sort R in descending order
    [", R] = sort(R, ‘descend’) (Note: Matlab Notation)
     
  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,608
    First Name:
    Hans
    Use the code markers when you paste code

    [ code ]

    and the code

    do not use the spaces for it to work

    [ /code ]

    will look like this

    Code:
    this would be the lines of code :) and this will not become a smiley
    
    And what is the problem with this matlab code?
    I'm no matlab guy but just curious.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1145091

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice